class S3Code
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Synthetics.S3Code |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#S3Code |
Java | software.amazon.awscdk.services.synthetics.S3Code |
Python | aws_cdk.aws_synthetics.S3Code |
TypeScript (source) | aws-cdk-lib » aws_synthetics » S3Code |
Extends
Code
S3 bucket path to the code zip file.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
import { aws_synthetics as synthetics } from 'aws-cdk-lib';
declare const bucket: s3.Bucket;
const s3Code = new synthetics.S3Code(bucket, 'key', /* all optional props */ 'objectVersion');
Initializer
new S3Code(bucket: IBucket, key: string, objectVersion?: string)
Parameters
- bucket
IBucket
- key
string
- objectVersion
string
Methods
Name | Description |
---|---|
bind(_scope, _handler, _family) | Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun. |
bind(_scope, _handler, _family)
public bind(_scope: Construct, _handler: string, _family: RuntimeFamily): CodeConfig
Parameters
- _scope
Construct
- _handler
string
- _family
Runtime
Family
Returns
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.