Common AWS CDK librarys.
Project description
Welcome to cdk-common
This Constructs Library will collection of useful function
and class
for AWS CDK.
AWS Managed Policies enum
# Example automatically generated from non-compiling source. May contain errors.
from cdk_common import AWSManagedPolicies
app = cdk.App()
stack = cdk.Stack(app, "integ-default", env=env)
class IntegDefault(cdk.Construct):
def __init__(self, scope, id):
super().__init__(scope, id)
role = iam.Role(self, "iamrole",
assumed_by=iam.ServicePrincipal("ec2.amazonaws.com")
)
# Use this way.
role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name(AWSManagedPolicies.AMAZON_SSM_MANAGED_INSTANCE_CORE))
# Not this way.
role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name("AmazonSSMManagedInstanceCore"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk-common-0.0.59.tar.gz
(1.1 MB
view details)
Built Distribution
File details
Details for the file cdk-common-0.0.59.tar.gz
.
File metadata
- Download URL: cdk-common-0.0.59.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b3a900526563d594a8c652013d9c2fdd168258fd058e15ee4e636377b13e61 |
|
MD5 | 0709edeef0e51ac3b64a0aada033c103 |
|
BLAKE2b-256 | f2307cc8e37392cca05cba8b5620bcbc1befcda79ecd330ed39ba2d7d2b7bd5f |
File details
Details for the file cdk_common-0.0.59-py3-none-any.whl
.
File metadata
- Download URL: cdk_common-0.0.59-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69c62c88166ce64394e7afe3bd9267e734c8b0246b19dc1e69c0f9695979136c |
|
MD5 | ec8319cc5fcbdc070d9a6dd2f2e626b5 |
|
BLAKE2b-256 | 8beb0a334f1effbcb8f97256d541bf81d56e41d3175deca631e5279429d82342 |