Skip to main content

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
    },
  });

Release files for aws-solutions-konstruk.core 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-solutions-konstruk.core 0.8.1
File Size Uploaded
aws-solutions-konstruk.core-0.8.1.tar.gz 402.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-solutions-konstruk.core 0.8.1
File Interpreter ABI Platform
aws_solutions_konstruk.core-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 804.2 kB

Release files / aws-solutions-konstruk.core-0.8.1.tar.gz

Download URL aws-solutions-konstruk.core-0.8.1.tar.gz
Size 402.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4405f607abafcc7980da373d63203c0e79d022839b7e9696f3299b18538363b1
BLAKE2b-256 checksum
How to use checksums
22246e4287a4956d571d4f75efc274d5d69f71fbc4d73710f9a5baf06500bd02
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / aws_solutions_konstruk.core-0.8.1-py3-none-any.whl

Download URL aws_solutions_konstruk.core-0.8.1-py3-none-any.whl
Size 401.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc38751f07fb41fcc87ecbfa8980c2f4629f359d826e51f245599d3c6a3a1364
BLAKE2b-256 checksum
How to use checksums
af2dbea0c9b7790787c6efb4e1e3cdd2371009a2cb7e266c0e87b6f8c4323591
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files

0.8.0

2 release files

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