Class CfnProvisioningTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:02.984Z") @Stability(Stable) public class CfnProvisioningTemplate extends CfnResource implements IInspectable, ITaggable
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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnProvisioningTemplate

      protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnProvisioningTemplate

      protected CfnProvisioningTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnProvisioningTemplate

      @Stability(Stable) public CfnProvisioningTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnProvisioningTemplateProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrTemplateArn

      @Stability(Stable) @NotNull public String getAttrTemplateArn()
      The ARN that identifies the provisioning template.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getProvisioningRoleArn

      @Stability(Stable) @NotNull public String getProvisioningRoleArn()
      The role ARN for the role associated with the fleet provisioning template.
    • setProvisioningRoleArn

      @Stability(Stable) public void setProvisioningRoleArn(@NotNull String value)
      The role ARN for the role associated with the fleet provisioning template.
    • getTemplateBody

      @Stability(Stable) @NotNull public String getTemplateBody()
      The JSON formatted contents of the fleet provisioning template version.
    • setTemplateBody

      @Stability(Stable) public void setTemplateBody(@NotNull String value)
      The JSON formatted contents of the fleet provisioning template version.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the fleet provisioning template.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the fleet provisioning template.
    • getEnabled

      @Stability(Stable) @Nullable public Object getEnabled()
      True to enable the fleet provisioning template, otherwise false.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable Boolean value)
      True to enable the fleet provisioning template, otherwise false.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable IResolvable value)
      True to enable the fleet provisioning template, otherwise false.
    • getPreProvisioningHook

      @Stability(Stable) @Nullable public Object getPreProvisioningHook()
      Creates a pre-provisioning hook template.
    • setPreProvisioningHook

      @Stability(Stable) public void setPreProvisioningHook(@Nullable IResolvable value)
      Creates a pre-provisioning hook template.
    • setPreProvisioningHook

      @Stability(Stable) public void setPreProvisioningHook(@Nullable CfnProvisioningTemplate.ProvisioningHookProperty value)
      Creates a pre-provisioning hook template.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Metadata that can be used to manage the fleet provisioning template.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Metadata that can be used to manage the fleet provisioning template.
    • getTemplateName

      @Stability(Stable) @Nullable public String getTemplateName()
      The name of the fleet provisioning template.
    • setTemplateName

      @Stability(Stable) public void setTemplateName(@Nullable String value)
      The name of the fleet provisioning template.
    • getTemplateType

      @Stability(Stable) @Nullable public String getTemplateType()
      The type of the provisioning template.
    • setTemplateType

      @Stability(Stable) public void setTemplateType(@Nullable String value)
      The type of the provisioning template.