Class EncryptionConfiguration
Encryption Configuration of the S3 bucket.
Inheritance
System.Object
EncryptionConfiguration
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class EncryptionConfiguration : Object, IEncryptionConfiguration
Syntax (vb)
Public Class EncryptionConfiguration
Inherits Object
Implements IEncryptionConfiguration
Remarks
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_EncryptionConfiguration.html
ExampleMetadata: infused
Examples
var startQueryExecutionJob = new AthenaStartQueryExecution(this, "Athena Start Query", new AthenaStartQueryExecutionProps {
QueryString = JsonPath.Format("select contacts where year={};", JsonPath.StringAt("$.year")),
QueryExecutionContext = new QueryExecutionContext {
DatabaseName = "interactions"
},
ResultConfiguration = new ResultConfiguration {
EncryptionConfiguration = new EncryptionConfiguration {
EncryptionOption = EncryptionOption.S3_MANAGED
},
OutputLocation = new Location {
BucketName = "mybucket",
ObjectKey = "myprefix"
}
},
IntegrationPattern = IntegrationPattern.RUN_JOB
});
Synopsis
Constructors
EncryptionConfiguration() |
Properties
EncryptionKey | KMS key ARN or ID. |
EncryptionOption | Type of S3 server-side encryption enabled. |
Constructors
EncryptionConfiguration()
public EncryptionConfiguration()
Properties
EncryptionKey
KMS key ARN or ID.
public IKey EncryptionKey { get; set; }
Property Value
Remarks
Default: - No KMS key for Encryption Option SSE_S3 and default master key for Encryption Option SSE_KMS and CSE_KMS
EncryptionOption
Type of S3 server-side encryption enabled.
public EncryptionOption EncryptionOption { get; set; }
Property Value
Remarks
Default: EncryptionOption.S3_MANAGED