CustomerManagedS3Property Struct
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 customerManagedS3Property: iotanalytics.CfnDatastore.CustomerManagedS3Property = {
bucket: 'bucket',
roleArn: 'roleArn',
// 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_property = iotanalytics.CfnDatastore.CustomerManagedS3Property(
bucket="bucket",
role_arn="roleArn",
# 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.*;
CustomerManagedS3Property customerManagedS3Property = CustomerManagedS3Property.builder()
.bucket("bucket")
.roleArn("roleArn")
// 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 customerManagedS3Property = new CustomerManagedS3Property {
Bucket = "bucket",
RoleArn = "roleArn",
// 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"
customerManagedS3Property := &CustomerManagedS3Property{
Bucket: jsii.String("bucket"),
RoleArn: jsii.String("roleArn"),
// 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 (/).
The ARN of the role that grants ITA permission to interact with your Amazon S3 resources.