Class CfnCertificate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate>
- Enclosing class:
CfnCertificate
CfnCertificate
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
caCertificatePem
(String caCertificatePem) The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY.certificateMode
(String certificateMode) Specifies which mode of certificate registration to use with this resource.certificatePem
(String certificatePem) The certificate data in PEM format.certificateSigningRequest
(String certificateSigningRequest) The certificate signing request (CSR).static CfnCertificate.Builder
The status of the certificate.
-
Method Details
-
create
@Stability(Stable) public static CfnCertificate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCertificate.Builder
.
-
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.
- Parameters:
status
- The status of the certificate. This parameter is required.- Returns:
this
- See Also:
-
caCertificatePem
The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY.- Parameters:
caCertificatePem
- The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY. This parameter is required.- Returns:
this
- See Also:
-
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 inDEFAULT
mode is either generated by AWS IoT Core or registered with an issuer certificate authority (CA). Devices with certificates inDEFAULT
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 inSNI_ONLY
mode is registered without an issuer CA. Devices with certificates inSNI_ONLY
mode must send the SNI extension when connecting to AWS IoT Core .- Parameters:
certificateMode
- Specifies which mode of certificate registration to use with this resource. This parameter is required.- Returns:
this
- See Also:
-
certificatePem
The certificate data in PEM format.Requires SNI_ONLY for the certificate mode or the accompanying CACertificatePem for registration.
- Parameters:
certificatePem
- The certificate data in PEM format. This parameter is required.- Returns:
this
- See Also:
-
certificateSigningRequest
@Stability(Stable) public CfnCertificate.Builder certificateSigningRequest(String certificateSigningRequest) The certificate signing request (CSR).- Parameters:
certificateSigningRequest
- The certificate signing request (CSR). This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificate>
- Returns:
- a newly built instance of
CfnCertificate
.
-