Class ArtifactsEncryptionMode
Encryption mode for canary artifacts.
Inheritance
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ArtifactsEncryptionMode : Enum
Syntax (vb)
Public NotInheritable Class ArtifactsEncryptionMode
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.KMS;
var key = new Key(this, "myKey");
var canary = new Canary(this, "MyCanary", new CanaryProps {
Schedule = Schedule.Rate(Duration.Minutes(5)),
Test = Test.Custom(new CustomTestOptions {
Code = Code.FromAsset(Join(__dirname, "canary")),
Handler = "index.handler"
}),
Runtime = Runtime.SYNTHETICS_NODEJS_PUPPETEER_7_0,
ArtifactsBucketLifecycleRules = new [] { new LifecycleRule {
Expiration = Duration.Days(30)
} },
ArtifactS3EncryptionMode = ArtifactsEncryptionMode.KMS,
ArtifactS3KmsKey = key
});
Synopsis
Fields
KMS | Server-side encryption (SSE) with an AWS KMS customer managed key. |
S3_MANAGED | Server-side encryption (SSE) with an Amazon S3-managed key. |
value__ |
Fields
KMS
Server-side encryption (SSE) with an AWS KMS customer managed key.
public const ArtifactsEncryptionMode KMS
Field Value
Type | Description |
---|---|
Artifacts |
S3_MANAGED
Server-side encryption (SSE) with an Amazon S3-managed key.
public const ArtifactsEncryptionMode S3_MANAGED
Field Value
Type | Description |
---|---|
Artifacts |
value__
public int value__
Field Value
Type | Description |
---|---|
System. |