# S3BucketSourceProperty

The S3 bucket that is being imported from.

- 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_dynamodb as dynamodb } from 'aws-cdk-lib';
const s3BucketSourceProperty: dynamodb.CfnTable.S3BucketSourceProperty = {
  s3Bucket: 's3Bucket',

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

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_dynamodb as dynamodb

s3_bucket_source_property = dynamodb.CfnTable.S3BucketSourceProperty(
    s3_bucket="s3Bucket",

    # the properties below are optional
    s3_bucket_owner="s3BucketOwner",
    s3_key_prefix="s3KeyPrefix"
)
```

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

S3BucketSourceProperty s3BucketSourceProperty = S3BucketSourceProperty.builder()
        .s3Bucket("s3Bucket")

        // the properties below are optional
        .s3BucketOwner("s3BucketOwner")
        .s3KeyPrefix("s3KeyPrefix")
        .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.DynamoDB;

var s3BucketSourceProperty = new S3BucketSourceProperty {
    S3Bucket = "s3Bucket",

    // the properties below are optional
    S3BucketOwner = "s3BucketOwner",
    S3KeyPrefix = "s3KeyPrefix"
};
```

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"

s3BucketSourceProperty := &S3BucketSourceProperty{
	S3Bucket: jsii.String("s3Bucket"),

	// the properties below are optional
	S3BucketOwner: jsii.String("s3BucketOwner"),
	S3KeyPrefix: jsii.String("s3KeyPrefix"),
}
```

## Properties

- `s3Bucket`: string (required) — The S3 bucket that is being imported from.

- `s3BucketOwner`: string — The account number of the S3 bucket that is being imported from.

  If the bucket is owned by the requester this is optional.

- `s3KeyPrefix`: string — The key prefix shared by all S3 Objects that are being imported.
