@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.506Z") @Stability(value=Stable) public enum EncryptionOption extends Enum<EncryptionOption>
Example:
AthenaStartQueryExecution startQueryExecutionJob = AthenaStartQueryExecution.Builder.create(this, "Start Athena Query")
.queryString(JsonPath.stringAt("$.queryString"))
.queryExecutionContext(QueryExecutionContext.builder()
.databaseName("mydatabase")
.build())
.resultConfiguration(ResultConfiguration.builder()
.encryptionConfiguration(EncryptionConfiguration.builder()
.encryptionOption(EncryptionOption.S3_MANAGED)
.build())
.outputLocation(Location.builder()
.bucketName("query-results-bucket")
.objectKey("folder")
.build())
.build())
.build();
| Enum Constant and Description |
|---|
CLIENT_SIDE_KMS
Client-side encryption (CSE) with an AWS KMS key managed by the account owner.
|
KMS
Server-side encryption (SSE) with an AWS KMS key managed by the account owner.
|
S3_MANAGED
Server side encryption (SSE) with an Amazon S3-managed key.
|
| Modifier and Type | Method and Description |
|---|---|
static EncryptionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final EncryptionOption S3_MANAGED
@Stability(value=Stable) public static final EncryptionOption KMS
@Stability(value=Stable) public static final EncryptionOption CLIENT_SIDE_KMS
public static EncryptionOption[] values()
for (EncryptionOption c : EncryptionOption.values()) System.out.println(c);
public static EncryptionOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.