# S3ConfigProperty

Information about the Amazon Simple Storage Service (Amazon S3) storage type.

- 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_connect as connect } from 'aws-cdk-lib';
const s3ConfigProperty: connect.CfnInstanceStorageConfig.S3ConfigProperty = {
  bucketName: 'bucketName',
  bucketPrefix: 'bucketPrefix',

  // the properties below are optional
  encryptionConfig: {
    encryptionType: 'encryptionType',
    keyId: 'keyId',
  },
};
```

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_connect as connect

s3_config_property = connect.CfnInstanceStorageConfig.S3ConfigProperty(
    bucket_name="bucketName",
    bucket_prefix="bucketPrefix",

    # the properties below are optional
    encryption_config=connect.CfnInstanceStorageConfig.EncryptionConfigProperty(
        encryption_type="encryptionType",
        key_id="keyId"
    )
)
```

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

S3ConfigProperty s3ConfigProperty = S3ConfigProperty.builder()
        .bucketName("bucketName")
        .bucketPrefix("bucketPrefix")

        // the properties below are optional
        .encryptionConfig(EncryptionConfigProperty.builder()
                .encryptionType("encryptionType")
                .keyId("keyId")
                .build())
        .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.Connect;

var s3ConfigProperty = new S3ConfigProperty {
    BucketName = "bucketName",
    BucketPrefix = "bucketPrefix",

    // the properties below are optional
    EncryptionConfig = new EncryptionConfigProperty {
        EncryptionType = "encryptionType",
        KeyId = "keyId"
    }
};
```

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"

s3ConfigProperty := &S3ConfigProperty{
	BucketName: jsii.String("bucketName"),
	BucketPrefix: jsii.String("bucketPrefix"),

	// the properties below are optional
	EncryptionConfig: &EncryptionConfigProperty{
		EncryptionType: jsii.String("encryptionType"),
		KeyId: jsii.String("keyId"),
	},
}
```

## Properties

- `bucketName`: string (required) — The S3 bucket name.

- `bucketPrefix`: string (required) — The S3 bucket prefix.

- `encryptionConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInstanceStorageConfig.EncryptionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnInstanceStorageConfig.EncryptionConfigProperty.html) — The Amazon S3 encryption configuration.
