@Stability(value=Stable) public static final class CfnCertificate.Builder extends Object implements software.amazon.jsii.Builder<CfnCertificate>
CfnCertificate.| Modifier and Type | Method and Description |
|---|---|
CfnCertificate |
build() |
CfnCertificate.Builder |
caCertificatePem(String caCertificatePem)
The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY.
|
CfnCertificate.Builder |
certificateMode(String certificateMode)
Specifies which mode of certificate registration to use with this resource.
|
CfnCertificate.Builder |
certificatePem(String certificatePem)
The certificate data in PEM format.
|
CfnCertificate.Builder |
certificateSigningRequest(String certificateSigningRequest)
The certificate signing request (CSR).
|
static CfnCertificate.Builder |
create(Construct scope,
String id) |
CfnCertificate.Builder |
status(String status)
The status of the certificate.
|
@Stability(value=Stable) public static CfnCertificate.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnCertificate.Builder.@Stability(value=Stable) public CfnCertificate.Builder status(String status)
Valid values are ACTIVE, INACTIVE, REVOKED, PENDING_TRANSFER, and PENDING_ACTIVATION.
The status value REGISTER_INACTIVE is deprecated and should not be used.
status - The status of the certificate. This parameter is required.this@Stability(value=Stable) public CfnCertificate.Builder caCertificatePem(String caCertificatePem)
caCertificatePem - The CA certificate used to sign the device certificate being registered, not available when CertificateMode is SNI_ONLY. This parameter is required.this@Stability(value=Stable) public CfnCertificate.Builder certificateMode(String certificateMode)
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 .
certificateMode - Specifies which mode of certificate registration to use with this resource. This parameter is required.this@Stability(value=Stable) public CfnCertificate.Builder certificatePem(String certificatePem)
Requires SNI_ONLY for the certificate mode or the accompanying CACertificatePem for registration.
certificatePem - The certificate data in PEM format. This parameter is required.this@Stability(value=Stable) public CfnCertificate.Builder certificateSigningRequest(String certificateSigningRequest)
certificateSigningRequest - The certificate signing request (CSR). This parameter is required.this@Stability(value=Stable) public CfnCertificate build()
build in interface software.amazon.jsii.Builder<CfnCertificate>Copyright © 2023. All rights reserved.