Class CfnCertificateProps.Builder

java.lang.Object
software.amazon.awscdk.services.iot.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

    • status

      @Stability(Stable) public CfnCertificateProps.Builder status(String status)
      Parameters:
      status - The status of the certificate. This parameter is required. Valid values are ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER, and PENDING_ACTIVATION.

      The status value REGISTER_INACTIVE is deprecated and should not be used.

      Returns:
      this
    • caCertificatePem

      @Stability(Stable) public CfnCertificateProps.Builder caCertificatePem(String caCertificatePem)
      Parameters:
      caCertificatePem - The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY.
      Returns:
      this
    • certificateMode

      @Stability(Stable) public CfnCertificateProps.Builder certificateMode(String certificateMode)
      Parameters:
      certificateMode - Specifies which mode of certificate registration to use with this resource. Valid options are DEFAULT with CaCertificatePem and CertificatePem, SNI_ONLY with CertificatePem, and Default with CertificateSigningRequest.

      DEFAULT : A certificate in DEFAULT mode is either generated by AWS IoT Core or registered with an issuer certificate authority (CA). Devices with certificates in DEFAULT mode aren't required to send the Server Name Indication (SNI) extension when connecting to AWS IoT Core . However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to AWS IoT Core .

      SNI_ONLY : A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with certificates in SNI_ONLY mode must send the SNI extension when connecting to AWS IoT Core .

      Returns:
      this
    • certificatePem

      @Stability(Stable) public CfnCertificateProps.Builder certificatePem(String certificatePem)
      Parameters:
      certificatePem - The certificate data in PEM format. Requires SNI_ONLY for the certificate mode or the accompanying CACertificatePem for registration.
      Returns:
      this
    • certificateSigningRequest

      @Stability(Stable) public CfnCertificateProps.Builder certificateSigningRequest(String certificateSigningRequest)
      Parameters:
      certificateSigningRequest - The certificate signing request (CSR).
      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