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.62.tar.gz
(1.1 MB
view hashes)
Built Distribution
Close
Hashes for cdk_common-0.0.62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9ada80e24a7d86559d0de58e97ac4a7612d2f7c048d8ef7ce9b840db4f44160 |
|
MD5 | e2c0eabb328205bbd094269a6a847bb7 |
|
BLAKE2b-256 | ea1c0482a79d5824891c6f2dd8e6a3ddbd58b50dbfe2ee5bf28d3242cd0126eb |