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.66.tar.gz
(1.1 MB
view details)
Built Distribution
File details
Details for the file cdk-common-0.0.66.tar.gz
.
File metadata
- Download URL: cdk-common-0.0.66.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.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 | e11a85e57e6166890228ec5f42cff73fa6eb74db346ae91ca2c8e16d494e7584 |
|
MD5 | c91b6a8d931fc8e0a9e115a8138f887d |
|
BLAKE2b-256 | d7bacef8324a4a020f30a7c03b03e84ccd2c8e1aa07fcc3c5eae62edc4092085 |
File details
Details for the file cdk_common-0.0.66-py3-none-any.whl
.
File metadata
- Download URL: cdk_common-0.0.66-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.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 | 70f5035fa86a84a7014d67a9a3c92044ac3c0b2e3444da9c57e4ca8a4d9400ac |
|
MD5 | ba8179cd9c5c3030b553bf6c2811cb0a |
|
BLAKE2b-256 | 43fe476dbc0530e7b280d2b64d298d475fc6f9827924d98d0103e0a70f08f855 |