Class CfnCertificateMixinProps.Builder

java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnCertificateMixinProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateMixinProps>
Enclosing interface:
CfnCertificateMixinProps

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

    • Builder

      public Builder()
  • Method Details

    • caCertificatePem

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

      @Stability(Stable) public CfnCertificateMixinProps.Builder status(String status)
      Parameters:
      status - The status of the certificate. 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
    • build

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