create_provisioning_template_version

IoT.Client.create_provisioning_template_version(**kwargs)

Creates a new version of a provisioning template.

Requires permission to access the CreateProvisioningTemplateVersion action.

See also: AWS API Documentation

Request Syntax

response = client.create_provisioning_template_version(
    templateName='string',
    templateBody='string',
    setAsDefault=True|False
)
Parameters
  • templateName (string) --

    [REQUIRED]

    The name of the provisioning template.

  • templateBody (string) --

    [REQUIRED]

    The JSON formatted contents of the provisioning template.

  • setAsDefault (boolean) -- Sets a fleet provision template version as the default version.
Return type

dict

Returns

Response Syntax

{
    'templateArn': 'string',
    'templateName': 'string',
    'versionId': 123,
    'isDefaultVersion': True|False
}

Response Structure

  • (dict) --

    • templateArn (string) --

      The ARN that identifies the provisioning template.

    • templateName (string) --

      The name of the provisioning template.

    • versionId (integer) --

      The version of the provisioning template.

    • isDefaultVersion (boolean) --

      True if the provisioning template version is the default version, otherwise false.

Exceptions

  • IoT.Client.exceptions.VersionsLimitExceededException
  • IoT.Client.exceptions.InternalFailureException
  • IoT.Client.exceptions.InvalidRequestException
  • IoT.Client.exceptions.ThrottlingException
  • IoT.Client.exceptions.ResourceNotFoundException
  • IoT.Client.exceptions.UnauthorizedException
  • IoT.Client.exceptions.ConflictingResourceUpdateException