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.caCertificatePem(String caCertificatePem) Sets the value ofCfnCertificateMixinProps.getCaCertificatePem()certificateMode(String certificateMode) Sets the value ofCfnCertificateMixinProps.getCertificateMode()certificatePem(String certificatePem) Sets the value ofCfnCertificateMixinProps.getCertificatePem()certificateSigningRequest(String certificateSigningRequest) Sets the value ofCfnCertificateMixinProps.getCertificateSigningRequest()Sets the value ofCfnCertificateMixinProps.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caCertificatePem
@Stability(Stable) public CfnCertificateMixinProps.Builder caCertificatePem(String caCertificatePem) Sets the value ofCfnCertificateMixinProps.getCaCertificatePem()- Parameters:
caCertificatePem- The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY.- Returns:
this
-
certificateMode
Sets the value ofCfnCertificateMixinProps.getCertificateMode()- 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 inDEFAULTmode is either generated by AWS IoT Core or registered with an issuer certificate authority (CA). Devices with certificates inDEFAULTmode 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 inSNI_ONLYmode is registered without an issuer CA. Devices with certificates inSNI_ONLYmode must send the SNI extension when connecting to AWS IoT Core .- Returns:
this
-
certificatePem
Sets the value ofCfnCertificateMixinProps.getCertificatePem()- 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) Sets the value ofCfnCertificateMixinProps.getCertificateSigningRequest()- Parameters:
certificateSigningRequest- The certificate signing request (CSR).- Returns:
this
-
status
Sets the value ofCfnCertificateMixinProps.getStatus()- 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
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
-