cdk-athena-workgroup
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

CDK Athena WorkGroup

Source Test GitHub Docs

npm package PyPI package NuGet package

Downloads npm PyPI NuGet

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,
});

Package Sidebar

Install

npm i cdk-athena-workgroup

Weekly Downloads

10

Version

1.0.0

License

Apache-2.0

Unpacked Size

141 kB

Total Files

20

Last publish

Collaborators

  • udondan