Class CfnProvisioningTemplate.Builder

java.lang.Object
software.amazon.awscdk.services.iot.CfnProvisioningTemplate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProvisioningTemplate>
Enclosing class:
CfnProvisioningTemplate

@Stability(Stable) public static final class CfnProvisioningTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnProvisioningTemplate>
A fluent builder for CfnProvisioningTemplate.
  • Method Details

    • create

      @Stability(Stable) public static CfnProvisioningTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnProvisioningTemplate.Builder.
    • provisioningRoleArn

      @Stability(Stable) public CfnProvisioningTemplate.Builder provisioningRoleArn(String provisioningRoleArn)
      The role ARN for the role associated with the fleet provisioning template.

      This IoT role grants permission to provision a device.

      Parameters:
      provisioningRoleArn - The role ARN for the role associated with the fleet provisioning template. This parameter is required.
      Returns:
      this
    • templateBody

      @Stability(Stable) public CfnProvisioningTemplate.Builder templateBody(String templateBody)
      The JSON formatted contents of the fleet provisioning template version.

      Parameters:
      templateBody - The JSON formatted contents of the fleet provisioning template version. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnProvisioningTemplate.Builder description(String description)
      The description of the fleet provisioning template.

      Parameters:
      description - The description of the fleet provisioning template. This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public CfnProvisioningTemplate.Builder enabled(Boolean enabled)
      True to enable the fleet provisioning template, otherwise false.

      Parameters:
      enabled - True to enable the fleet provisioning template, otherwise false. This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public CfnProvisioningTemplate.Builder enabled(IResolvable enabled)
      True to enable the fleet provisioning template, otherwise false.

      Parameters:
      enabled - True to enable the fleet provisioning template, otherwise false. This parameter is required.
      Returns:
      this
    • preProvisioningHook

      @Stability(Stable) public CfnProvisioningTemplate.Builder preProvisioningHook(IResolvable preProvisioningHook)
      Creates a pre-provisioning hook template.

      Parameters:
      preProvisioningHook - Creates a pre-provisioning hook template. This parameter is required.
      Returns:
      this
    • preProvisioningHook

      @Stability(Stable) public CfnProvisioningTemplate.Builder preProvisioningHook(CfnProvisioningTemplate.ProvisioningHookProperty preProvisioningHook)
      Creates a pre-provisioning hook template.

      Parameters:
      preProvisioningHook - Creates a pre-provisioning hook template. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnProvisioningTemplate.Builder tags(List<? extends CfnTag> tags)
      Metadata that can be used to manage the fleet provisioning template.

      Parameters:
      tags - Metadata that can be used to manage the fleet provisioning template. This parameter is required.
      Returns:
      this
    • templateName

      @Stability(Stable) public CfnProvisioningTemplate.Builder templateName(String templateName)
      The name of the fleet provisioning template.

      Parameters:
      templateName - The name of the fleet provisioning template. This parameter is required.
      Returns:
      this
    • templateType

      @Stability(Stable) public CfnProvisioningTemplate.Builder templateType(String templateType)
      The type of the provisioning template.

      Parameters:
      templateType - The type of the provisioning template. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnProvisioningTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnProvisioningTemplate>
      Returns:
      a newly built instance of CfnProvisioningTemplate.