CustomerManagedS3StorageProperty Struct
Amazon S3 -customer-managed;
When you choose customer-managed storage, the retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const customerManagedS3StorageProperty: iotanalytics.CfnDatastore.CustomerManagedS3StorageProperty = {
bucket: 'bucket',
// the properties below are optional
keyPrefix: 'keyPrefix',
};
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_iotanalytics as iotanalytics
customer_managed_s3_storage_property = iotanalytics.CfnDatastore.CustomerManagedS3StorageProperty(
bucket="bucket",
# the properties below are optional
key_prefix="keyPrefix"
)
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.iotanalytics.*;
CustomerManagedS3StorageProperty customerManagedS3StorageProperty = CustomerManagedS3StorageProperty.builder()
.bucket("bucket")
// the properties below are optional
.keyPrefix("keyPrefix")
.build();
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.IoTAnalytics;
var customerManagedS3StorageProperty = new CustomerManagedS3StorageProperty {
Bucket = "bucket",
// the properties below are optional
KeyPrefix = "keyPrefix"
};
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"
customerManagedS3StorageProperty := &CustomerManagedS3StorageProperty{
Bucket: jsii.String("bucket"),
// the properties below are optional
KeyPrefix: jsii.String("keyPrefix"),
}
Properties
The name of the Amazon S3 bucket where your data is stored.
keyPrefixoptionalstringkey_prefixoptionalstrkeyPrefixoptionalStringKeyPrefixoptionalstringKeyPrefixoptional*string #(Optional) The prefix used to create the keys of the data store data objects.
Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).