Class CfnCertificateProps.Builder

java.lang.Object
software.amazon.awscdk.services.acmpca.CfnCertificateProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateProps>
Enclosing interface:
CfnCertificateProps

@Stability(Stable) public static final class CfnCertificateProps.Builder extends Object implements software.amazon.jsii.Builder<CfnCertificateProps>
A builder for CfnCertificateProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • certificateAuthorityArn

      @Stability(Stable) public CfnCertificateProps.Builder certificateAuthorityArn(String certificateAuthorityArn)
      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)
      Parameters:
      certificateSigningRequest - The certificate signing request (CSR) for the certificate. This parameter is required.
      Returns:
      this
    • signingAlgorithm

      @Stability(Stable) public CfnCertificateProps.Builder signingAlgorithm(String signingAlgorithm)
      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 the SigningAlgorithm parameter used to sign a CSR in the CreateCertificateAuthority action.

      The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.

      Returns:
      this
    • validity

      @Stability(Stable) public CfnCertificateProps.Builder validity(CfnCertificate.ValidityProperty validity)
      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(IResolvable validity)
      Parameters:
      validity - The period of time during which the certificate will be valid. This parameter is required.
      Returns:
      this
    • apiPassthrough

      @Stability(Stable) public CfnCertificateProps.Builder apiPassthrough(IResolvable apiPassthrough)
      Parameters:
      apiPassthrough - Specifies X.509 certificate information to be included in the issued certificate. An APIPassthrough or APICSRPassthrough template variant must be selected, or else this parameter is ignored.
      Returns:
      this
    • apiPassthrough

      @Stability(Stable) public CfnCertificateProps.Builder apiPassthrough(CfnCertificate.ApiPassthroughProperty apiPassthrough)
      Parameters:
      apiPassthrough - Specifies X.509 certificate information to be included in the issued certificate. An APIPassthrough or APICSRPassthrough template variant must be selected, or else this parameter is ignored.
      Returns:
      this
    • templateArn

      @Stability(Stable) public CfnCertificateProps.Builder templateArn(String templateArn)
      Parameters:
      templateArn - Specifies a custom configuration template to use when issuing a certificate. If this parameter is not provided, AWS Private CA defaults to the EndEntityCertificate/V1 template. For more information about AWS Private CA templates, see Using Templates .
      Returns:
      this
    • validityNotBefore

      @Stability(Stable) public CfnCertificateProps.Builder validityNotBefore(CfnCertificate.ValidityProperty validityNotBefore)
      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, the ValidityNotBefore parameter is optional.

      The ValidityNotBefore value is expressed as an explicit date and time, using the Validity type value ABSOLUTE .

      Returns:
      this
    • validityNotBefore

      @Stability(Stable) public CfnCertificateProps.Builder validityNotBefore(IResolvable validityNotBefore)
      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, the ValidityNotBefore parameter is optional.

      The ValidityNotBefore value is expressed as an explicit date and time, using the Validity type value ABSOLUTE .

      Returns:
      this
    • build

      @Stability(Stable) public CfnCertificateProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCertificateProps>
      Returns:
      a new instance of CfnCertificateProps
      Throws:
      NullPointerException - if any required attribute was not provided