@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-02T14:17:13.855Z") @Stability(value=Stable) public class CfnCACertificate extends CfnResource implements IInspectable
Specifies a CA certificate.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CfnCACertificate cfnCACertificate = CfnCACertificate.Builder.create(this, "MyCfnCACertificate")
.caCertificatePem("caCertificatePem")
.status("status")
// the properties below are optional
.autoRegistrationStatus("autoRegistrationStatus")
.certificateMode("certificateMode")
.registrationConfig(RegistrationConfigProperty.builder()
.roleArn("roleArn")
.templateBody("templateBody")
.templateName("templateName")
.build())
.removeAutoRegistration(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.verificationCertificatePem("verificationCertificatePem")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCACertificate.Builder
A fluent builder for
CfnCACertificate. |
static interface |
CfnCACertificate.RegistrationConfigProperty
The registration configuration.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCACertificate(Construct scope,
String id,
CfnCACertificateProps props)
Create a new `AWS::IoT::CACertificate`.
|
protected |
CfnCACertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCACertificate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
Returns the Amazon Resource Name (ARN) for the CA certificate.
|
String |
getAttrId()
The CA certificate ID.
|
String |
getAutoRegistrationStatus()
Whether the CA certificate is configured for auto registration of device certificates.
|
String |
getCaCertificatePem()
The certificate data in PEM format.
|
String |
getCertificateMode()
The mode of the CA.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getRegistrationConfig()
Information about the registration configuration.
|
Object |
getRemoveAutoRegistration()
If true, removes auto registration.
|
String |
getStatus()
The status of the CA certificate.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getVerificationCertificatePem()
The private key verification certificate.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAutoRegistrationStatus(String value)
Whether the CA certificate is configured for auto registration of device certificates.
|
void |
setCaCertificatePem(String value)
The certificate data in PEM format.
|
void |
setCertificateMode(String value)
The mode of the CA.
|
void |
setRegistrationConfig(CfnCACertificate.RegistrationConfigProperty value)
Information about the registration configuration.
|
void |
setRegistrationConfig(IResolvable value)
Information about the registration configuration.
|
void |
setRemoveAutoRegistration(Boolean value)
If true, removes auto registration.
|
void |
setRemoveAutoRegistration(IResolvable value)
If true, removes auto registration.
|
void |
setStatus(String value)
The status of the CA certificate.
|
void |
setVerificationCertificatePem(String value)
The private key verification certificate.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCACertificate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCACertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCACertificate(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnCACertificateProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
{ "Fn::GetAtt": ["MyCACertificate", "Arn"] }
A value similar to the following is returned:
arn:aws:iot:us-east-1:123456789012:cacert/a6be6b84559801927e35a8f901fae08b5971d78d1562e29504ff9663b276a5f5
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getCaCertificatePem()
@Stability(value=Stable)
public void setCaCertificatePem(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getStatus()
Valid values are "ACTIVE" and "INACTIVE".
@Stability(value=Stable)
public void setStatus(@NotNull
String value)
Valid values are "ACTIVE" and "INACTIVE".
@Stability(value=Stable) @Nullable public String getAutoRegistrationStatus()
Valid values are "ENABLE" and "DISABLE".
@Stability(value=Stable)
public void setAutoRegistrationStatus(@Nullable
String value)
Valid values are "ENABLE" and "DISABLE".
@Stability(value=Stable) @Nullable public String getCertificateMode()
All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see certificate mode .
Valid values are "DEFAULT" and "SNI_ONLY".
@Stability(value=Stable)
public void setCertificateMode(@Nullable
String value)
All the device certificates that are registered using this CA will be registered in the same mode as the CA. For more information about certificate mode for device certificates, see certificate mode .
Valid values are "DEFAULT" and "SNI_ONLY".
@Stability(value=Stable) @Nullable public Object getRegistrationConfig()
@Stability(value=Stable)
public void setRegistrationConfig(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setRegistrationConfig(@Nullable
CfnCACertificate.RegistrationConfigProperty value)
@Stability(value=Stable) @Nullable public Object getRemoveAutoRegistration()
@Stability(value=Stable)
public void setRemoveAutoRegistration(@Nullable
Boolean value)
@Stability(value=Stable)
public void setRemoveAutoRegistration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getVerificationCertificatePem()
@Stability(value=Stable)
public void setVerificationCertificatePem(@Nullable
String value)
Copyright © 2023. All rights reserved.