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.BuilderThe status of the certificate.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- 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
-
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
-
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 .- Parameters:
certificateMode- Specifies which mode of certificate registration to use with this resource. This parameter is required.- Returns:
this
-
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
-
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
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificate>- Returns:
- a newly built instance of
CfnCertificate.
-