BucketNotificationDestinationConfig Struct
Represents the properties of a notification destination.
| Source | aws-s3/lib/destination.ts |
|---|
Example
ts
// 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],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3
import constructs as constructs
# dependable: constructs.IDependable
bucket_notification_destination_config = s3.BucketNotificationDestinationConfig(
arn="arn",
type=s3.BucketNotificationDestinationType.LAMBDA,
# the properties below are optional
dependencies=[dependable]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
import software.constructs.*;
IDependable dependable;
BucketNotificationDestinationConfig bucketNotificationDestinationConfig = BucketNotificationDestinationConfig.builder()
.arn("arn")
.type(BucketNotificationDestinationType.LAMBDA)
// the properties below are optional
.dependencies(List.of(dependable))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
using Constructs;
IDependable dependable;
var bucketNotificationDestinationConfig = new BucketNotificationDestinationConfig {
Arn = "arn",
Type = BucketNotificationDestinationType.LAMBDA,
// the properties below are optional
Dependencies = new [] { dependable }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import constructs "github.com/aws/constructs-go/constructs"
var dependable IDependable
bucketNotificationDestinationConfig := &BucketNotificationDestinationConfig{
Arn: jsii.String("arn"),
Type: awscdk.Aws_s3.BucketNotificationDestinationType_LAMBDA,
// the properties below are optional
Dependencies: []IDependable{
dependable,
},
}
Properties
The ARN of the destination (i.e. Lambda, SNS, SQS).
dependenciesoptionalIDependable[]dependenciesoptionaltyping.List[IDependable]dependenciesoptionalList<IDependable>DependenciesoptionalIDependable[]Dependenciesoptional*[]IDependable #Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).
typeBucketNotificationDestinationTypetypeBucketNotificationDestinationTypetypeBucketNotificationDestinationTypeTypeBucketNotificationDestinationTypeTypeBucketNotificationDestinationType required #The notification type.