Class StaticWebsiteProps.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getWebsiteContentPath

        public final String getWebsiteContentPath()
        Description copied from interface: StaticWebsiteProps
        (experimental) Path to the directory containing the static website files and assets.

        This directory must contain an index.html file.

        Specified by:
        getWebsiteContentPath in interface StaticWebsiteProps
      • getDefaultWebsiteBucketEncryption

        public final software.amazon.awscdk.services.s3.BucketEncryption getDefaultWebsiteBucketEncryption()
        Description copied from interface: StaticWebsiteProps
        (experimental) Bucket encryption to use for the default bucket.

        Supported options are KMS or S3MANAGED.

        Note: If planning to use KMS, ensure you associate a Lambda Edge function to sign requests to S3 as OAI does not currently support KMS encryption. Refer to {@link https://aws.amazon.com/blogs/networking-and-content-delivery/serving-sse-kms-encrypted-content-from-s3-using-cloudfront/}

        Default: - "S3MANAGED"

        Specified by:
        getDefaultWebsiteBucketEncryption in interface StaticWebsiteProps
      • getDefaultWebsiteBucketEncryptionKey

        public final software.amazon.awscdk.services.kms.Key getDefaultWebsiteBucketEncryptionKey()
        Description copied from interface: StaticWebsiteProps
        (experimental) A predefined KMS customer encryption key to use for the default bucket that gets created.

        Note: This is only used if the websiteBucket is left undefined, otherwise all settings from the provided websiteBucket will be used.

        Specified by:
        getDefaultWebsiteBucketEncryptionKey in interface StaticWebsiteProps
      • getDistributionProps

        public final software.amazon.awscdk.services.cloudfront.DistributionProps getDistributionProps()
        Description copied from interface: StaticWebsiteProps
        (experimental) Custom distribution properties.

        Note: defaultBehaviour.origin is a required parameter, however it will not be used as this construct will wire it on your behalf. You will need to pass in an instance of StaticWebsiteOrigin (NoOp) to keep the compiler happy.

        Specified by:
        getDistributionProps in interface StaticWebsiteProps
      • getWebAclProps

        public final CloudFrontWebAclProps getWebAclProps()
        Description copied from interface: StaticWebsiteProps
        (experimental) Limited configuration settings for the generated webAcl.

        For more advanced settings, create your own ACL and pass in the webAclId as a param to distributionProps.

        Note: If pass in your own ACL, make sure the SCOPE is CLOUDFRONT and it is created in us-east-1.

        Specified by:
        getWebAclProps in interface StaticWebsiteProps
      • getWebsiteBucket

        public final software.amazon.awscdk.services.s3.IBucket getWebsiteBucket()
        Description copied from interface: StaticWebsiteProps
        (experimental) Predefined bucket to deploy the website into.
        Specified by:
        getWebsiteBucket in interface StaticWebsiteProps
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object