Welcome to cdk-common
This Constructs Library will collection of useful function and class for AWS CDK.
Install
Use the npm dist tag to opt in CDKv1 or CDKv2:
// for CDKv2
npm install cdk-common
AWS Managed Policies enum
import * as cdk from 'aws-cdk-lib';
import { AWSManagedPolicies } from 'cdk-common';
import { Construct } from 'constructs';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-default', { env });
export class IntegDefault extends Construct {
constructor(scope: Construct, id: string ) {
super(scope, id);
const role = new iam.Role(this, 'iamrole', {
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
});
// Use this way.
role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(AWSManagedPolicies.AMAZON_SSM_MANAGED_INSTANCE_CORE));
// Not this way.
role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore'));
}
}
Metadata
Release files for cdk-common 2.1.69
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdk_common-2.1.69.tar.gz | 4.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_common-2.1.69-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 MB
Release files / cdk_common-2.1.69.tar.gz
| Download URL | cdk_common-2.1.69.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ded5c978bf679062082583c1313ec53b392d42264d1901e995488b8f71aea234
|
|
BLAKE2b-256 checksum How to use checksums |
64734d8cd6def858fc54d769e24cbece364818dc60a71ed668452e76bbf47dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.6
|
Release files / cdk_common-2.1.69-py3-none-any.whl
| Download URL | cdk_common-2.1.69-py3-none-any.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dedeae2081af0232f8d56237c4f79c11b1bdbec98e074e7298435a3954f96e19
|
|
BLAKE2b-256 checksum How to use checksums |
9a79f20ced1c012dd12c4309f23536c2af63c761e4532f527daec0e85cb5ae12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.6
|