Class Certificate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Certificate>
- Enclosing class:
Certificate
Certificate
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
certificateName
(String certificateName) The Certificate name.static Certificate.Builder
domainName
(String domainName) Fully-qualified domain name to request a certificate for.keyAlgorithm
(KeyAlgorithm keyAlgorithm) Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.subjectAlternativeNames
(List<String> subjectAlternativeNames) Alternative domain names on your certificate.transparencyLoggingEnabled
(Boolean transparencyLoggingEnabled) Enable or disable transparency logging for this certificate.validation
(CertificateValidation validation) How to validate this certificate.
-
Method Details
-
create
@Stability(Stable) public static Certificate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Certificate.Builder
.
-
domainName
Fully-qualified domain name to request a certificate for.May contain wildcards, such as
*.domain.com
.- Parameters:
domainName
- Fully-qualified domain name to request a certificate for. This parameter is required.- Returns:
this
-
certificateName
The Certificate name.Since the Certificate resource doesn't support providing a physical name, the value provided here will be recorded in the
Name
tagDefault: the full, absolute path of this construct
- Parameters:
certificateName
- The Certificate name. This parameter is required.- Returns:
this
-
keyAlgorithm
Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.Default: KeyAlgorithm.RSA_2048
- Parameters:
keyAlgorithm
- Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. This parameter is required.- Returns:
this
- See Also:
-
subjectAlternativeNames
@Stability(Stable) public Certificate.Builder subjectAlternativeNames(List<String> subjectAlternativeNames) Alternative domain names on your certificate.Use this to register alternative domain names that represent the same site.
Default: - No additional FQDNs will be included as alternative domain names.
- Parameters:
subjectAlternativeNames
- Alternative domain names on your certificate. This parameter is required.- Returns:
this
-
transparencyLoggingEnabled
@Stability(Stable) public Certificate.Builder transparencyLoggingEnabled(Boolean transparencyLoggingEnabled) Enable or disable transparency logging for this certificate.Once a certificate has been logged, it cannot be removed from the log. Opting out at that point will have no effect. If you opt out of logging when you request a certificate and then choose later to opt back in, your certificate will not be logged until it is renewed. If you want the certificate to be logged immediately, we recommend that you issue a new one.
Default: true
- Parameters:
transparencyLoggingEnabled
- Enable or disable transparency logging for this certificate. This parameter is required.- Returns:
this
- See Also:
-
validation
How to validate this certificate.Default: CertificateValidation.fromEmail()
- Parameters:
validation
- How to validate this certificate. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Certificate>
- Returns:
- a newly built instance of
Certificate
.
-