@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-27T20:28:49.342Z") @Stability(value=Stable) public enum EncryptionOption extends Enum<EncryptionOption>
Example:
AthenaStartQueryExecution startQueryExecutionJob = AthenaStartQueryExecution.Builder.create(this, "Athena Start Query")
.queryString(JsonPath.format("select contacts where year={};", JsonPath.stringAt("$.year")))
.queryExecutionContext(QueryExecutionContext.builder()
.databaseName("interactions")
.build())
.resultConfiguration(ResultConfiguration.builder()
.encryptionConfiguration(EncryptionConfiguration.builder()
.encryptionOption(EncryptionOption.S3_MANAGED)
.build())
.outputLocation(Location.builder()
.bucketName("mybucket")
.objectKey("myprefix")
.build())
.build())
.integrationPattern(IntegrationPattern.RUN_JOB)
.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.