Skip to content

Commit

Permalink
Fixing up the codebuild issue related to jsii-rosetta
Browse files Browse the repository at this point in the history
  • Loading branch information
SankyRed committed Jan 25, 2023
1 parent 24f070f commit 1759976
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/@aws-cdk/aws-synthetics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ You can specify whether the AWS CloudFormation is to also delete the Lambda func
This can be provisioned by setting the `DeleteLambdaResourcesOnCanaryDeletion` property to `true` when we define the canary.

```ts
const stack = new Stack();

const canary = new synthetics.Canary(stack, 'Canary', {
test: synthetics.Test.custom({
handler: 'index.handler',
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-synthetics/lib/canary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export interface CanaryProps {
*
* @default false
*/
readonly deleteLambdaResourcesOnCanaryDeletion?: boolean;
readonly enableAutoDeleteLambdas?: boolean;
}

/**
Expand Down Expand Up @@ -290,7 +290,7 @@ export class Canary extends cdk.Resource implements ec2.IConnectable {
code: this.createCode(props),
runConfig: this.createRunConfig(props),
vpcConfig: this.createVpcConfig(props),
deleteLambdaResourcesOnCanaryDeletion: props.deleteLambdaResourcesOnCanaryDeletion,
deleteLambdaResourcesOnCanaryDeletion: props.enableAutoDeleteLambdas,
});

this.canaryId = resource.attrId;
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-synthetics/test/canary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('Can set `DeleteLambdaResourceOnCanaryDeletion`', () => {
handler: 'index.handler',
code: synthetics.Code.fromInline('/* Synthetics handler code'),
}),
deleteLambdaResourcesOnCanaryDeletion: true,
enableAutoDeleteLambdas: true,
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_8,
});

Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-synthetics/test/integ.canary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ new synthetics.Canary(stack, 'MyCanaryOne', {
code: synthetics.Code.fromAsset(path.join(__dirname, 'canaries')),
}),
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_8,
deleteLambdaResourcesOnCanaryDeletion: true,
enableAutoDeleteLambdas: true,
});

new synthetics.Canary(stack, 'MyCanaryTwo', {
Expand Down

0 comments on commit 1759976

Please sign in to comment.