Skip to main content

CDK Construct for creating Athena WorkGroups

Project description

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.

# 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
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-athena-workgroup-1.0.0.tar.gz (56.8 kB view hashes)

Uploaded Source

Built Distribution

cdk_athena_workgroup-1.0.0-py3-none-any.whl (55.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page