@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.871Z") @Stability(value=Stable) 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.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| 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 |
|---|---|
|
CfnProvisioningTemplate(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrTemplateArn()
The ARN that identifies the provisioning template.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The description of the fleet provisioning template.
|
Object |
getEnabled()
True to enable the fleet provisioning template, otherwise false.
|
Object |
getPreProvisioningHook()
Creates a pre-provisioning hook template.
|
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.
|
String |
getTemplateBody()
The JSON formatted contents of the fleet provisioning template version.
|
String |
getTemplateName()
The name of the fleet provisioning template.
|
String |
getTemplateType()
`AWS::IoT::ProvisioningTemplate.TemplateType`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The description of the fleet provisioning template.
|
void |
setEnabled(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(String value)
The role ARN for the role associated with the fleet provisioning template.
|
void |
setTemplateBody(String value)
The JSON formatted contents of the fleet provisioning template version.
|
void |
setTemplateName(String value)
The name of the fleet provisioning template.
|
void |
setTemplateType(String value)
`AWS::IoT::ProvisioningTemplate.TemplateType`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnProvisioningTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@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 getAttrTemplateArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getProvisioningRoleArn()
This IoT role grants permission to provision a device.
@Stability(value=Stable)
public void setProvisioningRoleArn(@NotNull
String value)
This IoT role grants permission to provision a device.
@Stability(value=Stable) @NotNull public String getTemplateBody()
@Stability(value=Stable)
public void setTemplateBody(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEnabled()
@Stability(value=Stable)
public void setEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getPreProvisioningHook()
@Stability(value=Stable)
public void setPreProvisioningHook(@Nullable
CfnProvisioningTemplate.ProvisioningHookProperty value)
@Stability(value=Stable)
public void setPreProvisioningHook(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getTemplateName()
@Stability(value=Stable)
public void setTemplateName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getTemplateType()
@Stability(value=Stable)
public void setTemplateType(@Nullable
String value)
Copyright © 2022. All rights reserved.