@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:36.837Z") public class CfnProvisioningTemplate extends CfnResource implements IInspectable
Creates a fleet provisioning template.
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.*; CfnProvisioningTemplate cfnProvisioningTemplate = CfnProvisioningTemplate.Builder.create(this, "MyCfnProvisioningTemplate") .provisioningRoleArn("provisioningRoleArn") .templateBody("templateBody") // the properties below are optional .description("description") .enabled(false) .preProvisioningHook(ProvisioningHookProperty.builder() .payloadVersion("payloadVersion") .targetArn("targetArn") .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .templateName("templateName") .templateType("templateType") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnProvisioningTemplate.Builder
A fluent builder for
CfnProvisioningTemplate . |
static interface |
CfnProvisioningTemplate.ProvisioningHookProperty
Structure that contains payloadVersion and targetArn.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnProvisioningTemplate(Construct scope,
java.lang.String id,
CfnProvisioningTemplateProps props)
Create a new `AWS::IoT::ProvisioningTemplate`.
|
protected |
CfnProvisioningTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnProvisioningTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrTemplateArn()
The ARN that identifies the provisioning template.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
The description of the fleet provisioning template.
|
java.lang.Object |
getEnabled()
True to enable the fleet provisioning template, otherwise false.
|
java.lang.Object |
getPreProvisioningHook()
Creates a pre-provisioning hook template.
|
java.lang.String |
getProvisioningRoleArn()
The role ARN for the role associated with the fleet provisioning template.
|
TagManager |
getTags()
Metadata that can be used to manage the fleet provisioning template.
|
java.lang.String |
getTemplateBody()
The JSON formatted contents of the fleet provisioning template version.
|
java.lang.String |
getTemplateName()
The name of the fleet provisioning template.
|
java.lang.String |
getTemplateType()
The type of the provisioning template.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
The description of the fleet provisioning template.
|
void |
setEnabled(java.lang.Boolean value)
True to enable the fleet provisioning template, otherwise false.
|
void |
setEnabled(IResolvable value)
True to enable the fleet provisioning template, otherwise false.
|
void |
setPreProvisioningHook(CfnProvisioningTemplate.ProvisioningHookProperty value)
Creates a pre-provisioning hook template.
|
void |
setPreProvisioningHook(IResolvable value)
Creates a pre-provisioning hook template.
|
void |
setProvisioningRoleArn(java.lang.String value)
The role ARN for the role associated with the fleet provisioning template.
|
void |
setTemplateBody(java.lang.String value)
The JSON formatted contents of the fleet provisioning template version.
|
void |
setTemplateName(java.lang.String value)
The name of the fleet provisioning template.
|
void |
setTemplateType(java.lang.String value)
The type of the provisioning template.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnProvisioningTemplate(Construct scope, java.lang.String id, CfnProvisioningTemplateProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrTemplateArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getProvisioningRoleArn()
This IoT role grants permission to provision a device.
public void setProvisioningRoleArn(java.lang.String value)
This IoT role grants permission to provision a device.
public java.lang.String getTemplateBody()
public void setTemplateBody(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.Object getEnabled()
public void setEnabled(java.lang.Boolean value)
public void setEnabled(IResolvable value)
public java.lang.Object getPreProvisioningHook()
public void setPreProvisioningHook(IResolvable value)
public void setPreProvisioningHook(CfnProvisioningTemplate.ProvisioningHookProperty value)
public java.lang.String getTemplateName()
public void setTemplateName(java.lang.String value)
public java.lang.String getTemplateType()
public void setTemplateType(java.lang.String value)