@aws-cdk/aws-stepfunctions
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -13,3 +13,3 @@ "use strict"; | ||
const resource = new stepfunctions_generated_1.cloudformation.ActivityResource(this, 'Resource', { | ||
activityName: props.activityName || this.generateName() | ||
name: props.activityName || this.generateName() | ||
}); | ||
@@ -117,2 +117,2 @@ this.activityArn = resource.activityArn; | ||
exports.Activity = Activity; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhY3Rpdml0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNEQUF1RDtBQUN2RCxvQ0FBcUM7QUFFckMsdUVBQTJEO0FBVzNEOztHQUVHO0FBQ0gsTUFBYSxRQUFTLFNBQVEsR0FBRyxDQUFDLFNBQVM7SUFJdkMsWUFBWSxNQUFxQixFQUFFLEVBQVUsRUFBRSxRQUF1QixFQUFFO1FBQ3BFLEtBQUssQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFbEIsTUFBTSxRQUFRLEdBQUcsSUFBSSx3Q0FBYyxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDbkUsWUFBWSxFQUFFLEtBQUssQ0FBQyxZQUFZLElBQUksSUFBSSxDQUFDLFlBQVksRUFBRTtTQUMxRCxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsV0FBVyxHQUFHLFFBQVEsQ0FBQyxXQUFXLENBQUM7UUFDeEMsSUFBSSxDQUFDLFlBQVksR0FBRyxRQUFRLENBQUMsWUFBWSxDQUFDO0lBQzlDLENBQUM7SUFFTSwyQkFBMkIsQ0FBQyxZQUFrQjtRQUNqRCxvRkFBb0Y7UUFDcEYsT0FBTztZQUNILFdBQVcsRUFBRSxJQUFJLENBQUMsV0FBVztZQUM3QixvQkFBb0IsRUFBRSxVQUFVO1l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dhdGNoLk1ldHJpY0N1c3RvbWl6YXRpb24pOiBjbG91ZHdhdGNoLk1ldHJpYyB7XG4gICAgICAgIHJldHVybiB0aGlzLm1ldHJpYygnQWN0aXZpdGllc0ZhaWxlZCcsIHByb3BzKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBNZXRyaWMgZm9yIHRoZSBudW1iZXIgb2YgdGltZXMgdGhlIGhlYXJ0YmVhdCB0aW1lcyBvdXQgZm9yIHRoaXMgYWN0aXZpdHlcbiAgICAgKlxuICAgICAqIEBkZWZhdWx0IHN1bSBvdmVyIDUgbWludXRlc1xuICAgICAqL1xuICAgIHB1YmxpYyBtZXRyaWNIZWFydGJlYXRUaW1lZE91dChwcm9wcz86IGNsb3Vkd2F0Y2guTWV0cmljQ3VzdG9taXphdGlvbik6IGNsb3Vkd2F0Y2guTWV0cmljIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWV0cmljKCdBY3Rpdml0aWVzSGVhcnRiZWF0VGltZWRPdXQnLCBwcm9wcyk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZW5lcmF0ZU5hbWUoKTogc3RyaW5nIHtcbiAgICAgICAgY29uc3QgbmFtZSA9IHRoaXMudW5pcXVlSWQ7XG4gICAgICAgIGlmIChuYW1lLmxlbmd0aCA+IDgwKSB7XG4gICAgICAgICAgICByZXR1cm4gbmFtZS5zdWJzdHJpbmcoMCwgNDApICsgbmFtZS5zdWJzdHJpbmcobmFtZS5sZW5ndGggLSA0MCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG5hbWU7XG4gICAgfVxufVxuIl19 |
@@ -11,3 +11,3 @@ import cdk = require('@aws-cdk/cdk'); | ||
*/ | ||
activityName: string | cdk.Token; | ||
name: string | cdk.Token; | ||
} | ||
@@ -14,0 +14,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2018-10-19T13:46:27.080Z","fingerprint":"Z4mxTWWMfBvZKSqcg+G9GMDBvDvcS1bAfSkoYd35CS4="} | ||
// @cfn2ts:meta@ {"generated":"2018-10-26T12:03:40.800Z","fingerprint":"z8xhpwf2XJgKNdlDVfw3/yXvhdN2MzuOI4RpQ3R0G2k="} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -24,4 +24,4 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('activityName', cdk.requiredValidator)(properties.activityName)); | ||
errors.collect(cdk.propertyValidator('activityName', cdk.validateString)(properties.activityName)); | ||
errors.collect(cdk.propertyValidator('name', cdk.requiredValidator)(properties.name)); | ||
errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name)); | ||
return errors.wrap('supplied properties not correct for "ActivityResourceProps"'); | ||
@@ -42,3 +42,3 @@ } | ||
return { | ||
Name: cdk.stringToCloudFormation(properties.activityName), | ||
Name: cdk.stringToCloudFormation(properties.name), | ||
}; | ||
@@ -59,3 +59,3 @@ } | ||
super(parent, name, { type: ActivityResource.resourceTypeName, properties }); | ||
cdk.requireProperty(properties, 'activityName', this); | ||
cdk.requireProperty(properties, 'name', this); | ||
this.activityName = this.getAtt('Name').toString(); | ||
@@ -146,2 +146,2 @@ this.activityArn = this.ref.toString(); | ||
})(cloudformation = exports.cloudformation || (exports.cloudformation = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcGZ1bmN0aW9ucy5nZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzdGVwZnVuY3Rpb25zLmdlbmVyYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIOztBQUV0SCxrR0FBa0c7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wYXJlbnQsIG5hbWUsIHsgdHlwZTogU3RhdGVNYWNoaW5lUmVzb3VyY2UucmVzb3VyY2VUeXBlTmFtZSwgcHJvcGVydGllcyB9KTtcbiAgICAgICAgICAgIGNkay5yZXF1aXJlUHJvcGVydHkocHJvcGVydGllcywgJ2RlZmluaXRpb25TdHJpbmcnLCB0aGlzKTtcbiAgICAgICAgICAgIGNkay5yZXF1aXJlUHJvcGVydHkocHJvcGVydGllcywgJ3JvbGVBcm4nLCB0aGlzKTtcbiAgICAgICAgICAgIHRoaXMuc3RhdGVNYWNoaW5lTmFtZSA9IHRoaXMuZ2V0QXR0KCdOYW1lJykudG9TdHJpbmcoKTtcbiAgICAgICAgICAgIHRoaXMuc3RhdGVNYWNoaW5lQXJuID0gdGhpcy5yZWYudG9TdHJpbmcoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHB1YmxpYyBnZXQgcHJvcGVydHlPdmVycmlkZXMoKTogU3RhdGVNYWNoaW5lUmVzb3VyY2VQcm9wcyB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy51bnR5cGVkUHJvcGVydHlPdmVycmlkZXM7XG4gICAgICAgIH1cbiAgICAgICAgcHJvdGVjdGVkIHJlbmRlclByb3BlcnRpZXMocHJvcGVydGllczogYW55KTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSAge1xuICAgICAgICAgICAgcmV0dXJuIHN0YXRlTWFjaGluZVJlc291cmNlUHJvcHNUb0Nsb3VkRm9ybWF0aW9uKGNkay5yZXNvbHZlKHByb3BlcnRpZXMpKTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ== |
{ | ||
"name": "@aws-cdk/aws-stepfunctions", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "The CDK Construct Library for AWS::StepFunctions", | ||
@@ -55,15 +55,15 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.13.0", | ||
"cdk-build-tools": "^0.13.0", | ||
"cdk-integ-tools": "^0.13.0", | ||
"cfn2ts": "^0.13.0", | ||
"pkglint": "^0.13.0" | ||
"@aws-cdk/assert": "^0.14.0", | ||
"cdk-build-tools": "^0.14.0", | ||
"cdk-integ-tools": "^0.14.0", | ||
"cfn2ts": "^0.14.0", | ||
"pkglint": "^0.14.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-cloudwatch": "^0.13.0", | ||
"@aws-cdk/aws-events": "^0.13.0", | ||
"@aws-cdk/aws-iam": "^0.13.0", | ||
"@aws-cdk/cdk": "^0.13.0" | ||
"@aws-cdk/aws-cloudwatch": "^0.14.0", | ||
"@aws-cdk/aws-events": "^0.14.0", | ||
"@aws-cdk/aws-iam": "^0.14.0", | ||
"@aws-cdk/cdk": "^0.14.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk" | ||
} |
@@ -8,2 +8,4 @@ ## AWS Step Functions Construct Library | ||
### TypeScript example | ||
```ts | ||
@@ -56,2 +58,62 @@ const submitLambda = new lambda.Function(this, 'SubmitLambda', { ... }); | ||
### .NET Example | ||
```csharp | ||
var submitLambda = new Function(this, "SubmitLambda", new FunctionProps | ||
{ | ||
// ... | ||
}); | ||
var getStatusLambda = new Function(this, "CheckLambda", new FunctionProps | ||
{ | ||
// ... | ||
}); | ||
var submitJob = new Task(this, "Submit Job", new TaskProps | ||
{ | ||
Resource = submitLambda, | ||
ResultPath = "$.guid" | ||
}); | ||
var waitX = new Wait(this, "Wait X Seconds", new WaitProps | ||
{ | ||
SecondsPath = "$.wait_time" | ||
}); | ||
var getStatus = new Task(this, "Get Job Status", new TaskProps | ||
{ | ||
Resource = getStatusLambda, | ||
InputPath = "$.guid", | ||
ResultPath = "$.status" | ||
}); | ||
var jobFailed = new Fail(this, "Job Failed", new FailProps | ||
{ | ||
Cause = "AWS Batch Job Failed", | ||
Error = "DescribeJob returned FAILED" | ||
}); | ||
var finalStatus = new Task(this, "Get Final Job Status", new TaskProps | ||
{ | ||
Resource = getStatusLambda, | ||
// Use "guid" field as input, output of the Lambda becomes the | ||
// entire state machine output. | ||
InputPath = "$.guid" | ||
}); | ||
var definition = submitJob | ||
.Next(waitX) | ||
.Next(getStatus) | ||
.Next(new Choice(this, "Job Complete?", new ChoiceProps()) | ||
.When(Amazon.CDK.AWS.StepFunctions.Condition.StringEquals("$.status", "FAILED"), jobFailed) | ||
.When(Amazon.CDK.AWS.StepFunctions.Condition.StringEquals("$.status", "SUCCEEDED"), finalStatus) | ||
.Otherwise(waitX)); | ||
new StateMachine(this, "StateMachine", new StateMachineProps | ||
{ | ||
Definition = definition, | ||
TimeoutSec = 300 | ||
}); | ||
``` | ||
## State Machine | ||
@@ -58,0 +120,0 @@ |
@@ -51,7 +51,7 @@ "use strict"; | ||
}; | ||
test.deepEqual(cdk.resolve(activity.metricRunTime()), Object.assign({}, sharedMetric, { metricName: 'ActivityRunTime', statistic: 'avg' })); | ||
test.deepEqual(cdk.resolve(activity.metricFailed()), Object.assign({}, sharedMetric, { metricName: 'ActivitiesFailed', statistic: 'sum' })); | ||
test.deepEqual(cdk.resolve(activity.metricRunTime()), Object.assign({}, sharedMetric, { metricName: 'ActivityRunTime', statistic: 'Average' })); | ||
test.deepEqual(cdk.resolve(activity.metricFailed()), Object.assign({}, sharedMetric, { metricName: 'ActivitiesFailed', statistic: 'Sum' })); | ||
test.done(); | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5hY3Rpdml0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QuYWN0aXZpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUF1RDtBQUN2RCxvQ0FBcUM7QUFFckMsd0NBQXlDO0FBRXpDLGlCQUFTO0lBQ0wsc0JBQXNCLENBQUMsSUFBVTtRQUM3QixRQUFRO1FBQ1IsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxFQUFFLENBQ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cm46IHsgUmVmOiAnQWN0aXZpdHkwNDY5MEIwQScgfX0sXG4gICAgICAgIH07XG4gICAgICAgIHRlc3QuZGVlcEVxdWFsKGNkay5yZXNvbHZlKGFjdGl2aXR5Lm1ldHJpY1J1blRpbWUoKSksIHtcbiAgICAgICAgICAgIC4uLnNoYXJlZE1ldHJpYyxcbiAgICAgICAgICAgIG1ldHJpY05hbWU6ICdBY3Rpdml0eVJ1blRpbWUnLFxuICAgICAgICAgICAgc3RhdGlzdGljOiAnQXZlcmFnZSdcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGVzdC5kZWVwRXF1YWwoY2RrLnJlc29sdmUoYWN0aXZpdHkubWV0cmljRmFpbGVkKCkpLCB7XG4gICAgICAgICAgICAuLi5zaGFyZWRNZXRyaWMsXG4gICAgICAgICAgICBtZXRyaWNOYW1lOiAnQWN0aXZpdGllc0ZhaWxlZCcsXG4gICAgICAgICAgICBzdGF0aXN0aWM6ICdTdW0nXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRlc3QuZG9uZSgpO1xuICAgIH1cbn07Il19 |
@@ -83,7 +83,7 @@ "use strict"; | ||
}; | ||
test.deepEqual(cdk.resolve(task.metricRunTime()), Object.assign({}, sharedMetric, { metricName: 'FakeResourceRunTime', statistic: 'avg' })); | ||
test.deepEqual(cdk.resolve(task.metricFailed()), Object.assign({}, sharedMetric, { metricName: 'FakeResourcesFailed', statistic: 'sum' })); | ||
test.deepEqual(cdk.resolve(task.metricRunTime()), Object.assign({}, sharedMetric, { metricName: 'FakeResourceRunTime', statistic: 'Average' })); | ||
test.deepEqual(cdk.resolve(task.metricFailed()), Object.assign({}, sharedMetric, { metricName: 'FakeResourcesFailed', statistic: 'Sum' })); | ||
test.done(); | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5zdGF0ZS1tYWNoaW5lLXJlc291cmNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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IsXG4gICAgICAgICAgICAgICAgICAgICAgICBSZXNvdXJjZTogXCJyZXNvdXJjZVwiXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgfVxuICAgICAgICB9KSk7XG5cbiAgICAgICAgdGVzdC5kb25lKCk7XG4gICAgfSxcblxuICAgICdUYXNrcyBoaWRkZW4gaW5zaWRlIGEgUGFyYWxsZWwgc3RhdGUgYXJlIGFsc28gaW5jbHVkZWQnKHRlc3Q6IFRlc3QpIHtcbiAgICAgICAgLy8gR0lWRU5cbiAgICAgICAgY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKCk7XG4gICAgICAgIGNvbnN0IHRhc2sgPSBuZXcgc3RlcGZ1bmN0aW9ucy5UYXNrKHN0YWNrLCAnVGFzaycsIHtcbiAgICAgICAgICAgIHJlc291cmNlOiBuZXcgRmFrZVJlc291cmNlKCksXG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IHBhcmEgPSBuZXcgc3RlcGZ1bmN0aW9ucy5QYXJhbGxlbChzdGFjaywgJ1BhcmEnKTtcbiAgICAgICAgcGFyYS5icmFuY2godGFzayk7XG5cbiAgICAgICAgLy8gV0hFTlxuICAgICAgICBuZXcgc3RlcGZ1bmN0aW9ucy5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTTScsIHtcbiAgICAgICAgICAgIGRlZmluaXRpb246IHBhcmFcbiAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gVEhFTlxuICAgICAgICBleHBlY3Qoc3RhY2spLnRvKGhhdmVSZXNvdXJjZSgnQVdTOjpJQU06OlBvbGljeScsIHtcbiAgICAgICAgICAgIFBvbGljeURvY3VtZW50OiB7XG4gICAgICAgICAgICAgICAgU3RhdGVtZW50OiBbXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIEFjdGlvbjogXCJyZXNvdXJjZTpFdmVyeXRoaW5nXCIsXG4gICAgIC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aWNGYWlsZWQoKSksIHtcbiAgICAgICAgICAgIC4uLnNoYXJlZE1ldHJpYyxcbiAgICAgICAgICAgIG1ldHJpY05hbWU6ICdGYWtlUmVzb3VyY2VzRmFpbGVkJyxcbiAgICAgICAgICAgIHN0YXRpc3RpYzogJ3N1bSdcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGVzdC5kb25lKCk7XG4gICAgfVxufTtcblxuY2xhc3MgRmFrZVJlc291cmNlIGltcGxlbWVudHMgc3RlcGZ1bmN0aW9ucy5JU3RlcEZ1bmN0aW9uc1Rhc2tSZXNvdXJjZSB7XG4gICAgcHVibGljIGFzU3RlcEZ1bmN0aW9uc1Rhc2tSZXNvdXJjZShfY2FsbGluZ1Rhc2s6IHN0ZXBmdW5jdGlvbnMuVGFzayk6IHN0ZXBmdW5jdGlvbnMuU3RlcEZ1bmN0aW9uc1Rhc2tSZXNvdXJjZVByb3BzIHtcbiAgICAgICAgY29uc3QgcmVzb3VyY2VBcm4gPSAncmVzb3VyY2UnO1xuXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICByZXNvdXJjZUFybixcbiAgICAgICAgICAgIHBvbGljeVN0YXRlbWVudHM6IFtuZXcgaWFtLlBvbGljeVN0YXRlbWVudCgpXG4gICAgICAgICAgICAgICAgLmFkZEFjdGlvbigncmVzb3VyY2U6RXZlcnl0aGluZycpXG4gICAgICAgICAgICAgICAgLmFkZFJlc291cmNlKCdyZXNvdXJjZScpXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgbWV0cmljUHJlZml4U2luZ3VsYXI6ICdGYWtlUmVzb3VyY2UnLFxuICAgICAgICAgICAgbWV0cmljUHJlZml4UGx1cmFsOiAnRmFrZVJlc291cmNlcycsXG4gICAgICAgICAgICBtZXRyaWNEaW1lbnNpb25zOiB7IFJlc291cmNlQXJuOiByZXNvdXJjZUFybiB9LFxuICAgICAgICAgfTtcbiAgICB9XG59Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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Y3Rpb246IFwicmVzb3VyY2U6RXZlcnl0aGluZ1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgRWZmZWN0OiBcIkFsbG93XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBSZXNvdXJjZTogXCJyZXNvdXJjZVwiXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgfVxuICAgICAgICB9KSk7XG5cbiAgICAgICAgdGVzdC5kb25lKCk7XG4gICAgfSxcblxuICAgICdUYXNrcyBoaWRkZW4gaW5zaWRlIGEgUGFyYWxsZWwgc3RhdGUgYXJlIGFsc28gaW5jbHVkZWQnKHRlc3Q6IFRlc3QpIHtcbiAgICAgICAgLy8gR0lWRU5cbiAgICAgICAgY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKCk7XG4gICAgICAgIGNvbnN0IHRhc2sgPSBuZXcgc3RlcGZ1bmN0aW9ucy5UYXNrKHN0YWNrLCAnVGFzaycsIHtcbiAgICAgICAgICAgIHJlc291cmNlOiBuZXcgRmFrZVJlc291cmNlKCksXG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IHBhcmEgPSBuZXcgc3RlcGZ1bmN0aW9ucy5QYXJhbGxlbChzdGFjaywgJ1BhcmEnKTtcbiAgICAgICAgcGFyYS5icmFuY2godGFzayk7XG5cbiAgICAgICAgLy8gV0hFTlxuICAgICAgICBuZXcgc3RlcGZ1bmN0aW9ucy5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTTScsIHtcbiAgICAgICAgICAgIGRlZmluaXRpb246IHBhcmFcbiAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gVEhFTlxuICAgICAgICBleHBlY3Qoc3RhY2spLnRvKGhhdmVSZXNvdXJjZSgnQVdTOjpJQU06OlBvbGljeScsIHtcbiAgICAgICAgICAgIFBvbGljeURvY3VtZW50OiB7XG4gICAgICAgICAgICAgICAgU3RhdGVtZW50OiBbXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIEFjdGlvbjogXCJyZXNvdXJjZTpFdmVyeXRoaW5nXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBFZmZlY3Q6IFwiQWxsb3dcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIFJlc291cmNlOiBcInJlc291cmNlXCJcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pKTtcblxuICAgICAgICB0ZXN0LmRvbmUoKTtcbiAgICB9LFxuXG4gICAgJ1Rhc2sgbWV0cmljcyB1c2UgdmFsdWVzIHJldHVybmVkIGZyb20gcmVzb3VyY2UnKHRlc3Q6IFRlc3QpIHtcbiAgICAgICAgLy8gR0lWRU5cbiAgICAgICAgY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKCk7XG5cbiAgICAgICAgLy8gV0hFTlxuICAgICAgICBjb25zdCB0YXNrID0gbmV3IHN0ZXBmdW5jdGlvbnMuVGFzayhzdGFjaywgJ1Rhc2snLCB7IHJlc291cmNlOiBuZXcgRmFrZVJlc291cmNlKCkgfSk7XG5cbiAgICAgICAgLy8gVEhFTlxuICAgICAgICBjb25zdCBzaGFyZWRNZXRyaWMgPSB7XG4gICAgICAgICAgICBwZXJpb2RTZWM6IDMwMCxcbiAgICAgICAgICAgIG5hbWVzcGFjZTogJ0FXUy9TdGF0ZXMnLFxuICAgICAgICAgICAgZGltZW5zaW9uczogeyBSZXNvdXJjZUFybjogJ3Jlc291cmNlJyB9LFxuICAgICAgICB9O1xuICAgICAgICB0ZXN0LmRlZXBFcXVhbChjZGsucmVzb2x2ZSh0YXNrLm1ldHJpY1J1blRpbWUoKSksIHtcbiAgICAgICAgICAgIC4uLnNoYXJlZE1ldHJpYyxcbiAgICAgICAgICAgIG1ldHJpY05hbWU6ICdGYWtlUmVzb3VyY2VSdW5UaW1lJyxcbiAgICAgICAgICAgIHN0YXRpc3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RGltZW5zaW9uczogeyBSZXNvdXJjZUFybjogcmVzb3VyY2VBcm4gfSxcbiAgICAgICAgIH07XG4gICAgfVxufSJdfQ== |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
569866
437
0
+ Added@aws-cdk/aws-cloudwatch@0.14.1(transitive)
+ Added@aws-cdk/aws-events@0.14.1(transitive)
+ Added@aws-cdk/aws-iam@0.14.1(transitive)
+ Added@aws-cdk/cdk@0.14.1(transitive)
+ Added@aws-cdk/cx-api@0.14.1(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.13.0(transitive)
- Removed@aws-cdk/aws-events@0.13.0(transitive)
- Removed@aws-cdk/aws-iam@0.13.0(transitive)
- Removed@aws-cdk/cdk@0.13.0(transitive)
- Removed@aws-cdk/cx-api@0.13.0(transitive)
Updated@aws-cdk/aws-events@^0.14.0
Updated@aws-cdk/aws-iam@^0.14.0
Updated@aws-cdk/cdk@^0.14.0