Skip to main content

NPM version PyPI version release

Downloads npm PyPI

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)

Source distribution for cdk-common 2.1.69
File Size Uploaded Provenance Actions
cdk_common-2.1.69.tar.gz 4.0 MB Without provenance Details for cdk_common-2.1.69.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdk-common 2.1.69
File Interpreter ABI Platform Actions
cdk_common-2.1.69-py3-none-any.whl Python 3 none any Details for cdk_common-2.1.69-py3-none-any.whl

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

Security for cdk-common 2.1.69

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.69 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page