DataExportProperty Struct
This resource contains the details of the Amazon S3 Storage Lens metrics export.
| 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_s3 as s3 } from 'aws-cdk-lib';
declare const sses3: any;
const dataExportProperty: s3.CfnStorageLens.DataExportProperty = {
cloudWatchMetrics: {
isEnabled: false,
},
s3BucketDestination: {
accountId: 'accountId',
arn: 'arn',
format: 'format',
outputSchemaVersion: 'outputSchemaVersion',
// the properties below are optional
encryption: {
ssekms: {
keyId: 'keyId',
},
sses3: sses3,
},
prefix: 'prefix',
},
storageLensTableDestination: {
isEnabled: false,
// the properties below are optional
encryption: {
ssekms: {
keyId: 'keyId',
},
sses3: sses3,
},
},
};
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_s3 as s3
# sses3: Any
data_export_property = s3.CfnStorageLens.DataExportProperty(
cloud_watch_metrics=s3.CfnStorageLens.CloudWatchMetricsProperty(
is_enabled=False
),
s3_bucket_destination=s3.CfnStorageLens.S3BucketDestinationProperty(
account_id="accountId",
arn="arn",
format="format",
output_schema_version="outputSchemaVersion",
# the properties below are optional
encryption=s3.CfnStorageLens.EncryptionProperty(
ssekms=s3.CfnStorageLens.SSEKMSProperty(
key_id="keyId"
),
sses3=sses3
),
prefix="prefix"
),
storage_lens_table_destination=s3.CfnStorageLens.StorageLensTableDestinationProperty(
is_enabled=False,
# the properties below are optional
encryption=s3.CfnStorageLens.EncryptionProperty(
ssekms=s3.CfnStorageLens.SSEKMSProperty(
key_id="keyId"
),
sses3=sses3
)
)
)
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.s3.*;
Object sses3;
DataExportProperty dataExportProperty = DataExportProperty.builder()
.cloudWatchMetrics(CloudWatchMetricsProperty.builder()
.isEnabled(false)
.build())
.s3BucketDestination(S3BucketDestinationProperty.builder()
.accountId("accountId")
.arn("arn")
.format("format")
.outputSchemaVersion("outputSchemaVersion")
// the properties below are optional
.encryption(EncryptionProperty.builder()
.ssekms(SSEKMSProperty.builder()
.keyId("keyId")
.build())
.sses3(sses3)
.build())
.prefix("prefix")
.build())
.storageLensTableDestination(StorageLensTableDestinationProperty.builder()
.isEnabled(false)
// the properties below are optional
.encryption(EncryptionProperty.builder()
.ssekms(SSEKMSProperty.builder()
.keyId("keyId")
.build())
.sses3(sses3)
.build())
.build())
.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.S3;
var sses3;
var dataExportProperty = new DataExportProperty {
CloudWatchMetrics = new CloudWatchMetricsProperty {
IsEnabled = false
},
S3BucketDestination = new S3BucketDestinationProperty {
AccountId = "accountId",
Arn = "arn",
Format = "format",
OutputSchemaVersion = "outputSchemaVersion",
// the properties below are optional
Encryption = new EncryptionProperty {
Ssekms = new SSEKMSProperty {
KeyId = "keyId"
},
Sses3 = sses3
},
Prefix = "prefix"
},
StorageLensTableDestination = new StorageLensTableDestinationProperty {
IsEnabled = false,
// the properties below are optional
Encryption = new EncryptionProperty {
Ssekms = new SSEKMSProperty {
KeyId = "keyId"
},
Sses3 = sses3
}
}
};
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"
var sses3 interface{}
dataExportProperty := &DataExportProperty{
CloudWatchMetrics: &CloudWatchMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
S3BucketDestination: &S3BucketDestinationProperty{
AccountId: jsii.String("accountId"),
Arn: jsii.String("arn"),
Format: jsii.String("format"),
OutputSchemaVersion: jsii.String("outputSchemaVersion"),
// the properties below are optional
Encryption: &EncryptionProperty{
Ssekms: &SSEKMSProperty{
KeyId: jsii.String("keyId"),
},
Sses3: sses3,
},
Prefix: jsii.String("prefix"),
},
StorageLensTableDestination: &StorageLensTableDestinationProperty{
IsEnabled: jsii.Boolean(false),
// the properties below are optional
Encryption: &EncryptionProperty{
Ssekms: &SSEKMSProperty{
KeyId: jsii.String("keyId"),
},
Sses3: sses3,
},
},
}
Properties
cloudWatchMetricsoptionalIResolvable | CfnStorageLens.cloud_watch_metricsoptionaltyping.Union[IResolvable, CloudWatchMetricsProperty]cloudWatchMetricsoptionalIResolvableCloudWatchMetricsoptionalIResolvableCloudWatchMetricsoptionalinterface{} #This property enables the Amazon CloudWatch publishing option for S3 Storage Lens metrics.
s3BucketDestinationoptionalIResolvable | CfnStorageLens.s3_bucket_destinationoptionaltyping.Union[IResolvable, S3BucketDestinationProperty]s3BucketDestinationoptionalIResolvableS3BucketDestinationoptionalIResolvableS3BucketDestinationoptionalinterface{} #This property contains the details of the bucket where the S3 Storage Lens metrics export will be placed.
storageLensTableDestinationoptionalIResolvable | CfnStorageLens.storage_lens_table_destinationoptionaltyping.Union[IResolvable, StorageLensTableDestinationProperty]storageLensTableDestinationoptionalIResolvableStorageLensTableDestinationoptionalIResolvableStorageLensTableDestinationoptionalinterface{} #This property contains the details of the S3 table bucket where the S3 Storage Lens default metrics report will be placed.
This property enables you to store your Storage Lens metrics in read-only S3 Tables.