@aws-cdk/aws-cloudformation
Advanced tools
Comparing version 0.26.0 to 0.27.0
@@ -11,3 +11,3 @@ import cdk = require('@aws-cdk/cdk'); | ||
*/ | ||
serviceToken: string; | ||
readonly serviceToken: string; | ||
} | ||
@@ -47,3 +47,3 @@ /** | ||
*/ | ||
functionName: string; | ||
readonly functionName: string; | ||
/** | ||
@@ -53,3 +53,3 @@ * `AWS::CloudFormation::Macro.Name` | ||
*/ | ||
name: string; | ||
readonly name: string; | ||
/** | ||
@@ -59,3 +59,3 @@ * `AWS::CloudFormation::Macro.Description` | ||
*/ | ||
description?: string; | ||
readonly description?: string; | ||
/** | ||
@@ -65,3 +65,3 @@ * `AWS::CloudFormation::Macro.LogGroupName` | ||
*/ | ||
logGroupName?: string; | ||
readonly logGroupName?: string; | ||
/** | ||
@@ -71,3 +71,3 @@ * `AWS::CloudFormation::Macro.LogRoleARN` | ||
*/ | ||
logRoleArn?: string; | ||
readonly logRoleArn?: string; | ||
} | ||
@@ -108,3 +108,3 @@ /** | ||
*/ | ||
templateUrl: string; | ||
readonly templateUrl: string; | ||
/** | ||
@@ -114,3 +114,3 @@ * `AWS::CloudFormation::Stack.NotificationARNs` | ||
*/ | ||
notificationArns?: string[]; | ||
readonly notificationArns?: string[]; | ||
/** | ||
@@ -120,3 +120,3 @@ * `AWS::CloudFormation::Stack.Parameters` | ||
*/ | ||
parameters?: { | ||
readonly parameters?: { | ||
[key: string]: (string); | ||
@@ -128,3 +128,3 @@ } | cdk.Token; | ||
*/ | ||
tags?: cdk.CfnTag[]; | ||
readonly tags?: cdk.CfnTag[]; | ||
/** | ||
@@ -134,3 +134,3 @@ * `AWS::CloudFormation::Stack.TimeoutInMinutes` | ||
*/ | ||
timeoutInMinutes?: number | cdk.Token; | ||
readonly timeoutInMinutes?: number | cdk.Token; | ||
} | ||
@@ -180,3 +180,3 @@ /** | ||
*/ | ||
count?: number | cdk.Token; | ||
readonly count?: number | cdk.Token; | ||
/** | ||
@@ -186,3 +186,3 @@ * `AWS::CloudFormation::WaitCondition.Handle` | ||
*/ | ||
handle?: string; | ||
readonly handle?: string; | ||
/** | ||
@@ -192,3 +192,3 @@ * `AWS::CloudFormation::WaitCondition.Timeout` | ||
*/ | ||
timeout?: string; | ||
readonly timeout?: string; | ||
} | ||
@@ -195,0 +195,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2019-03-20T12:47:59.604Z","fingerprint":"Ua6vhmHziMO3x1Fz1CijNJVMaLO96g+tKuF10HEj63w="} | ||
// @cfn2ts:meta@ {"generated":"2019-03-28T21:25:03.383Z","fingerprint":"TiClUVe6quo1M1312f9rRl1PKpHVoJKFADBhdDO8f1o="} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -312,2 +312,2 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control | ||
exports.CfnWaitConditionHandle = CfnWaitConditionHandle; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWRmb3JtYXRpb24uZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY2xvdWRmb3JtYXRpb24uZ2VuZXJhdGVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrRUFBK0U7QUFDL0UsK0RBQStEO0FBQy9ELDhGQUE4RjtBQUM5RixzSEFBc0g7O0FBRXRILGtHQUFrRztBQUVsRyxvQ0FBcUM7QUFjckM7Ozs7OztHQU1HO0FBQ0gsU0FBUywrQkFBK0IsQ0FBQyxVQUFlO0lBQ3BELElBQUksQ0FBQyxHQUFHLENBQUMsVUFBVSxDQUFDLFVBQVUsQ0FBQyxFQUFFO1FBQUUsT0FBTyxHQUFHLENBQUMsa0JBQWtCLENBQUM7S0FBRTtJQUNuRSxNQUFNLE1BQU0sR0FBRyxJQUFJL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@ import lambda = require('@aws-cdk/aws-lambda'); | ||
*/ | ||
lambdaProvider?: lambda.IFunction; | ||
readonly lambdaProvider?: lambda.IFunction; | ||
/** | ||
@@ -29,7 +29,7 @@ * The SNS Topic for the provider that implements this custom resource. | ||
*/ | ||
topicProvider?: sns.ITopic; | ||
readonly topicProvider?: sns.ITopic; | ||
/** | ||
* Properties to pass to the Lambda | ||
*/ | ||
properties?: Properties; | ||
readonly properties?: Properties; | ||
/** | ||
@@ -54,3 +54,3 @@ * For custom resources, you can specify AWS::CloudFormation::CustomResource | ||
*/ | ||
resourceType?: string; | ||
readonly resourceType?: string; | ||
} | ||
@@ -57,0 +57,0 @@ /** |
@@ -61,2 +61,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXJlc291cmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY3VzdG9tLXJlc291cmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EseUVBQStEO0FBc0QvRDs7Ozs7O0dBTUc7QUFDSCxNQUFhLGNBQWUsU0FBUSw0Q0FBaUI7SUFNbkQsWUFBWSxLQUFvQixFQUFFLEVBQVUsRUFBRSxLQUEwQjtRQUN0RSxJQUFJLENBQUMsQ0FBQyxLQUFLLENBQUMsY0FBYyxLQUFLLENBQUMsQ0FBQyxLQUFLLENBQUMsYUFBYSxFQUFFO1lBQ3BELE1BQU0sSUFBSSxLQUFLLENBQUMsaUVBQWlFLENBQUMsQ0FBQztTQUNwRjtRQUVELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFO1lBQ2YsWUFBWSxFQUFFLEtBQUssQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsYUFBYyxDQUFDLFFBQVE7U0FDdEcsQ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mtleXMocHJvcHMpLmZvckVhY2goa2V5ID0+IHtcbiAgICBjb25zdCB1cHBlciA9IGtleS5zdWJzdHIoMCwgMSkudG9VcHBlckNhc2UoKSArIGtleS5zdWJzdHIoMSk7XG4gICAgcmV0W3VwcGVyXSA9IHByb3BzW2tleV07XG4gIH0pO1xuICByZXR1cm4gcmV0O1xufVxuIl19 |
@@ -11,3 +11,3 @@ import codepipeline = require('@aws-cdk/aws-codepipeline-api'); | ||
*/ | ||
stackName: string; | ||
readonly stackName: string; | ||
/** | ||
@@ -24,3 +24,3 @@ * A name for the filename in the output artifact to store the AWS CloudFormation call's result. | ||
*/ | ||
outputFileName?: string; | ||
readonly outputFileName?: string; | ||
/** | ||
@@ -33,3 +33,3 @@ * The name of the output artifact to generate | ||
*/ | ||
outputArtifactName?: string; | ||
readonly outputArtifactName?: string; | ||
/** | ||
@@ -44,3 +44,3 @@ * The AWS region the given Action resides in. | ||
*/ | ||
region?: string; | ||
readonly region?: string; | ||
/** | ||
@@ -53,3 +53,3 @@ * The service role that is assumed during execution of action. | ||
*/ | ||
role?: iam.IRole; | ||
readonly role?: iam.IRole; | ||
} | ||
@@ -75,3 +75,3 @@ /** | ||
*/ | ||
changeSetName: string; | ||
readonly changeSetName: string; | ||
} | ||
@@ -99,3 +99,3 @@ /** | ||
*/ | ||
deploymentRole?: iam.IRole; | ||
readonly deploymentRole?: iam.IRole; | ||
/** | ||
@@ -112,3 +112,3 @@ * Acknowledge certain changes made as part of deployment | ||
*/ | ||
capabilities?: CloudFormationCapabilities; | ||
readonly capabilities?: CloudFormationCapabilities; | ||
/** | ||
@@ -129,3 +129,3 @@ * Whether to grant full permissions to CloudFormation while deploying this template. | ||
*/ | ||
adminPermissions: boolean; | ||
readonly adminPermissions: boolean; | ||
/** | ||
@@ -143,3 +143,3 @@ * Input artifact to use for template parameters values and stack policy. | ||
*/ | ||
templateConfiguration?: codepipeline.ArtifactPath; | ||
readonly templateConfiguration?: codepipeline.ArtifactPath; | ||
/** | ||
@@ -162,3 +162,3 @@ * Additional template parameters. | ||
*/ | ||
parameterOverrides?: { | ||
readonly parameterOverrides?: { | ||
[name: string]: any; | ||
@@ -181,3 +181,3 @@ }; | ||
*/ | ||
additionalInputArtifacts?: codepipeline.Artifact[]; | ||
readonly additionalInputArtifacts?: codepipeline.Artifact[]; | ||
} | ||
@@ -206,7 +206,7 @@ /** | ||
*/ | ||
changeSetName: string; | ||
readonly changeSetName: string; | ||
/** | ||
* Input artifact with the ChangeSet's CloudFormation template | ||
*/ | ||
templatePath: codepipeline.ArtifactPath; | ||
readonly templatePath: codepipeline.ArtifactPath; | ||
} | ||
@@ -231,3 +231,3 @@ /** | ||
*/ | ||
templatePath: codepipeline.ArtifactPath; | ||
readonly templatePath: codepipeline.ArtifactPath; | ||
/** | ||
@@ -246,3 +246,3 @@ * Replace the stack if it's in a failed state. | ||
*/ | ||
replaceOnFailure?: boolean; | ||
readonly replaceOnFailure?: boolean; | ||
} | ||
@@ -249,0 +249,0 @@ /** |
@@ -303,2 +303,2 @@ "use strict"; | ||
SingletonPolicy.UUID = '8389e75f-0810-4838-bf64-d6f85a95cf83'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZWxpbmUtYWN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBpcGVsaW5lLWFjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw4REFBZ0U7QUFDaEUsd0NBQXlDO0FBQ3pDLG9DQUFxQztBQXNEckM7O0dBRUc7QUFDSCxNQUFzQiw0QkFBNkIsU0FBUSxZQUFZLENBQUMsTUFBTTtJQVE1RSxZQUFZLEtBQXdDLEVBQUUsYUFBbUI7UUFDdkUsS0FBSyxtQkFDQSxLQUFLLElBQ1IsTUFBTSxFQUFFLEtBQUssQ0FBQyxNQUFNLEVBQ3BCLGNBQWMsRUFBRTtnQkFDZCxTQUFTLEVBQU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G4gICAgICByZXNvdXJjZU5hbWU6IGAke3Byb3BzLnN0YWNrTmFtZX0vKmBcbiAgICB9KTtcbiAgfVxufVxuXG5pbnRlcmZhY2UgU3RhdGVtZW50VGVtcGxhdGUge1xuICBhY3Rpb25zOiBzdHJpbmdbXTtcbiAgY29uZGl0aW9ucz86IFN0YXRlbWVudENvbmRpdGlvbjtcbn1cblxudHlwZSBTdGF0ZW1lbnRDb25kaXRpb24gPSB7IFtvcDogc3RyaW5nXTogeyBbYXR0cmlidXRlOiBzdHJpbmddOiBzdHJpbmcgfSB9O1xuIl19 |
{ | ||
"name": "@aws-cdk/aws-cloudformation", | ||
"version": "0.26.0", | ||
"version": "0.27.0", | ||
"description": "CDK Constructs for AWS CloudFormation", | ||
@@ -23,3 +23,7 @@ "main": "lib/index.js", | ||
}, | ||
"sphinx": {} | ||
"sphinx": {}, | ||
"python": { | ||
"distName": "aws-cdk.aws-cloudformation", | ||
"module": "aws_cdk.aws_cloudformation" | ||
} | ||
} | ||
@@ -63,25 +67,25 @@ }, | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.26.0", | ||
"@aws-cdk/aws-events": "^0.26.0", | ||
"@aws-cdk/assert": "^0.27.0", | ||
"@aws-cdk/aws-events": "^0.27.0", | ||
"@types/lodash": "^4.14.118", | ||
"cdk-build-tools": "^0.26.0", | ||
"cdk-integ-tools": "^0.26.0", | ||
"cfn2ts": "^0.26.0", | ||
"cdk-build-tools": "^0.27.0", | ||
"cdk-integ-tools": "^0.27.0", | ||
"cfn2ts": "^0.27.0", | ||
"lodash": "^4.17.11", | ||
"pkglint": "^0.26.0" | ||
"pkglint": "^0.27.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-codepipeline-api": "^0.26.0", | ||
"@aws-cdk/aws-iam": "^0.26.0", | ||
"@aws-cdk/aws-lambda": "^0.26.0", | ||
"@aws-cdk/aws-sns": "^0.26.0", | ||
"@aws-cdk/cdk": "^0.26.0" | ||
"@aws-cdk/aws-codepipeline-api": "^0.27.0", | ||
"@aws-cdk/aws-iam": "^0.27.0", | ||
"@aws-cdk/aws-lambda": "^0.27.0", | ||
"@aws-cdk/aws-sns": "^0.27.0", | ||
"@aws-cdk/cdk": "^0.27.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-codepipeline-api": "^0.26.0", | ||
"@aws-cdk/aws-iam": "^0.26.0", | ||
"@aws-cdk/aws-lambda": "^0.26.0", | ||
"@aws-cdk/aws-sns": "^0.26.0", | ||
"@aws-cdk/cdk": "^0.26.0" | ||
"@aws-cdk/aws-codepipeline-api": "^0.27.0", | ||
"@aws-cdk/aws-iam": "^0.27.0", | ||
"@aws-cdk/aws-lambda": "^0.27.0", | ||
"@aws-cdk/aws-sns": "^0.27.0", | ||
"@aws-cdk/cdk": "^0.27.0" | ||
}, | ||
@@ -88,0 +92,0 @@ "engines": { |
@@ -161,2 +161,3 @@ "use strict"; | ||
_assertPermissionGranted(test, pipelineRole.statements, 'cloudformation:DeleteChangeSet', stackArn, changeSetCondition); | ||
// TODO: revert "as any" once we move all actions into a single package. | ||
test.deepEqual(action._inputArtifacts, [artifact], 'The inputArtifact was correctly registered'); | ||
@@ -320,2 +321,2 @@ _assertActionMatches(test, stage.actions, 'AWS', 'CloudFormation', 'Deploy', { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5waXBlbGluZS1hY3Rpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC5waXBlbGluZS1hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSx1REFBd0Q7QUFFeEQsd0NBQXlDO0FBQ3pDLG9DQUFxQztBQUNyQyw0QkFBNkI7QUFDN0IscUNBQXNDO0FBQ3RDLHlDQUEwQztBQStOMUMsU0FBUyxvQkFBb0IsQ0FBQyxJQUFtQixFQUNuQixP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bjpEZXNjcmliZVN0YWNrKicsIHN0YWNrQXJuKTtcbiAgICBfYXNzZXJ0UGVybWlzc2lvbkdyYW50ZWQodGVzdCwgcGlwZWxpbmVSb2xlLnN0YXRlbWVudHMsICdjbG91ZGZvcm1hdGlvbjpEZWxldGVTdGFjaycsIHN0YWNrQXJuKTtcblxuICAgIF9hc3NlcnRQZXJtaXNzaW9uR3JhbnRlZCh0ZXN0LCBwaXBlbGluZVJvbGUuc3RhdGVtZW50cywgJ2lhbTpQYXNzUm9sZScsIGFjdGlvbi5kZXBsb3ltZW50Um9sZS5yb2xlQXJuKTtcblxuICAgIHRlc3QuZG9uZSgpO1xuICB9LFxufSk7XG5cbmludGVyZmFjZSBQb2xpY3lTdGF0ZW1lbnRKc29uIHtcbiAgRWZmZWN0OiAnQWxsb3cnIHwgJ0RlbnknO1xuICBBY3Rpb246IHN0cmluZyB8IHN0cmluZ1tdO1xuICBSZXNvdXJjZTogc3RyaW5nIHzCoHN0cmluZ1tdO1xuICBDb25kaXRpb246IGFueTtcbn1cblxuZnVuY3Rpb24gX2Fzc2VydEFjdGlvbk1hdGNoZXModGVzdDogbm9kZXVuaXQuVGVzdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjdGlvbnM6IGNwYXBpLkFjdGlvbltdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3duZXI6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRlZ29yeTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhdGlvbj86IHsgW2tleTogc3RyaW5nXTogYW55IH0pIHtcbiAgY29uc3QgY29uZmlndXJhdGlvblN0ciA9IGNvbmZpZ3VyYXRpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICA/IGBjb25maWd1cmF0aW9uIGluY2x1ZGluZyAke0pT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B0aW9ucz86IGV2ZW50cy5FdmVudFJ1bGVQcm9wcyk6XG4gICAgICBldmVudHMuRXZlbnRSdWxlIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ29uU3RhdGVDaGFuZ2UoKSBpcyBub3Qgc3VwcG9ydGVkIG9uIFN0YWdlRG91YmxlJyk7XG4gIH1cbn1cblxuY2xhc3MgUm9sZURvdWJsZSBleHRlbmRzIGlhbS5Sb2xlIHtcbiAgcHVibGljIHJlYWRvbmx5IHN0YXRlbWVudHMgPSBuZXcgQXJyYXk8aWFtLlBvbGljeVN0YXRlbWVudD4oKTtcblxuICBjb25zdHJ1Y3RvcihzY29wZTogY2RrLkNvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM6IGlhbS5Sb2xlUHJvcHMgPSB7IGFzc3VtZWRCeTogbmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCd0ZXN0JykgfSkge1xuICAgIHN1cGVyKHNjb3BlLCBpZCwgcHJvcHMpO1xuICB9XG5cbiAgcHVibGljIGFkZFRvUG9saWN5KHN0YXRlbWVudDogaWFtLlBvbGljeVN0YXRlbWVudCkge1xuICAgIHN1cGVyLmFkZFRvUG9saWN5KHN0YXRlbWVudCk7XG4gICAgdGhpcy5zdGF0ZW1lbnRzLnB1c2goc3RhdGVtZW50KTtcbiAgfVxufVxuXG5mdW5jdGlvbiByZXNvbHZlKHg6IGFueSk6IGFueSB7XG4gIHJldHVybiBuZXcgY2RrLlN0YWNrKCkubm9kZS5yZXNvbHZlKHgpO1xufVxuIl19 |
@@ -25,2 +25,3 @@ { | ||
"strictNullChecks": true, | ||
"stripInternal": true, | ||
"target": "ES2018", | ||
@@ -27,0 +28,0 @@ "composite": true |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
829321
1948
+ Added@aws-cdk/assets@0.27.0(transitive)
+ Added@aws-cdk/aws-autoscaling-api@0.27.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.27.0(transitive)
+ Added@aws-cdk/aws-codepipeline-api@0.27.0(transitive)
+ Added@aws-cdk/aws-ec2@0.27.0(transitive)
+ Added@aws-cdk/aws-events@0.27.0(transitive)
+ Added@aws-cdk/aws-iam@0.27.0(transitive)
+ Added@aws-cdk/aws-kms@0.27.0(transitive)
+ Added@aws-cdk/aws-lambda@0.27.0(transitive)
+ Added@aws-cdk/aws-logs@0.27.0(transitive)
+ Added@aws-cdk/aws-s3@0.27.0(transitive)
+ Added@aws-cdk/aws-s3-notifications@0.27.0(transitive)
+ Added@aws-cdk/aws-sns@0.27.0(transitive)
+ Added@aws-cdk/aws-sqs@0.27.0(transitive)
+ Added@aws-cdk/aws-stepfunctions@0.27.0(transitive)
+ Added@aws-cdk/cdk@0.27.0(transitive)
+ Added@aws-cdk/cx-api@0.27.0(transitive)
+ Added@aws-cdk/region-info@0.27.0(transitive)
- Removed@aws-cdk/assets@0.26.0(transitive)
- Removed@aws-cdk/aws-autoscaling-api@0.26.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.26.0(transitive)
- Removed@aws-cdk/aws-codepipeline-api@0.26.0(transitive)
- Removed@aws-cdk/aws-ec2@0.26.0(transitive)
- Removed@aws-cdk/aws-events@0.26.0(transitive)
- Removed@aws-cdk/aws-iam@0.26.0(transitive)
- Removed@aws-cdk/aws-kms@0.26.0(transitive)
- Removed@aws-cdk/aws-lambda@0.26.0(transitive)
- Removed@aws-cdk/aws-logs@0.26.0(transitive)
- Removed@aws-cdk/aws-s3@0.26.0(transitive)
- Removed@aws-cdk/aws-s3-notifications@0.26.0(transitive)
- Removed@aws-cdk/aws-sns@0.26.0(transitive)
- Removed@aws-cdk/aws-sqs@0.26.0(transitive)
- Removed@aws-cdk/aws-stepfunctions@0.26.0(transitive)
- Removed@aws-cdk/cdk@0.26.0(transitive)
- Removed@aws-cdk/cx-api@0.26.0(transitive)
- Removed@aws-cdk/region-info@0.26.0(transitive)
Updated@aws-cdk/aws-iam@^0.27.0
Updated@aws-cdk/aws-lambda@^0.27.0
Updated@aws-cdk/aws-sns@^0.27.0
Updated@aws-cdk/cdk@^0.27.0