Class CfnCertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateProps>
- Enclosing interface:
CfnCertificateProps
CfnCertificateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiPassthrough
(IResolvable apiPassthrough) Sets the value ofCfnCertificateProps.getApiPassthrough()
apiPassthrough
(CfnCertificate.ApiPassthroughProperty apiPassthrough) Sets the value ofCfnCertificateProps.getApiPassthrough()
build()
Builds the configured instance.certificateAuthorityArn
(String certificateAuthorityArn) Sets the value ofCfnCertificateProps.getCertificateAuthorityArn()
certificateSigningRequest
(String certificateSigningRequest) Sets the value ofCfnCertificateProps.getCertificateSigningRequest()
signingAlgorithm
(String signingAlgorithm) Sets the value ofCfnCertificateProps.getSigningAlgorithm()
templateArn
(String templateArn) Sets the value ofCfnCertificateProps.getTemplateArn()
validity
(IResolvable validity) Sets the value ofCfnCertificateProps.getValidity()
validity
(CfnCertificate.ValidityProperty validity) Sets the value ofCfnCertificateProps.getValidity()
validityNotBefore
(IResolvable validityNotBefore) Sets the value ofCfnCertificateProps.getValidityNotBefore()
validityNotBefore
(CfnCertificate.ValidityProperty validityNotBefore) Sets the value ofCfnCertificateProps.getValidityNotBefore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateAuthorityArn
@Stability(Stable) public CfnCertificateProps.Builder certificateAuthorityArn(String certificateAuthorityArn) Sets the value ofCfnCertificateProps.getCertificateAuthorityArn()
- Parameters:
certificateAuthorityArn
- The Amazon Resource Name (ARN) for the private CA issues the certificate. This parameter is required.- Returns:
this
-
certificateSigningRequest
@Stability(Stable) public CfnCertificateProps.Builder certificateSigningRequest(String certificateSigningRequest) Sets the value ofCfnCertificateProps.getCertificateSigningRequest()
- Parameters:
certificateSigningRequest
- The certificate signing request (CSR) for the certificate. This parameter is required.- Returns:
this
-
signingAlgorithm
Sets the value ofCfnCertificateProps.getSigningAlgorithm()
- Parameters:
signingAlgorithm
- The name of the algorithm that will be used to sign the certificate to be issued. This parameter is required. This parameter should not be confused with theSigningAlgorithm
parameter used to sign a CSR in theCreateCertificateAuthority
action.The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
- Returns:
this
-
validity
Sets the value ofCfnCertificateProps.getValidity()
- Parameters:
validity
- The period of time during which the certificate will be valid. This parameter is required.- Returns:
this
-
validity
@Stability(Stable) public CfnCertificateProps.Builder validity(CfnCertificate.ValidityProperty validity) Sets the value ofCfnCertificateProps.getValidity()
- Parameters:
validity
- The period of time during which the certificate will be valid. This parameter is required.- Returns:
this
-
apiPassthrough
Sets the value ofCfnCertificateProps.getApiPassthrough()
- Parameters:
apiPassthrough
- Specifies X.509 certificate information to be included in the issued certificate. AnAPIPassthrough
orAPICSRPassthrough
template variant must be selected, or else this parameter is ignored.- Returns:
this
-
apiPassthrough
@Stability(Stable) public CfnCertificateProps.Builder apiPassthrough(CfnCertificate.ApiPassthroughProperty apiPassthrough) Sets the value ofCfnCertificateProps.getApiPassthrough()
- Parameters:
apiPassthrough
- Specifies X.509 certificate information to be included in the issued certificate. AnAPIPassthrough
orAPICSRPassthrough
template variant must be selected, or else this parameter is ignored.- Returns:
this
-
templateArn
Sets the value ofCfnCertificateProps.getTemplateArn()
- Parameters:
templateArn
- Specifies a custom configuration template to use when issuing a certificate. If this parameter is not provided, AWS Private CA defaults to theEndEntityCertificate/V1
template. For more information about AWS Private CA templates, see Using Templates .- Returns:
this
-
validityNotBefore
@Stability(Stable) public CfnCertificateProps.Builder validityNotBefore(IResolvable validityNotBefore) Sets the value ofCfnCertificateProps.getValidityNotBefore()
- Parameters:
validityNotBefore
- Information describing the start of the validity period of the certificate. This parameter sets the “Not Before" date for the certificate.By default, when issuing a certificate, AWS Private CA sets the "Not Before" date to the issuance time minus 60 minutes. This compensates for clock inconsistencies across computer systems. The
ValidityNotBefore
parameter can be used to customize the “Not Before” value.Unlike the
Validity
parameter, theValidityNotBefore
parameter is optional.The
ValidityNotBefore
value is expressed as an explicit date and time, using theValidity
type valueABSOLUTE
.- Returns:
this
-
validityNotBefore
@Stability(Stable) public CfnCertificateProps.Builder validityNotBefore(CfnCertificate.ValidityProperty validityNotBefore) Sets the value ofCfnCertificateProps.getValidityNotBefore()
- Parameters:
validityNotBefore
- Information describing the start of the validity period of the certificate. This parameter sets the “Not Before" date for the certificate.By default, when issuing a certificate, AWS Private CA sets the "Not Before" date to the issuance time minus 60 minutes. This compensates for clock inconsistencies across computer systems. The
ValidityNotBefore
parameter can be used to customize the “Not Before” value.Unlike the
Validity
parameter, theValidityNotBefore
parameter is optional.The
ValidityNotBefore
value is expressed as an explicit date and time, using theValidity
type valueABSOLUTE
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificateProps>
- Returns:
- a new instance of
CfnCertificateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-