class S3Code
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Synthetics.S3Code |
Java | software.amazon.awscdk.services.synthetics.S3Code |
Python | aws_cdk.aws_synthetics.S3Code |
TypeScript (source) | @aws-cdk/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 * as s3 from '@aws-cdk/aws-s3';
import * as synthetics from '@aws-cdk/aws-synthetics';
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
RuntimeFamily
Returns
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.

.NET
Java
Python
TypeScript (