@aws-cdk/aws-codecommit
Advanced tools
Comparing version 0.32.0 to 0.33.0
@@ -13,2 +13,7 @@ import cdk = require('@aws-cdk/cdk'); | ||
/** | ||
* `AWS::CodeCommit::Repository.Code` | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-code | ||
*/ | ||
readonly code?: CfnRepository.CodeProperty | cdk.Token; | ||
/** | ||
* `AWS::CodeCommit::Repository.RepositoryDescription` | ||
@@ -67,2 +72,14 @@ * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-repositorydescription | ||
/** | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html | ||
*/ | ||
interface CodeProperty { | ||
/** | ||
* `CfnRepository.CodeProperty.S3` | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html#cfn-codecommit-repository-code-s3 | ||
*/ | ||
readonly s3: CfnRepository.S3Property | cdk.Token; | ||
} | ||
} | ||
export declare namespace CfnRepository { | ||
/** | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html | ||
@@ -98,1 +115,23 @@ */ | ||
} | ||
export declare namespace CfnRepository { | ||
/** | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-s3.html | ||
*/ | ||
interface S3Property { | ||
/** | ||
* `CfnRepository.S3Property.Bucket` | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-s3.html#cfn-codecommit-repository-s3-bucket | ||
*/ | ||
readonly bucket: string; | ||
/** | ||
* `CfnRepository.S3Property.Key` | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-s3.html#cfn-codecommit-repository-s3-key | ||
*/ | ||
readonly key: string; | ||
/** | ||
* `CfnRepository.S3Property.ObjectVersion` | ||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-s3.html#cfn-codecommit-repository-s3-objectversion | ||
*/ | ||
readonly objectVersion?: string; | ||
} | ||
} |
@@ -5,3 +5,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2019-05-24T10:05:10.808Z","fingerprint":"WqwTiFfP/W6xO1NgAYtshkBdseCgMzQrEpMRiAMLz18="} | ||
// @cfn2ts:meta@ {"generated":"2019-05-30T14:52:24.564Z","fingerprint":"vOh7pSHRsf2yISh8r45BbYkj7wB8yaeZL3xLBsvJQOA="} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -22,2 +22,3 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('code', CfnRepository_CodePropertyValidator)(properties.code)); | ||
errors.collect(cdk.propertyValidator('repositoryDescription', cdk.validateString)(properties.repositoryDescription)); | ||
@@ -44,2 +45,3 @@ errors.collect(cdk.propertyValidator('repositoryName', cdk.requiredValidator)(properties.repositoryName)); | ||
RepositoryName: cdk.stringToCloudFormation(properties.repositoryName), | ||
Code: cfnRepositoryCodePropertyToCloudFormation(properties.code), | ||
RepositoryDescription: cdk.stringToCloudFormation(properties.repositoryDescription), | ||
@@ -85,2 +87,35 @@ Triggers: cdk.listMapper(cfnRepositoryRepositoryTriggerPropertyToCloudFormation)(properties.triggers), | ||
/** | ||
* Determine whether the given properties match those of a `CodeProperty` | ||
* | ||
* @param properties - the TypeScript properties of a `CodeProperty` | ||
* | ||
* @returns the result of the validation. | ||
*/ | ||
function CfnRepository_CodePropertyValidator(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return cdk.VALIDATION_SUCCESS; | ||
} | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('s3', cdk.requiredValidator)(properties.s3)); | ||
errors.collect(cdk.propertyValidator('s3', CfnRepository_S3PropertyValidator)(properties.s3)); | ||
return errors.wrap('supplied properties not correct for "CodeProperty"'); | ||
} | ||
/** | ||
* Renders the AWS CloudFormation properties of an `AWS::CodeCommit::Repository.Code` resource | ||
* | ||
* @param properties - the TypeScript properties of a `CodeProperty` | ||
* | ||
* @returns the AWS CloudFormation properties of an `AWS::CodeCommit::Repository.Code` resource. | ||
*/ | ||
// @ts-ignore TS6133 | ||
function cfnRepositoryCodePropertyToCloudFormation(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return properties; | ||
} | ||
CfnRepository_CodePropertyValidator(properties).assertSuccess(); | ||
return { | ||
S3: cfnRepositoryS3PropertyToCloudFormation(properties.s3), | ||
}; | ||
} | ||
/** | ||
* Determine whether the given properties match those of a `RepositoryTriggerProperty` | ||
@@ -125,2 +160,40 @@ * | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZWNvbW1pdC5nZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb2RlY29tbWl0LmdlbmVyYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIOztBQUV0SCxrR0FBa0c7QUFFbEcsb0NBQXFDO0FBd0JyQzs7Ozs7O0dBTUc7QUFDSCxTQUFTLDJCQUEyQixDQUFDLFVBQWU7SUFDaEQsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQztLQUFFO0lBQ25FLE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLENB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WYgKCFjZGsuY2FuSW5zcGVjdChwcm9wZXJ0aWVzKSkgeyByZXR1cm4gcHJvcGVydGllczsgfVxuICAgIENmblJlcG9zaXRvcnlfUmVwb3NpdG9yeVRyaWdnZXJQcm9wZXJ0eVZhbGlkYXRvcihwcm9wZXJ0aWVzKS5hc3NlcnRTdWNjZXNzKCk7XG4gICAgcmV0dXJuIHtcbiAgICAgIEJyYW5jaGVzOiBjZGsubGlzdE1hcHBlcihjZGsuc3RyaW5nVG9DbG91ZEZvcm1hdGlvbikocHJvcGVydGllcy5icmFuY2hlcyksXG4gICAgICBDdXN0b21EYXRhOiBjZGsuc3RyaW5nVG9DbG91ZEZvcm1hdGlvbihwcm9wZXJ0aWVzLmN1c3RvbURhdGEpLFxuICAgICAgRGVzdGluYXRpb25Bcm46IGNkay5zdHJpbmdUb0Nsb3VkRm9ybWF0aW9uKHByb3BlcnRpZXMuZGVzdGluYXRpb25Bcm4pLFxuICAgICAgRXZlbnRzOiBjZGsubGlzdE1hcHBlcihjZGsuc3RyaW5nVG9DbG91ZEZvcm1hdGlvbikocHJvcGVydGllcy5ldmVudHMpLFxuICAgICAgTmFtZTogY2RrLnN0cmluZ1RvQ2xvdWRGb3JtYXRpb24ocHJvcGVydGllcy5uYW1lKSxcbiAgICB9O1xufVxuIl19 | ||
/** | ||
* Determine whether the given properties match those of a `S3Property` | ||
* | ||
* @param properties - the TypeScript properties of a `S3Property` | ||
* | ||
* @returns the result of the validation. | ||
*/ | ||
function CfnRepository_S3PropertyValidator(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return cdk.VALIDATION_SUCCESS; | ||
} | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('bucket', cdk.requiredValidator)(properties.bucket)); | ||
errors.collect(cdk.propertyValidator('bucket', cdk.validateString)(properties.bucket)); | ||
errors.collect(cdk.propertyValidator('key', cdk.requiredValidator)(properties.key)); | ||
errors.collect(cdk.propertyValidator('key', cdk.validateString)(properties.key)); | ||
errors.collect(cdk.propertyValidator('objectVersion', cdk.validateString)(properties.objectVersion)); | ||
return errors.wrap('supplied properties not correct for "S3Property"'); | ||
} | ||
/** | ||
* Renders the AWS CloudFormation properties of an `AWS::CodeCommit::Repository.S3` resource | ||
* | ||
* @param properties - the TypeScript properties of a `S3Property` | ||
* | ||
* @returns the AWS CloudFormation properties of an `AWS::CodeCommit::Repository.S3` resource. | ||
*/ | ||
// @ts-ignore TS6133 | ||
function cfnRepositoryS3PropertyToCloudFormation(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return properties; | ||
} | ||
CfnRepository_S3PropertyValidator(properties).assertSuccess(); | ||
return { | ||
Bucket: cdk.stringToCloudFormation(properties.bucket), | ||
Key: cdk.stringToCloudFormation(properties.key), | ||
ObjectVersion: cdk.stringToCloudFormation(properties.objectVersion), | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZWNvbW1pdC5nZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb2RlY29tbWl0LmdlbmVyYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIOztBQUV0SCxrR0FBa0c7QUFFbEcsb0NBQXFDO0FBNkJyQzs7Ozs7O0dBTUc7QUFDSCxTQUFTLDJCQUEyQixDQUFDLFVBQWU7SUFDaEQsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQztLQUFFO0lBQ25FLE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLENBQUM7SUFDM0MsTUFBTSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsTU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c3BlY3QocHJvcGVydGllcykpIHsgcmV0dXJuIHByb3BlcnRpZXM7IH1cbiAgICBDZm5SZXBvc2l0b3J5X1MzUHJvcGVydHlWYWxpZGF0b3IocHJvcGVydGllcykuYXNzZXJ0U3VjY2VzcygpO1xuICAgIHJldHVybiB7XG4gICAgICBCdWNrZXQ6IGNkay5zdHJpbmdUb0Nsb3VkRm9ybWF0aW9uKHByb3BlcnRpZXMuYnVja2V0KSxcbiAgICAgIEtleTogY2RrLnN0cmluZ1RvQ2xvdWRGb3JtYXRpb24ocHJvcGVydGllcy5rZXkpLFxuICAgICAgT2JqZWN0VmVyc2lvbjogY2RrLnN0cmluZ1RvQ2xvdWRGb3JtYXRpb24ocHJvcGVydGllcy5vYmplY3RWZXJzaW9uKSxcbiAgICB9O1xufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-codecommit", | ||
"version": "0.32.0", | ||
"version": "0.33.0", | ||
"description": "CDK Constructs for AWS CodeCommit", | ||
@@ -68,20 +68,20 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.32.0", | ||
"@aws-cdk/aws-sns": "^0.32.0", | ||
"@aws-cdk/assert": "^0.33.0", | ||
"@aws-cdk/aws-sns": "^0.33.0", | ||
"aws-sdk": "^2.438.0", | ||
"cdk-build-tools": "^0.32.0", | ||
"cdk-integ-tools": "^0.32.0", | ||
"cfn2ts": "^0.32.0", | ||
"pkglint": "^0.32.0" | ||
"cdk-build-tools": "^0.33.0", | ||
"cdk-integ-tools": "^0.33.0", | ||
"cfn2ts": "^0.33.0", | ||
"pkglint": "^0.33.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-events": "^0.32.0", | ||
"@aws-cdk/aws-iam": "^0.32.0", | ||
"@aws-cdk/cdk": "^0.32.0" | ||
"@aws-cdk/aws-events": "^0.33.0", | ||
"@aws-cdk/aws-iam": "^0.33.0", | ||
"@aws-cdk/cdk": "^0.33.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-events": "^0.32.0", | ||
"@aws-cdk/aws-iam": "^0.32.0", | ||
"@aws-cdk/cdk": "^0.32.0" | ||
"@aws-cdk/aws-events": "^0.33.0", | ||
"@aws-cdk/aws-iam": "^0.33.0", | ||
"@aws-cdk/cdk": "^0.33.0" | ||
}, | ||
@@ -91,2 +91,2 @@ "engines": { | ||
} | ||
} | ||
} |
"use strict"; | ||
const assert_1 = require("@aws-cdk/assert"); | ||
const cdk_1 = require("@aws-cdk/cdk"); | ||
const lib_1 = require("../lib"); | ||
class TestApp { | ||
constructor() { | ||
this.app = new cdk_1.App(); | ||
// tslint:disable-next-line:member-ordering | ||
this.stack = new cdk_1.Stack(this.app, 'MyStack'); | ||
} | ||
synthesizeTemplate() { | ||
return this.app.synthesizeStack(this.stack.name).template; | ||
} | ||
} | ||
module.exports = { | ||
'CodeCommit Repositories': { | ||
'add an SNS trigger to repository'(test) { | ||
const app = new TestApp(); | ||
const stack = new cdk_1.Stack(); | ||
const props = { | ||
@@ -22,5 +13,4 @@ repositoryName: 'MyRepository' | ||
const snsArn = 'arn:aws:sns:*:123456789012:my_topic'; | ||
new lib_1.Repository(app.stack, 'MyRepository', props).notify(snsArn); | ||
const template = app.synthesizeTemplate(); | ||
test.deepEqual(template, { | ||
new lib_1.Repository(stack, 'MyRepository', props).notify(snsArn); | ||
assert_1.expect(stack).toMatch({ | ||
Resources: { | ||
@@ -37,3 +27,3 @@ MyRepository4C4BD5FC: { | ||
DestinationArn: "arn:aws:sns:*:123456789012:my_topic", | ||
Name: "MyStack/MyRepository/arn:aws:sns:*:123456789012:my_topic" | ||
Name: "MyRepository/arn:aws:sns:*:123456789012:my_topic" | ||
} | ||
@@ -48,6 +38,5 @@ ] | ||
'fails when triggers have duplicate names'(test) { | ||
const app = new TestApp(); | ||
const stack = new cdk_1.Stack(); | ||
const props = { repositoryName: 'MyRepository' }; | ||
const myRepository = new lib_1.Repository(app.stack, 'MyRepository', props) | ||
.notify('myTrigger'); | ||
const myRepository = new lib_1.Repository(stack, 'MyRepository', props).notify('myTrigger'); | ||
test.throws(() => myRepository.notify('myTrigger')); | ||
@@ -89,2 +78,2 @@ test.done(); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5jb2RlY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC5jb2RlY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzQ0FBMEM7QUFFMUMsZ0NBQXFEO0FBNEZyRCxNQUFNLE9BQU87SUFBYjtRQUNtQixRQUFHLEdBQUcsSUFBSSxTQUFHLEVBQUUsQ0FBQztRQUNqQywyQ0FBMkM7UUFDM0IsVUFBSyxHQUFVLElBQUksV0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLEVBQUUsU0FBUyxDQUFDLENBQUM7SUFLaEUsQ0FBQztJQUhRLGtCQUFrQjtRQUN2QixPQUFPLElBQUksQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsUUFBUSxDQUFDO0lBQzVELENBQUM7Q0FDRjtBQWxHRCxpQkFBUztJQUNQLHlCQUF5QixFQUFFO1FBQ3pCLGtDQUFrQyxDQUFDLElBQVU7WUFDM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxPQUFPLEVBQUUsQ0FBQztZQUUxQixNQUFNLEtBQUssR0FBb0I7Z0JBQzdCLGNBQWMsRUFBRyxjQUFjO2FBQ2hDLENBQUM7WUFFRixNQUFNLE1BQU0sR0FBRyxxQ0FBcUMsQ0FBQztZQUVyRCxJQUFJLGdCQUFVLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxjQUFjLEVBQUUsS0FBSyxDQUFDLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1lBQ2h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ICAgLy8gVEhFTlxuICAgICAgdGVzdC5kZWVwRXF1YWwocmVwby5ub2RlLnJlc29sdmUocmVwby5yZXBvc2l0b3J5QXJuKSwge1xuICAgICAgICAnRm46OkpvaW4nOiBbICcnLCBbXG4gICAgICAgICAgJ2FybjonLFxuICAgICAgICAgIHsgUmVmOiAnQVdTOjpQYXJ0aXRpb24nIH0sXG4gICAgICAgICAgJzpjb2RlY29tbWl0OicsXG4gICAgICAgICAgeyBSZWY6ICdBV1M6OlJlZ2lvbicgfSxcbiAgICAgICAgICAnOicsXG4gICAgICAgICAgeyBSZWY6ICdBV1M6OkFjY291bnRJZCcgfSxcbiAgICAgICAgICAnOm15LXJlcG8nXG4gICAgICAgIF1dLFxuICAgICAgfSk7XG4gICAgICB0ZXN0LmRlZXBFcXVhbChyZXBvLm5vZGUucmVzb2x2ZShyZXBvLnJlcG9zaXRvcnlOYW1lKSwgJ215LXJlcG8nKTtcblxuICAgICAgdGVzdC5kb25lKCk7XG4gICAgfSxcbiAgfSxcbn07XG5cbmNsYXNzIFRlc3RBcHAge1xuICBwcml2YXRlIHJlYWRvbmx5IGFwcCA9IG5ldyBBcHAoKTtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOm1lbWJlci1vcmRlcmluZ1xuICBwdWJsaWMgcmVhZG9ubHkgc3RhY2s6IFN0YWNrID0gbmV3IFN0YWNrKHRoaXMuYXBwLCAnTXlTdGFjaycpO1xuXG4gIHB1YmxpYyBzeW50aGVzaXplVGVtcGxhdGUoKSB7XG4gICAgcmV0dXJuIHRoaXMuYXBwLnN5bnRoZXNpemVTdGFjayh0aGlzLnN0YWNrLm5hbWUpLnRlbXBsYXRlO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5jb2RlY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC5jb2RlY29tbWl0LnRzIl0sIm5h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HJvcHM6IFJlcG9zaXRvcnlQcm9wcyA9IHtcbiAgICAgICAgcmVwb3NpdG9yeU5hbWU6ICdNeVJlcG9zaXRvcnknXG4gICAgICB9O1xuXG4gICAgICBjb25zdCBzbnNBcm4gPSAnYXJuOmF3czpzbnM6KjoxMjM0NTY3ODkwMTI6bXlfdG9waWMnO1xuXG4gICAgICBuZXcgUmVwb3NpdG9yeShzdGFjaywgJ015UmVwb3NpdG9yeScsIHByb3BzKS5ub3RpZnkoc25zQXJuKTtcblxuICAgICAgZXhwZWN0KHN0YWNrKS50b01hdGNoKHtcbiAgICAgICAgUmVzb3VyY2VzOiB7XG4gICAgICAgICAgTXlSZXBvc2l0b3J5NEM0QkQ1RkM6IHtcbiAgICAgICAgICAgIFR5cGU6IFwiQVdTOjpDb2RlQ29tbWl0OjpSZXBvc2l0b3J5XCIsXG4gICAgICAgICAgICBQcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgICAgIFJlcG9zaXRvcnlOYW1lOiBcIk15UmVwb3NpdG9yeVwiLFxuICAgICAgICAgICAgICBUcmlnZ2VyczogW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIEV2ZW50czogW1xuICAgICAgICAgICAgICAgICAgICBcImFsbFwiXG4gICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgRGVzdGluYXRpb25Bcm46IFwiYXJuOmF3czpzbnM6KjoxMjM0NTY3ODkwMTI6bXlfdG9waWNcIixcbiAgICAgICAgICAgICAgICAgIE5hbWU6IFwiTXlSZXBvc2l0b3J5L2Fybjphd3M6c25zOio6MTIzNDU2Nzg5MDEyOm15X3RvcGljXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0pO1xuXG4gICAgICB0ZXN0LmRvbmUoKTtcbiAgICB9LFxuXG4gICAgJ2ZhaWxzIHdoZW4gdHJpZ2dlc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B9LFxuXG4gICAgJ2NhbiBiZSBpbXBvcnRlZCB1c2luZyBqdXN0IGEgUmVwb3NpdG9yeSBuYW1lICh0aGUgQVJOIGlzIGRlZHVjZWQpJyh0ZXN0OiBUZXN0KSB7XG4gICAgICAvLyBHSVZFTlxuICAgICAgY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soKTtcblxuICAgICAgLy8gV0hFTlxuICAgICAgY29uc3QgcmVwbyA9IFJlcG9zaXRvcnkuZnJvbVJlcG9zaXRvcnlOYW1lKHN0YWNrLCAnSW1wb3J0ZWRSZXBvJywgJ215LXJlcG8nKTtcblxuICAgICAgLy8gVEhFTlxuICAgICAgdGVzdC5kZWVwRXF1YWwocmVwby5ub2RlLnJlc29sdmUocmVwby5yZXBvc2l0b3J5QXJuKSwge1xuICAgICAgICAnRm46OkpvaW4nOiBbJycsIFtcbiAgICAgICAgICAnYXJuOicsXG4gICAgICAgICAgeyBSZWY6ICdBV1M6OlBhcnRpdGlvbicgfSxcbiAgICAgICAgICAnOmNvZGVjb21taXQ6JyxcbiAgICAgICAgICB7IFJlZjogJ0FXUzo6UmVnaW9uJyB9LFxuICAgICAgICAgICc6JyxcbiAgICAgICAgICB7IFJlZjogJ0FXUzo6QWNjb3VudElkJyB9LFxuICAgICAgICAgICc6bXktcmVwbydcbiAgICAgICAgXV0sXG4gICAgICB9KTtcbiAgICAgIHRlc3QuZGVlcEVxdWFsKHJlcG8ubm9kZS5yZXNvbHZlKHJlcG8ucmVwb3NpdG9yeU5hbWUpLCAnbXktcmVwbycpO1xuXG4gICAgICB0ZXN0LmRvbmUoKTtcbiAgICB9LFxuICB9LFxufTtcbiJdfQ== |
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
179112
22
1190
+ Added@aws-cdk/aws-events@0.33.0(transitive)
+ Added@aws-cdk/aws-iam@0.33.0(transitive)
+ Added@aws-cdk/cdk@0.33.0(transitive)
+ Added@aws-cdk/cx-api@0.33.0(transitive)
+ Added@aws-cdk/region-info@0.33.0(transitive)
- Removed@aws-cdk/aws-events@0.32.0(transitive)
- Removed@aws-cdk/aws-iam@0.32.0(transitive)
- Removed@aws-cdk/cdk@0.32.0(transitive)
- Removed@aws-cdk/cx-api@0.32.0(transitive)
- Removed@aws-cdk/region-info@0.32.0(transitive)
Updated@aws-cdk/aws-events@^0.33.0
Updated@aws-cdk/aws-iam@^0.33.0
Updated@aws-cdk/cdk@^0.33.0