cdk-athena-workgroup
v1.0.0
Published
CDK Construct for creating Athena WorkGroups
Downloads
38
Maintainers
Readme
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.
const wg = new WorkGroup(this, 'WorkGroup', {
name: 'TheName', // required
desc: 'Some description',
publishCloudWatchMetricsEnabled: true,
enforceWorkGroupConfiguration: true,
requesterPaysEnabled: true,
bytesScannedCutoffPerQuery: 11000000,
resultConfiguration: {
outputLocation: `s3://some-bucket/prefix`,
encryptionConfiguration: {
encryptionOption: EncryptionOption.SSE_S3,
},
},
});
cdk.Tag.add(wg, 'HelloTag', 'ok');
new cdk.CfnOutput(this, 'WorkGroupArn', {
value: wg.arn,
});
new cdk.CfnOutput(this, 'WorkGroupName', {
value: wg.name,
});