Class CfnCertificateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateMixinProps>
- Enclosing interface:
CfnCertificateMixinProps
CfnCertificateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateAuthorityArn(String certificateAuthorityArn) Sets the value ofCfnCertificateMixinProps.getCertificateAuthorityArn()certificateExport(String certificateExport) Sets the value ofCfnCertificateMixinProps.getCertificateExport()certificateTransparencyLoggingPreference(String certificateTransparencyLoggingPreference) Sets the value ofCfnCertificateMixinProps.getCertificateTransparencyLoggingPreference()domainName(String domainName) Sets the value ofCfnCertificateMixinProps.getDomainName()domainValidationOptions(List<? extends Object> domainValidationOptions) Sets the value ofCfnCertificateMixinProps.getDomainValidationOptions()domainValidationOptions(IResolvable domainValidationOptions) Sets the value ofCfnCertificateMixinProps.getDomainValidationOptions()keyAlgorithm(String keyAlgorithm) Sets the value ofCfnCertificateMixinProps.getKeyAlgorithm()subjectAlternativeNames(List<String> subjectAlternativeNames) Sets the value ofCfnCertificateMixinProps.getSubjectAlternativeNames()Sets the value ofCfnCertificateMixinProps.getTags()validationMethod(String validationMethod) Sets the value ofCfnCertificateMixinProps.getValidationMethod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateAuthorityArn
@Stability(Stable) public CfnCertificateMixinProps.Builder certificateAuthorityArn(String certificateAuthorityArn) Sets the value ofCfnCertificateMixinProps.getCertificateAuthorityArn()- Parameters:
certificateAuthorityArn- The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the AWS Private Certificate Authority user guide. The ARN must have the following form:arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012- Returns:
this
-
certificateExport
@Stability(Stable) public CfnCertificateMixinProps.Builder certificateExport(String certificateExport) Sets the value ofCfnCertificateMixinProps.getCertificateExport()- Parameters:
certificateExport- You can opt out of allowing export of your certificate by specifying theDISABLEDoption. Allow export of your certificate by specifying theENABLEDoption.If you do not specify an export preference in a new CloudFormation template, it is the same as explicitly denying export of your certificate.
- Returns:
this
-
certificateTransparencyLoggingPreference
@Stability(Stable) public CfnCertificateMixinProps.Builder certificateTransparencyLoggingPreference(String certificateTransparencyLoggingPreference) Sets the value ofCfnCertificateMixinProps.getCertificateTransparencyLoggingPreference()- Parameters:
certificateTransparencyLoggingPreference- You can opt out of certificate transparency logging by specifying theDISABLEDoption. Opt in by specifyingENABLED. This setting doces not apply to private certificates.If you do not specify a certificate transparency logging preference on a new CloudFormation template, or if you remove the logging preference from an existing template, this is the same as explicitly enabling the preference.
Changing the certificate transparency logging preference will update the existing resource by calling
UpdateCertificateOptionson the certificate. This action will not create a new resource.- Returns:
this
-
domainName
Sets the value ofCfnCertificateMixinProps.getDomainName()- Parameters:
domainName- The fully qualified domain name (FQDN), such as www.example.com, with which you want to secure an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example,*.example.comprotectswww.example.com,site.example.com, andimages.example.com..- Returns:
this
-
domainValidationOptions
@Stability(Stable) public CfnCertificateMixinProps.Builder domainValidationOptions(IResolvable domainValidationOptions) Sets the value ofCfnCertificateMixinProps.getDomainValidationOptions()- Parameters:
domainValidationOptions- Domain information that domain name registrars use to verify your identity.In order for a AWS::CertificateManager::Certificate to be provisioned and validated in CloudFormation automatically, the
DomainNameproperty needs to be identical to one of theDomainNameproperty supplied in DomainValidationOptions, if the ValidationMethod is DNS. Failing to keep them like-for-like will result in failure to create the domain validation records in Route53.- Returns:
this
-
domainValidationOptions
@Stability(Stable) public CfnCertificateMixinProps.Builder domainValidationOptions(List<? extends Object> domainValidationOptions) Sets the value ofCfnCertificateMixinProps.getDomainValidationOptions()- Parameters:
domainValidationOptions- Domain information that domain name registrars use to verify your identity.In order for a AWS::CertificateManager::Certificate to be provisioned and validated in CloudFormation automatically, the
DomainNameproperty needs to be identical to one of theDomainNameproperty supplied in DomainValidationOptions, if the ValidationMethod is DNS. Failing to keep them like-for-like will result in failure to create the domain validation records in Route53.- Returns:
this
-
keyAlgorithm
Sets the value ofCfnCertificateMixinProps.getKeyAlgorithm()- Parameters:
keyAlgorithm- Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some AWS services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the AWS service where you plan to deploy your certificate. For more information about selecting an algorithm, see Key algorithms .Algorithms supported for an ACM certificate request include:
RSA_2048EC_prime256v1EC_secp384r1
Other listed algorithms are for imported certificates only. > When you request a private PKI certificate signed by a CA from AWS Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
Default: RSA_2048
- Returns:
this
-
subjectAlternativeNames
@Stability(Stable) public CfnCertificateMixinProps.Builder subjectAlternativeNames(List<String> subjectAlternativeNames) Sets the value ofCfnCertificateMixinProps.getSubjectAlternativeNames()- Parameters:
subjectAlternativeNames- Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, you can add www.example.net to a certificate for which theDomainNamefield is www.example.com if users can reach your site by using either name.- Returns:
this
-
tags
Sets the value ofCfnCertificateMixinProps.getTags()- Parameters:
tags- Key-value pairs that can identify the certificate.- Returns:
this
-
validationMethod
@Stability(Stable) public CfnCertificateMixinProps.Builder validationMethod(String validationMethod) Sets the value ofCfnCertificateMixinProps.getValidationMethod()- Parameters:
validationMethod- The method you want to use to validate that you own or control the domain associated with a public certificate. You can validate with DNS or validate with email . We recommend that you use DNS validation.If not specified, this property defaults to email validation.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificateMixinProps>- Returns:
- a new instance of
CfnCertificateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-