EncryptionProperty Struct
This resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.
For valid values, see the StorageLensDataExportEncryption in the Amazon S3 API Reference .
| 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 encryptionProperty: s3.CfnStorageLens.EncryptionProperty = {
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
encryption_property = 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;
EncryptionProperty encryptionProperty = EncryptionProperty.builder()
.ssekms(SSEKMSProperty.builder()
.keyId("keyId")
.build())
.sses3(sses3)
.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 encryptionProperty = 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{}
encryptionProperty := &EncryptionProperty{
Ssekms: &SSEKMSProperty{
KeyId: jsii.String("keyId"),
},
Sses3: sses3,
}
Properties
ssekmsoptionalIResolvable | CfnStorageLens.SSEKMSPropertyssekmsoptionaltyping.Union[IResolvable, SSEKMSProperty]ssekmsoptionalIResolvableSsekmsoptionalIResolvableSsekmsoptionalinterface{} #Specifies the use of AWS Key Management Service keys (SSE-KMS) to encrypt the S3 Storage Lens metrics export file.
Specifies the use of an Amazon S3-managed key (SSE-S3) to encrypt the S3 Storage Lens metrics export file.