@aws-cdk_aws-synthetics-alpha.S3Code

class S3Code 🔹

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.Alpha.S3Code
Gogithub.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#S3Code
Javasoftware.amazon.awscdk.services.synthetics.alpha.S3Code
Pythonaws_cdk.aws_synthetics_alpha.S3Code
TypeScript (source)@aws-cdk/aws-synthetics-alpha » 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 synthetics_alpha from '@aws-cdk/aws-synthetics-alpha';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const s3Code = new synthetics_alpha.S3Code(bucket, 'key', /* all optional props */ 'objectVersion');

Initializer

new S3Code(bucket: IBucket, key: string, objectVersion?: string)

Parameters

  • bucket IBucket
  • key string
  • objectVersion string

Methods

NameDescription
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

  • CodeConfig

Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.