cdkathenaworkgroup 1.0.0
CDK Athena WorkGroup
AWS CDK L3 construct for managing Athena WorkGroups.
Because I couldn't get @aws-cdk/aws-athena.CfnWorkGroup to work and @aws-cdk/custom-resources.AwsCustomResource has no support for tags.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
wg = WorkGroup(self, "WorkGroup",
name="TheName", # required
desc="Some description",
publish_cloud_watch_metrics_enabled=True,
enforce_work_group_configuration=True,
requester_pays_enabled=True,
bytes_scanned_cutoff_per_query=11000000,
result_configuration={
"output_location": "s3://some-bucket/prefix",
"encryption_configuration": {
"encryption_option": EncryptionOption.SSE_S3
}
}
)
cdk.Tag.add(wg, "HelloTag", "ok")
cdk.CfnOutput(self, "WorkGroupArn",
value=wg.arn
)
cdk.CfnOutput(self, "WorkGroupName",
value=wg.name
)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.