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 Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) The description of the fleet provisioning template.True to enable the fleet provisioning template, otherwise false.enabled
(IResolvable enabled) True to enable the fleet provisioning template, otherwise false.preProvisioningHook
(IResolvable preProvisioningHook) Creates a pre-provisioning hook template.preProvisioningHook
(CfnProvisioningTemplate.ProvisioningHookProperty preProvisioningHook) Creates a pre-provisioning hook template.provisioningRoleArn
(String provisioningRoleArn) The role ARN for the role associated with the fleet provisioning template.Metadata that can be used to manage the fleet provisioning template.templateBody
(String templateBody) The JSON formatted contents of the fleet provisioning template version.templateName
(String templateName) The name of the fleet provisioning template.templateType
(String templateType) The type of the provisioning template.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
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
The description of the fleet provisioning template.- Parameters:
description
- The description of the fleet provisioning template. This parameter is required.- Returns:
this
-
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
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
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
The name of the fleet provisioning template.- Parameters:
templateName
- The name of the fleet provisioning template. This parameter is required.- Returns:
this
-
templateType
The type of the provisioning template.- Parameters:
templateType
- The type of the provisioning template. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProvisioningTemplate>
- Returns:
- a newly built instance of
CfnProvisioningTemplate
.
-