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.48.tar.gz
(1.0 MB
view details)
Built Distribution
File details
Details for the file cdk-common-0.0.48.tar.gz
.
File metadata
- Download URL: cdk-common-0.0.48.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b80b2f580283cb6c3b8fb5d09deca11aa989316ac95ea7cd4b8fd322aaee18 |
|
MD5 | 94dc8dc285f74f2fb8997bc29314d39a |
|
BLAKE2b-256 | f4c72824c7be2580d0da4b7714c2b043122699a16cc09b5235bbd3228f2b2920 |
File details
Details for the file cdk_common-0.0.48-py3-none-any.whl
.
File metadata
- Download URL: cdk_common-0.0.48-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c79c98e226d73d8f1f7955b3e4b78e227bf5bdf325f2b454490661fed8a971c5 |
|
MD5 | ce39295a3959eaa45ae49734ef2ceaff |
|
BLAKE2b-256 | b141db04cdb843834ea03285ff08bc2a584db007e19fa9cfc1b8583211b7126f |