Class CfnCertificate.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnCertificate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate>
- Enclosing class:
CfnCertificate
@Stability(Stable)
public static final class CfnCertificate.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificate>
A fluent builder for
CfnCertificate
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
certificateName
(String certificateName) The name of the certificate.static CfnCertificate.Builder
domainName
(String domainName) The domain name of the certificate.subjectAlternativeNames
(List<String> subjectAlternativeNames) An array of strings that specify the alternate domains (such asexample.org
) and subdomains (such asblog.example.com
) of the certificate.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCertificate.Builder
.
-
certificateName
The name of the certificate.- Parameters:
certificateName
- The name of the certificate. This parameter is required.- Returns:
this
-
domainName
The domain name of the certificate.- Parameters:
domainName
- The domain name of the certificate. This parameter is required.- Returns:
this
-
subjectAlternativeNames
@Stability(Stable) public CfnCertificate.Builder subjectAlternativeNames(List<String> subjectAlternativeNames) An array of strings that specify the alternate domains (such asexample.org
) and subdomains (such asblog.example.com
) of the certificate.- Parameters:
subjectAlternativeNames
- An array of strings that specify the alternate domains (such asexample.org
) and subdomains (such asblog.example.com
) of the certificate. This parameter is required.- Returns:
this
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
Value
ofTags
is optional for Lightsail resources.- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificate>
- Returns:
- a newly built instance of
CfnCertificate
.
-