Skip to content
v2.278.0

StorageLensTableDestinationProperty Struct ​

This resource configures your S3 Storage Lens reports to export to read-only S3 table buckets.

With this resource, you can store your Storage Lens metrics in S3 Tables that are created in a read-only S3 table bucket called aws-s3.

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 storageLensTableDestinationProperty: s3.CfnStorageLens.StorageLensTableDestinationProperty = {
  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

storage_lens_table_destination_property = 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;

StorageLensTableDestinationProperty storageLensTableDestinationProperty = StorageLensTableDestinationProperty.builder()
        .isEnabled(false)

        // the properties below are optional
        .encryption(EncryptionProperty.builder()
                .ssekms(SSEKMSProperty.builder()
                        .keyId("keyId")
                        .build())
                .sses3(sses3)
                .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 storageLensTableDestinationProperty = 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{}

storageLensTableDestinationProperty := &StorageLensTableDestinationProperty{
	IsEnabled: jsii.Boolean(false),

	// the properties below are optional
	Encryption: &EncryptionProperty{
		Ssekms: &SSEKMSProperty{
			KeyId: jsii.String("keyId"),
		},
		Sses3: sses3,
	},
}

Properties ​

encryptionoptionalIResolvable | CfnStorageLens.EncryptionPropertyencryptionoptionaltyping.Union[IResolvable, EncryptionProperty]encryptionoptionalIResolvableEncryptionoptionalIResolvableEncryptionoptionalinterface{} #
This resource configures your data encryption settings for Storage Lens metrics in read-only S3 table buckets.
isEnabledboolean | IResolvableis_enabledtyping.Union[bool, IResolvable]isEnabledBooleanIsEnabledboolIsEnabledinterface{} required #
This property indicates whether the export to read-only S3 table buckets is enabled for your S3 Storage Lens configuration.

When set to true, Storage Lens reports are automatically exported to tables in addition to other configured destinations.