# DataBucketConfiguration

S3 bucket configuration for data storage destination.

- Source: [`aws-stepfunctions-tasks/lib/bedrock/create-model-customization-job.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/bedrock/create-model-customization-job.ts#L59)
- Type last changed: v2.199.0 · 27 May 2025

## 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 { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const dataBucketConfiguration: stepfunctions_tasks.DataBucketConfiguration = {
  bucket: bucket,

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

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
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks

# bucket: s3.Bucket

data_bucket_configuration = stepfunctions_tasks.DataBucketConfiguration(
    bucket=bucket,

    # the properties below are optional
    path="path"
)
```

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.amazon.awscdk.services.stepfunctions.tasks.*;

Bucket bucket;

DataBucketConfiguration dataBucketConfiguration = DataBucketConfiguration.builder()
        .bucket(bucket)

        // the properties below are optional
        .path("path")
        .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 Amazon.CDK.AWS.StepFunctions.Tasks;

Bucket bucket;

var dataBucketConfiguration = new DataBucketConfiguration {
    Bucket = bucket,

    // the properties below are optional
    Path = "path"
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket

dataBucketConfiguration := &DataBucketConfiguration{
	Bucket: bucket,

	// the properties below are optional
	Path: jsii.String("path"),
}
```

## Properties

- `bucket`: [IBucket](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) (required) — The S3 bucket.

- `path`: string — Path to file or directory within the bucket.

  **Default:** root of the bucket
