aws-cdk-lib.aws_s3.BucketNotificationDestinationConfig

interface BucketNotificationDestinationConfig

LanguageType name
.NETAmazon.CDK.AWS.S3.BucketNotificationDestinationConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#BucketNotificationDestinationConfig
Javasoftware.amazon.awscdk.services.s3.BucketNotificationDestinationConfig
Pythonaws_cdk.aws_s3.BucketNotificationDestinationConfig
TypeScript (source)aws-cdk-lib » aws_s3 » BucketNotificationDestinationConfig

Obtainable from LambdaDestination.bind(), SnsDestination.bind(), SqsDestination.bind()

Represents the properties of a notification destination.

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 * as constructs from 'constructs';

declare const dependable: constructs.IDependable;
const bucketNotificationDestinationConfig: s3.BucketNotificationDestinationConfig = {
  arn: 'arn',
  type: s3.BucketNotificationDestinationType.LAMBDA,

  // the properties below are optional
  dependencies: [dependable],
};

Properties

NameTypeDescription
arnstringThe ARN of the destination (i.e. Lambda, SNS, SQS).
typeBucketNotificationDestinationTypeThe notification type.
dependencies?IDependable[]Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).

arn

Type: string

The ARN of the destination (i.e. Lambda, SNS, SQS).


type

Type: BucketNotificationDestinationType

The notification type.


dependencies?

Type: IDependable[] (optional)

Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).