# S3DestinationProperty

Information about the target S3 bucket for the resource data sync.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const s3DestinationProperty: ssm.CfnResourceDataSync.S3DestinationProperty = {
  bucketName: 'bucketName',
  bucketRegion: 'bucketRegion',
  syncFormat: 'syncFormat',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  kmsKeyArn: 'kmsKeyArn',
};
```

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_ssm as ssm

s3_destination_property = ssm.CfnResourceDataSync.S3DestinationProperty(
    bucket_name="bucketName",
    bucket_region="bucketRegion",
    sync_format="syncFormat",

    # the properties below are optional
    bucket_prefix="bucketPrefix",
    kms_key_arn="kmsKeyArn"
)
```

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.ssm.*;

S3DestinationProperty s3DestinationProperty = S3DestinationProperty.builder()
        .bucketName("bucketName")
        .bucketRegion("bucketRegion")
        .syncFormat("syncFormat")

        // the properties below are optional
        .bucketPrefix("bucketPrefix")
        .kmsKeyArn("kmsKeyArn")
        .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.SSM;

var s3DestinationProperty = new S3DestinationProperty {
    BucketName = "bucketName",
    BucketRegion = "bucketRegion",
    SyncFormat = "syncFormat",

    // the properties below are optional
    BucketPrefix = "bucketPrefix",
    KmsKeyArn = "kmsKeyArn"
};
```

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"

s3DestinationProperty := &S3DestinationProperty{
	BucketName: jsii.String("bucketName"),
	BucketRegion: jsii.String("bucketRegion"),
	SyncFormat: jsii.String("syncFormat"),

	// the properties below are optional
	BucketPrefix: jsii.String("bucketPrefix"),
	KmsKeyArn: jsii.String("kmsKeyArn"),
}
```

## Properties

- `bucketName`: string (required) — The name of the S3 bucket where the aggregated data is stored.

- `bucketPrefix`: string — An Amazon S3 prefix for the bucket.

- `bucketRegion`: string (required) — The AWS Region with the S3 bucket targeted by the resource data sync.

- `kmsKeyArn`: string — The ARN of an encryption key for a destination in Amazon S3.

  Must belong to the same Region as the destination S3 bucket.

- `syncFormat`: string (required) — A supported sync format.

  The following format is currently supported: JsonSerDe
