# S3StorageConfigProperty

The Amazon Simple Storage (Amazon S3) location and security configuration for `OfflineStore` .

- 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const s3StorageConfigProperty: sagemaker.CfnFeatureGroup.S3StorageConfigProperty = {
  s3Uri: 's3Uri',

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

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_sagemaker as sagemaker

s3_storage_config_property = sagemaker.CfnFeatureGroup.S3StorageConfigProperty(
    s3_uri="s3Uri",

    # the properties below are optional
    kms_key_id="kmsKeyId"
)
```

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

S3StorageConfigProperty s3StorageConfigProperty = S3StorageConfigProperty.builder()
        .s3Uri("s3Uri")

        // the properties below are optional
        .kmsKeyId("kmsKeyId")
        .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.Sagemaker;

var s3StorageConfigProperty = new S3StorageConfigProperty {
    S3Uri = "s3Uri",

    // the properties below are optional
    KmsKeyId = "kmsKeyId"
};
```

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"

s3StorageConfigProperty := &S3StorageConfigProperty{
	S3Uri: jsii.String("s3Uri"),

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

## Properties

- `kmsKeyId`: string — The AWS Key Management Service (KMS) key ARN of the key used to encrypt any objects written into the `OfflineStore` S3 location.

  The IAM `roleARN` that is passed as a parameter to `CreateFeatureGroup` must have below permissions to the `KmsKeyId` :

  - `"kms:GenerateDataKey"`

- `s3Uri`: string (required) — The S3 URI, or location in Amazon S3, of `OfflineStore` .

  S3 URIs have a format similar to the following: `s3://example-bucket/prefix/` .
