create_provisioning_template
(**kwargs)¶Creates a provisioning template.
Requires permission to access the CreateProvisioningTemplate action.
See also: AWS API Documentation
Request Syntax
response = client.create_provisioning_template(
templateName='string',
description='string',
templateBody='string',
enabled=True|False,
provisioningRoleArn='string',
preProvisioningHook={
'payloadVersion': 'string',
'targetArn': 'string'
},
tags=[
{
'Key': 'string',
'Value': 'string'
},
],
type='FLEET_PROVISIONING'|'JITP'
)
[REQUIRED]
The name of the provisioning template.
[REQUIRED]
The JSON formatted contents of the provisioning template.
[REQUIRED]
The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.
Creates a pre-provisioning hook template. Only supports template of type FLEET_PROVISIONING
. For more information about provisioning template types, see type.
The payload that was sent to the target function.
Note: Only Lambda functions are currently supported.
The ARN of the target function.
Note: Only Lambda functions are currently supported.
Metadata which can be used to manage the provisioning template.
Note
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
A set of key/value pairs that are used to manage the resource.
The tag's key.
The tag's value.
FLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.dict
Response Syntax
{
'templateArn': 'string',
'templateName': 'string',
'defaultVersionId': 123
}
Response Structure
(dict) --
templateArn (string) --
The ARN that identifies the provisioning template.
templateName (string) --
The name of the provisioning template.
defaultVersionId (integer) --
The default version of the provisioning template.
Exceptions
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.LimitExceededException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ResourceAlreadyExistsException