create_project
(**kwargs)¶Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.
See also: AWS API Documentation
Request Syntax
response = client.create_project(
projectName='string',
description='string',
placementTemplate={
'defaultAttributes': {
'string': 'string'
},
'deviceTemplates': {
'string': {
'deviceType': 'string',
'callbackOverrides': {
'string': 'string'
}
}
}
},
tags={
'string': 'string'
}
)
[REQUIRED]
The name of the project to create.
The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides
for the device templates using the UpdateProject
API.
The default attributes (key/value pairs) to be applied to all placements using this template.
An object specifying the DeviceTemplate for all placements using this ( PlacementTemplate ) template.
An object representing a device for a placement template (see PlacementTemplate ).
The device type, which currently must be "button"
.
An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.
Optional tags (metadata key/value pairs) to be associated with the project. For example, { {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging Strategies.
dict
Response Syntax
{}
Response Structure
Exceptions
IoT1ClickProjects.Client.exceptions.InternalFailureException
IoT1ClickProjects.Client.exceptions.InvalidRequestException
IoT1ClickProjects.Client.exceptions.ResourceConflictException