# BucketNotificationDestinationConfig

Represents the properties of a notification destination.

Returned by: [IBucketNotificationDestination.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucketNotificationDestination.html#bind)

- Source: [`aws-s3/lib/destination.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-s3/lib/destination.ts#L21)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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 }
};
```

Golang:

```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

- `arn`: string (required) — The ARN of the destination (i.e. Lambda, SNS, SQS).

- `dependencies`: [IDependable](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IDependable.html)[] — Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).

- `type`: [BucketNotificationDestinationType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.BucketNotificationDestinationType.html) (required) — The notification type.
