# S3Property

The details of the Amazon S3 destination for broker logs.

- 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_msk as msk } from 'aws-cdk-lib';
const s3Property: msk.CfnCluster.S3Property = {
  enabled: false,

  // the properties below are optional
  bucket: 'bucket',
  prefix: 'prefix',
};
```

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_msk as msk

s3_property = msk.CfnCluster.S3Property(
    enabled=False,

    # the properties below are optional
    bucket="bucket",
    prefix="prefix"
)
```

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

S3Property s3Property = S3Property.builder()
        .enabled(false)

        // the properties below are optional
        .bucket("bucket")
        .prefix("prefix")
        .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.MSK;

var s3Property = new S3Property {
    Enabled = false,

    // the properties below are optional
    Bucket = "bucket",
    Prefix = "prefix"
};
```

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"

s3Property := &S3Property{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	Bucket: jsii.String("bucket"),
	Prefix: jsii.String("prefix"),
}
```

## Properties

- `bucket`: string — The name of the S3 bucket that is the destination for broker logs.

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether broker logs get sent to the specified Amazon S3 destination.

- `prefix`: string — The S3 prefix that is the destination for broker logs.
