Interface StaticWebsiteProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StaticWebsiteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-11-08T06:39:58.461Z") @Stability(Experimental) public interface StaticWebsiteProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for configuring the StaticWebsite.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStaticWebsiteProps.BuilderA builder forStaticWebsitePropsstatic classStaticWebsiteProps.Jsii$ProxyAn implementation forStaticWebsiteProps
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static StaticWebsiteProps.Builderbuilder()default software.amazon.awscdk.services.s3.BucketEncryptiongetDefaultWebsiteBucketEncryption()(experimental) Bucket encryption to use for the default bucket.default software.amazon.awscdk.services.kms.KeygetDefaultWebsiteBucketEncryptionKey()(experimental) A predefined KMS customer encryption key to use for the default bucket that gets created.default software.amazon.awscdk.services.cloudfront.DistributionPropsgetDistributionProps()(experimental) Custom distribution properties.default RuntimeOptionsgetRuntimeOptions()(experimental) Dynamic configuration which gets resolved only during deployment.default CloudFrontWebAclPropsgetWebAclProps()(experimental) Limited configuration settings for the generated webAcl.default software.amazon.awscdk.services.s3.IBucketgetWebsiteBucket()(experimental) Predefined bucket to deploy the website into.StringgetWebsiteContentPath()(experimental) Path to the directory containing the static website files and assets.
-
-
-
Method Detail
-
getWebsiteContentPath
@Stability(Experimental) @NotNull String getWebsiteContentPath()
(experimental) Path to the directory containing the static website files and assets.This directory must contain an index.html file.
-
getDefaultWebsiteBucketEncryption
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.s3.BucketEncryption getDefaultWebsiteBucketEncryption()
(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"
-
getDefaultWebsiteBucketEncryptionKey
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.kms.Key getDefaultWebsiteBucketEncryptionKey()
(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.
-
getDistributionProps
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.cloudfront.DistributionProps getDistributionProps()
(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.
-
getRuntimeOptions
@Stability(Experimental) @Nullable default RuntimeOptions getRuntimeOptions()
(experimental) Dynamic configuration which gets resolved only during deployment.
-
getWebAclProps
@Stability(Experimental) @Nullable default CloudFrontWebAclProps getWebAclProps()
(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.
-
getWebsiteBucket
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.s3.IBucket getWebsiteBucket()
(experimental) Predefined bucket to deploy the website into.
-
builder
@Stability(Experimental) static StaticWebsiteProps.Builder builder()
- Returns:
- a
StaticWebsiteProps.BuilderofStaticWebsiteProps
-
-