@Stability(value=Stable) public static final class HttpsRedirectProps.Builder extends Object implements software.amazon.jsii.Builder<HttpsRedirectProps>
HttpsRedirectProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HttpsRedirectProps |
build()
Builds the configured instance.
|
HttpsRedirectProps.Builder |
certificate(ICertificate certificate)
Sets the value of
HttpsRedirectProps.getCertificate() |
HttpsRedirectProps.Builder |
recordNames(List<String> recordNames)
Sets the value of
HttpsRedirectProps.getRecordNames() |
HttpsRedirectProps.Builder |
targetDomain(String targetDomain)
Sets the value of
HttpsRedirectProps.getTargetDomain() |
HttpsRedirectProps.Builder |
zone(IHostedZone zone)
Sets the value of
HttpsRedirectProps.getZone() |
@Stability(value=Stable) public HttpsRedirectProps.Builder targetDomain(String targetDomain)
HttpsRedirectProps.getTargetDomain()targetDomain - The redirect target fully qualified domain name (FQDN). This parameter is required.
An alias record
will be created that points to your CloudFront distribution. Root domain
or sub-domain can be supplied.this@Stability(value=Stable) public HttpsRedirectProps.Builder zone(IHostedZone zone)
HttpsRedirectProps.getZone()zone - Hosted zone of the domain which will be used to create alias record(s) from domain names in the hosted zone to the target domain. This parameter is required.
The hosted zone must
contain entries for the domain name(s) supplied through recordNames that
will redirect to the target domain.
Domain names in the hosted zone can include a specific domain (example.com) and its subdomains (acme.example.com, zenith.example.com).
this@Stability(value=Stable) public HttpsRedirectProps.Builder certificate(ICertificate certificate)
HttpsRedirectProps.getCertificate()certificate - The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created.
If provided, the certificate must be
stored in us-east-1 (N. Virginia)this@Stability(value=Stable) public HttpsRedirectProps.Builder recordNames(List<String> recordNames)
HttpsRedirectProps.getRecordNames()recordNames - The domain names that will redirect to `targetDomain`.this@Stability(value=Stable) public HttpsRedirectProps build()
build in interface software.amazon.jsii.Builder<HttpsRedirectProps>HttpsRedirectPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.