Skip to main content

Core CDK Construct for patterns library

Project description

core module

---

Stability: Experimental

This is a developer preview (public beta) module.

All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


API Reference: http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/core/

The core library includes the basic building blocks of the AWS Solutions Konstruk Library. It defines the core classes that are used in the rest of the AWS Solutions Konstruk Library.

Default Properties for AWS CDK Constructs

Core library sets the default properties for the AWS CDK Constructs used by the AWS Solutions Konstruk Library constructs.

For example, the following is the snippet of default properties for S3 Bucket construct created by AWS Solutions Konstruk construct. By default, it will turn on the server-side encryption, bucket versioning, block all public access and setup the S3 access logging.

{
  encryption: s3.BucketEncryption.S3_MANAGED,
  versioned: true,
  blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
  removalPolicy: RemovalPolicy.RETAIN,
  serverAccessLogsBucket: loggingBucket
}

Override the default properties

The default properties set by the Core library can be overriden by user provided properties. For example, the user can override the Amazon S3 Block Public Access property to meet specific requirements.

  const stack = new cdk.Stack();

  const props: CloudFrontToS3Props = {
    deployBucket: true,
    bucketProps: {
      blockPublicAccess: {
        blockPublicAcls: false,
        blockPublicPolicy: true,
        ignorePublicAcls: false,
        restrictPublicBuckets: true
      }
    }
  };

  new CloudFrontToS3(stack, 'test-cloudfront-s3', props);

  expect(stack).toHaveResource("AWS::S3::Bucket", {
    PublicAccessBlockConfiguration: {
      BlockPublicAcls: false,
      BlockPublicPolicy: true,
      IgnorePublicAcls: false,
      RestrictPublicBuckets: true
    },
  });

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-solutions-konstruk.core-0.8.1.tar.gz (402.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_solutions_konstruk.core-0.8.1-py3-none-any.whl (401.6 kB view details)

Uploaded Python 3

File details

Details for the file aws-solutions-konstruk.core-0.8.1.tar.gz.

File metadata

  • Download URL: aws-solutions-konstruk.core-0.8.1.tar.gz
  • Upload date:
  • Size: 402.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for aws-solutions-konstruk.core-0.8.1.tar.gz
Algorithm Hash digest
SHA256 4405f607abafcc7980da373d63203c0e79d022839b7e9696f3299b18538363b1
MD5 ff1244693c6114a4331cc6c1131a832c
BLAKE2b-256 22246e4287a4956d571d4f75efc274d5d69f71fbc4d73710f9a5baf06500bd02

See more details on using hashes here.

File details

Details for the file aws_solutions_konstruk.core-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: aws_solutions_konstruk.core-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 401.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for aws_solutions_konstruk.core-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc38751f07fb41fcc87ecbfa8980c2f4629f359d826e51f245599d3c6a3a1364
MD5 5f3f69c7cf0eb5dff34f41438f12a66b
BLAKE2b-256 af2dbea0c9b7790787c6efb4e1e3cdd2371009a2cb7e266c0e87b6f8c4323591

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page