Class ManagedStorageConfiguration
Kms Keys for encryption ECS managed storage.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ManagedStorageConfiguration : Object, IManagedStorageConfiguration
Syntax (vb)
Public Class ManagedStorageConfiguration
Inherits Object
Implements IManagedStorageConfiguration
Remarks
ExampleMetadata: infused
Examples
Key key;
var cluster = new Cluster(this, "Cluster", new ClusterProps {
ManagedStorageConfiguration = new ManagedStorageConfiguration {
FargateEphemeralStorageKmsKey = key,
KmsKey = key
}
});
Synopsis
Constructors
Managed |
Properties
Fargate |
Customer KMS Key used to encrypt ECS Fargate ephemeral Storage. |
Kms |
Customer KMS Key used to encrypt ECS managed Storage. |
Constructors
ManagedStorageConfiguration()
public ManagedStorageConfiguration()
Properties
FargateEphemeralStorageKmsKey
Customer KMS Key used to encrypt ECS Fargate ephemeral Storage.
public IKey FargateEphemeralStorageKmsKey { get; set; }
Property Value
Remarks
The configured KMS Key's policy will be modified to allow ECS to use the Key to encrypt the ephemeral Storage for this cluster.
Default: - Encrypted using AWS-managed key
See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-storage-encryption.html
KmsKey
Customer KMS Key used to encrypt ECS managed Storage.
public IKey KmsKey { get; set; }
Property Value
Remarks
Default: - Encrypted using AWS-managed key