aws-cdk-lib.aws_stepfunctions_tasks.EncryptionConfiguration

interface EncryptionConfiguration

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EncryptionConfiguration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EncryptionConfiguration
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EncryptionConfiguration
Pythonaws_cdk.aws_stepfunctions_tasks.EncryptionConfiguration
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » EncryptionConfiguration

Encryption Configuration of the S3 bucket.

See also: https://docs.aws.amazon.com/athena/latest/APIReference/API_EncryptionConfiguration.html

Example

const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Start Athena Query', {
  queryString: sfn.JsonPath.stringAt('$.queryString'),
  queryExecutionContext: {
    databaseName: 'mydatabase',
  },
  resultConfiguration: {
    encryptionConfiguration: {
      encryptionOption: tasks.EncryptionOption.S3_MANAGED,
    },
    outputLocation: {
      bucketName: 'query-results-bucket',
      objectKey: 'folder',
    },
  },
});

Properties

NameTypeDescription
encryptionOptionEncryptionOptionType of S3 server-side encryption enabled.
encryptionKey?IKeyKMS key ARN or ID.

encryptionOption

Type: EncryptionOption

Type of S3 server-side encryption enabled.


encryptionKey?

Type: IKey (optional, default: No KMS key for Encryption Option SSE_S3 and default master key for Encryption Option SSE_KMS and CSE_KMS)

KMS key ARN or ID.