{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.iot1clickprojects#AWSIoT1ClickProjects": { "type": "service", "version": "2018-05-14", "operations": [ { "target": "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacement" }, { "target": "com.amazonaws.iot1clickprojects#CreatePlacement" }, { "target": "com.amazonaws.iot1clickprojects#CreateProject" }, { "target": "com.amazonaws.iot1clickprojects#DeletePlacement" }, { "target": "com.amazonaws.iot1clickprojects#DeleteProject" }, { "target": "com.amazonaws.iot1clickprojects#DescribePlacement" }, { "target": "com.amazonaws.iot1clickprojects#DescribeProject" }, { "target": "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacement" }, { "target": "com.amazonaws.iot1clickprojects#GetDevicesInPlacement" }, { "target": "com.amazonaws.iot1clickprojects#ListPlacements" }, { "target": "com.amazonaws.iot1clickprojects#ListProjects" }, { "target": "com.amazonaws.iot1clickprojects#ListTagsForResource" }, { "target": "com.amazonaws.iot1clickprojects#TagResource" }, { "target": "com.amazonaws.iot1clickprojects#UntagResource" }, { "target": "com.amazonaws.iot1clickprojects#UpdatePlacement" }, { "target": "com.amazonaws.iot1clickprojects#UpdateProject" } ], "traits": { "aws.api#service": { "sdkId": "IoT 1Click Projects", "arnNamespace": "iot1click", "cloudFormationName": "IoT1Click", "cloudTrailEventSource": "iot1clickprojects.amazonaws.com", "endpointPrefix": "projects.iot1click" }, "aws.auth#sigv4": { "name": "iot1click" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

The AWS IoT 1-Click Projects API Reference

", "smithy.api#title": "AWS IoT 1-Click Projects Service" } }, "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceConflictException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Associates a physical device with a placement.

", "smithy.api#http": { "method": "PUT", "uri": "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacementRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project containing the placement in which to associate the device.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement in which to associate the device.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "deviceId": { "target": "com.amazonaws.iot1clickprojects#DeviceId", "traits": { "smithy.api#documentation": "

The ID of the physical device to be associated with the given placement in the project.\n Note that a mandatory 4 character prefix is required for all deviceId\n values.

", "smithy.api#required": {} } }, "deviceTemplateName": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplateName", "traits": { "smithy.api#documentation": "

The device template name to associate with the device ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacementResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#AttributeDefaultValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 800 } } }, "com.amazonaws.iot1clickprojects#AttributeName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.iot1clickprojects#AttributeValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 800 } } }, "com.amazonaws.iot1clickprojects#Code": { "type": "string" }, "com.amazonaws.iot1clickprojects#CreatePlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#CreatePlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#CreatePlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceConflictException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Creates an empty placement.

", "smithy.api#http": { "method": "POST", "uri": "/projects/{projectName}/placements", "code": 200 } } }, "com.amazonaws.iot1clickprojects#CreatePlacementRequest": { "type": "structure", "members": { "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement to be created.

", "smithy.api#required": {} } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project in which to create the placement.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "attributes": { "target": "com.amazonaws.iot1clickprojects#PlacementAttributeMap", "traits": { "smithy.api#documentation": "

Optional user-defined key/value pairs providing contextual data (such as location or\n function) for the placement.

" } } } }, "com.amazonaws.iot1clickprojects#CreatePlacementResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#CreateProject": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#CreateProjectRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#CreateProjectResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceConflictException" } ], "traits": { "smithy.api#documentation": "

Creates an empty project with a placement template. A project contains zero or more\n placements that adhere to the placement template defined in the project.

", "smithy.api#http": { "method": "POST", "uri": "/projects", "code": 200 } } }, "com.amazonaws.iot1clickprojects#CreateProjectRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project to create.

", "smithy.api#required": {} } }, "description": { "target": "com.amazonaws.iot1clickprojects#Description", "traits": { "smithy.api#documentation": "

An optional description for the project.

" } }, "placementTemplate": { "target": "com.amazonaws.iot1clickprojects#PlacementTemplate", "traits": { "smithy.api#documentation": "

The schema defining the placement to be created. A placement template defines placement\n default attributes and device templates. You cannot add or remove device templates after the\n project has been created. However, you can update callbackOverrides for the\n device templates using the UpdateProject API.

" } }, "tags": { "target": "com.amazonaws.iot1clickprojects#TagMap", "traits": { "smithy.api#documentation": "

Optional tags (metadata key/value pairs) to be associated with the project. For example,\n { {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS Tagging\n Strategies.

" } } } }, "com.amazonaws.iot1clickprojects#CreateProjectResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#DefaultPlacementAttributeMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#AttributeName" }, "value": { "target": "com.amazonaws.iot1clickprojects#AttributeDefaultValue" } }, "com.amazonaws.iot1clickprojects#DeletePlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#DeletePlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#DeletePlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" }, { "target": "com.amazonaws.iot1clickprojects#TooManyRequestsException" } ], "traits": { "smithy.api#documentation": "

Deletes a placement. To delete a placement, it must not have any devices associated with\n it.

\n \n

When you delete a placement, all associated data becomes irretrievable.

\n
", "smithy.api#http": { "method": "DELETE", "uri": "/projects/{projectName}/placements/{placementName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#DeletePlacementRequest": { "type": "structure", "members": { "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the empty placement to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The project containing the empty placement to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DeletePlacementResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#DeleteProject": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#DeleteProjectRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#DeleteProjectResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" }, { "target": "com.amazonaws.iot1clickprojects#TooManyRequestsException" } ], "traits": { "smithy.api#documentation": "

Deletes a project. To delete a project, it must not have any placements associated with\n it.

\n \n

When you delete a project, all associated data becomes irretrievable.

\n
", "smithy.api#http": { "method": "DELETE", "uri": "/projects/{projectName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#DeleteProjectRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the empty project to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DeleteProjectResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#DescribePlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#DescribePlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#DescribePlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Describes a placement in a project.

", "smithy.api#http": { "method": "GET", "uri": "/projects/{projectName}/placements/{placementName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#DescribePlacementRequest": { "type": "structure", "members": { "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement within a project.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The project containing the placement to be described.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DescribePlacementResponse": { "type": "structure", "members": { "placement": { "target": "com.amazonaws.iot1clickprojects#PlacementDescription", "traits": { "smithy.api#documentation": "

An object describing the placement.

", "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DescribeProject": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#DescribeProjectRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#DescribeProjectResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Returns an object describing a project.

", "smithy.api#http": { "method": "GET", "uri": "/projects/{projectName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#DescribeProjectRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project to be described.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DescribeProjectResponse": { "type": "structure", "members": { "project": { "target": "com.amazonaws.iot1clickprojects#ProjectDescription", "traits": { "smithy.api#documentation": "

An object describing the project.

", "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#Description": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 500 } } }, "com.amazonaws.iot1clickprojects#DeviceCallbackKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.iot1clickprojects#DeviceCallbackOverrideMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#DeviceCallbackKey" }, "value": { "target": "com.amazonaws.iot1clickprojects#DeviceCallbackValue" } }, "com.amazonaws.iot1clickprojects#DeviceCallbackValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.iot1clickprojects#DeviceId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 32 } } }, "com.amazonaws.iot1clickprojects#DeviceMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplateName" }, "value": { "target": "com.amazonaws.iot1clickprojects#DeviceId" } }, "com.amazonaws.iot1clickprojects#DeviceTemplate": { "type": "structure", "members": { "deviceType": { "target": "com.amazonaws.iot1clickprojects#DeviceType", "traits": { "smithy.api#documentation": "

The device type, which currently must be \"button\".

" } }, "callbackOverrides": { "target": "com.amazonaws.iot1clickprojects#DeviceCallbackOverrideMap", "traits": { "smithy.api#documentation": "

An optional Lambda function to invoke instead of the default Lambda function provided by\n the placement template.

" } } }, "traits": { "smithy.api#documentation": "

An object representing a device for a placement template (see PlacementTemplate).

" } }, "com.amazonaws.iot1clickprojects#DeviceTemplateMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplateName" }, "value": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplate" } }, "com.amazonaws.iot1clickprojects#DeviceTemplateName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot1clickprojects#DeviceType": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 128 } } }, "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" }, { "target": "com.amazonaws.iot1clickprojects#TooManyRequestsException" } ], "traits": { "smithy.api#documentation": "

Removes a physical device from a placement.

", "smithy.api#http": { "method": "DELETE", "uri": "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacementRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project that contains the placement.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement that the device should be removed from.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "deviceTemplateName": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplateName", "traits": { "smithy.api#documentation": "

The device ID that should be removed from the placement.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacementResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#GetDevicesInPlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#GetDevicesInPlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#GetDevicesInPlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Returns an object enumerating the devices in a placement.

", "smithy.api#http": { "method": "GET", "uri": "/projects/{projectName}/placements/{placementName}/devices", "code": 200 } } }, "com.amazonaws.iot1clickprojects#GetDevicesInPlacementRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project containing the placement.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement to get the devices from.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#GetDevicesInPlacementResponse": { "type": "structure", "members": { "devices": { "target": "com.amazonaws.iot1clickprojects#DeviceMap", "traits": { "smithy.api#documentation": "

An object containing the devices (zero or more) within the placement.

", "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#InternalFailureException": { "type": "structure", "members": { "code": { "target": "com.amazonaws.iot1clickprojects#Code", "traits": { "smithy.api#required": {} } }, "message": { "target": "com.amazonaws.iot1clickprojects#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.iot1clickprojects#InvalidRequestException": { "type": "structure", "members": { "code": { "target": "com.amazonaws.iot1clickprojects#Code", "traits": { "smithy.api#required": {} } }, "message": { "target": "com.amazonaws.iot1clickprojects#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.iot1clickprojects#ListPlacements": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#ListPlacementsRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#ListPlacementsResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Lists the placement(s) of a project.

", "smithy.api#http": { "method": "GET", "uri": "/projects/{projectName}/placements", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "items": "placements", "pageSize": "maxResults" } } }, "com.amazonaws.iot1clickprojects#ListPlacementsRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The project containing the placements to be listed.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.iot1clickprojects#NextToken", "traits": { "smithy.api#documentation": "

The token to retrieve the next set of results.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "com.amazonaws.iot1clickprojects#MaxResults", "traits": { "smithy.api#documentation": "

The maximum number of results to return per request. If not set, a default value of 100 is\n used.

", "smithy.api#httpQuery": "maxResults" } } } }, "com.amazonaws.iot1clickprojects#ListPlacementsResponse": { "type": "structure", "members": { "placements": { "target": "com.amazonaws.iot1clickprojects#PlacementSummaryList", "traits": { "smithy.api#documentation": "

An object listing the requested placements.

", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.iot1clickprojects#NextToken", "traits": { "smithy.api#documentation": "

The token used to retrieve the next set of results - will be effectively empty if there\n are no further results.

" } } } }, "com.amazonaws.iot1clickprojects#ListProjects": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#ListProjectsRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#ListProjectsResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" } ], "traits": { "smithy.api#documentation": "

Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

", "smithy.api#http": { "method": "GET", "uri": "/projects", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "items": "projects", "pageSize": "maxResults" } } }, "com.amazonaws.iot1clickprojects#ListProjectsRequest": { "type": "structure", "members": { "nextToken": { "target": "com.amazonaws.iot1clickprojects#NextToken", "traits": { "smithy.api#documentation": "

The token to retrieve the next set of results.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "com.amazonaws.iot1clickprojects#MaxResults", "traits": { "smithy.api#documentation": "

The maximum number of results to return per request. If not set, a default value of 100 is\n used.

", "smithy.api#httpQuery": "maxResults" } } } }, "com.amazonaws.iot1clickprojects#ListProjectsResponse": { "type": "structure", "members": { "projects": { "target": "com.amazonaws.iot1clickprojects#ProjectSummaryList", "traits": { "smithy.api#documentation": "

An object containing the list of projects.

", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.iot1clickprojects#NextToken", "traits": { "smithy.api#documentation": "

The token used to retrieve the next set of results - will be effectively empty if there\n are no further results.

" } } } }, "com.amazonaws.iot1clickprojects#ListTagsForResource": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#ListTagsForResourceRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#ListTagsForResourceResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Lists the tags (metadata key/value pairs) which you have assigned to the resource.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#ListTagsForResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.iot1clickprojects#ProjectArn", "traits": { "smithy.api#documentation": "

The ARN of the resource whose tags you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#ListTagsForResourceResponse": { "type": "structure", "members": { "tags": { "target": "com.amazonaws.iot1clickprojects#TagMap", "traits": { "smithy.api#documentation": "

The tags (metadata key/value pairs) which you have assigned to the resource.

" } } } }, "com.amazonaws.iot1clickprojects#MaxResults": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 250 } } }, "com.amazonaws.iot1clickprojects#Message": { "type": "string" }, "com.amazonaws.iot1clickprojects#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 } } }, "com.amazonaws.iot1clickprojects#PlacementAttributeMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#AttributeName" }, "value": { "target": "com.amazonaws.iot1clickprojects#AttributeValue" } }, "com.amazonaws.iot1clickprojects#PlacementDescription": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project containing the placement.

", "smithy.api#required": {} } }, "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement.

", "smithy.api#required": {} } }, "attributes": { "target": "com.amazonaws.iot1clickprojects#PlacementAttributeMap", "traits": { "smithy.api#documentation": "

The user-defined attributes associated with the placement.

", "smithy.api#required": {} } }, "createdDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the placement was initially created, in UNIX epoch time format.

", "smithy.api#required": {} } }, "updatedDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the placement was last updated, in UNIX epoch time format. If the placement\n was not updated, then createdDate and updatedDate are the\n same.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An object describing a project's placement.

" } }, "com.amazonaws.iot1clickprojects#PlacementName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot1clickprojects#PlacementSummary": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project containing the placement.

", "smithy.api#required": {} } }, "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement being summarized.

", "smithy.api#required": {} } }, "createdDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the placement was originally created, in UNIX epoch time format.

", "smithy.api#required": {} } }, "updatedDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the placement was last updated, in UNIX epoch time format. If the placement\n was not updated, then createdDate and updatedDate are the\n same.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An object providing summary information for a particular placement.

" } }, "com.amazonaws.iot1clickprojects#PlacementSummaryList": { "type": "list", "member": { "target": "com.amazonaws.iot1clickprojects#PlacementSummary" } }, "com.amazonaws.iot1clickprojects#PlacementTemplate": { "type": "structure", "members": { "defaultAttributes": { "target": "com.amazonaws.iot1clickprojects#DefaultPlacementAttributeMap", "traits": { "smithy.api#documentation": "

The default attributes (key/value pairs) to be applied to all placements using this\n template.

" } }, "deviceTemplates": { "target": "com.amazonaws.iot1clickprojects#DeviceTemplateMap", "traits": { "smithy.api#documentation": "

An object specifying the DeviceTemplate for all placements using this\n (PlacementTemplate) template.

" } } }, "traits": { "smithy.api#documentation": "

An object defining the template for a placement.

" } }, "com.amazonaws.iot1clickprojects#ProjectArn": { "type": "string", "traits": { "smithy.api#pattern": "^arn:aws:iot1click:[A-Za-z0-9_/.-]{0,63}:\\d+:projects/[0-9A-Za-z_-]{1,128}$" } }, "com.amazonaws.iot1clickprojects#ProjectDescription": { "type": "structure", "members": { "arn": { "target": "com.amazonaws.iot1clickprojects#ProjectArn", "traits": { "smithy.api#documentation": "

The ARN of the project.

" } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project for which to obtain information from.

", "smithy.api#required": {} } }, "description": { "target": "com.amazonaws.iot1clickprojects#Description", "traits": { "smithy.api#documentation": "

The description of the project.

" } }, "createdDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the project was originally created, in UNIX epoch time format.

", "smithy.api#required": {} } }, "updatedDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the project was last updated, in UNIX epoch time format. If the project was\n not updated, then createdDate and updatedDate are the same.

", "smithy.api#required": {} } }, "placementTemplate": { "target": "com.amazonaws.iot1clickprojects#PlacementTemplate", "traits": { "smithy.api#documentation": "

An object describing the project's placement specifications.

" } }, "tags": { "target": "com.amazonaws.iot1clickprojects#TagMap", "traits": { "smithy.api#documentation": "

The tags (metadata key/value pairs) associated with the project.

" } } }, "traits": { "smithy.api#documentation": "

An object providing detailed information for a particular project associated with an AWS\n account and region.

" } }, "com.amazonaws.iot1clickprojects#ProjectName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[0-9A-Za-z_-]+$" } }, "com.amazonaws.iot1clickprojects#ProjectSummary": { "type": "structure", "members": { "arn": { "target": "com.amazonaws.iot1clickprojects#ProjectArn", "traits": { "smithy.api#documentation": "

The ARN of the project.

" } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project being summarized.

", "smithy.api#required": {} } }, "createdDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the project was originally created, in UNIX epoch time format.

", "smithy.api#required": {} } }, "updatedDate": { "target": "com.amazonaws.iot1clickprojects#Time", "traits": { "smithy.api#documentation": "

The date when the project was last updated, in UNIX epoch time format. If the project was\n not updated, then createdDate and updatedDate are the same.

", "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.iot1clickprojects#TagMap", "traits": { "smithy.api#documentation": "

The tags (metadata key/value pairs) associated with the project.

" } } }, "traits": { "smithy.api#documentation": "

An object providing summary information for a particular project for an associated AWS\n account and region.

" } }, "com.amazonaws.iot1clickprojects#ProjectSummaryList": { "type": "list", "member": { "target": "com.amazonaws.iot1clickprojects#ProjectSummary" } }, "com.amazonaws.iot1clickprojects#ResourceConflictException": { "type": "structure", "members": { "code": { "target": "com.amazonaws.iot1clickprojects#Code", "traits": { "smithy.api#required": {} } }, "message": { "target": "com.amazonaws.iot1clickprojects#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.iot1clickprojects#ResourceNotFoundException": { "type": "structure", "members": { "code": { "target": "com.amazonaws.iot1clickprojects#Code", "traits": { "smithy.api#required": {} } }, "message": { "target": "com.amazonaws.iot1clickprojects#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.iot1clickprojects#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$" } }, "com.amazonaws.iot1clickprojects#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.iot1clickprojects#TagKey" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.iot1clickprojects#TagMap": { "type": "map", "key": { "target": "com.amazonaws.iot1clickprojects#TagKey" }, "value": { "target": "com.amazonaws.iot1clickprojects#TagValue" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.iot1clickprojects#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#TagResourceRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that can be\n used to manage a resource. For more information, see AWS Tagging\n Strategies.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#TagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.iot1clickprojects#ProjectArn", "traits": { "smithy.api#documentation": "

The ARN of the resouce for which tag(s) should be added or modified.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.iot1clickprojects#TagMap", "traits": { "smithy.api#documentation": "

The new or modifying tag(s) for the resource. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per\n resource.

", "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#TagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.iot1clickprojects#Time": { "type": "timestamp" }, "com.amazonaws.iot1clickprojects#TooManyRequestsException": { "type": "structure", "members": { "code": { "target": "com.amazonaws.iot1clickprojects#Code", "traits": { "smithy.api#required": {} } }, "message": { "target": "com.amazonaws.iot1clickprojects#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.iot1clickprojects#UntagResource": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#UntagResourceRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Removes one or more tags (metadata key/value pairs) from a resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#UntagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.iot1clickprojects#ProjectArn", "traits": { "smithy.api#documentation": "

The ARN of the resource whose tag you want to remove.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "tagKeys": { "target": "com.amazonaws.iot1clickprojects#TagKeyList", "traits": { "smithy.api#documentation": "

The keys of those tags which you want to remove.

", "smithy.api#httpQuery": "tagKeys", "smithy.api#required": {} } } } }, "com.amazonaws.iot1clickprojects#UntagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#UpdatePlacement": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#UpdatePlacementRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#UpdatePlacementResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" }, { "target": "com.amazonaws.iot1clickprojects#TooManyRequestsException" } ], "traits": { "smithy.api#documentation": "

Updates a placement with the given attributes. To clear an attribute, pass an empty value\n (i.e., \"\").

", "smithy.api#http": { "method": "PUT", "uri": "/projects/{projectName}/placements/{placementName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#UpdatePlacementRequest": { "type": "structure", "members": { "placementName": { "target": "com.amazonaws.iot1clickprojects#PlacementName", "traits": { "smithy.api#documentation": "

The name of the placement to update.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project containing the placement to be updated.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "attributes": { "target": "com.amazonaws.iot1clickprojects#PlacementAttributeMap", "traits": { "smithy.api#documentation": "

The user-defined object of attributes used to update the placement. The maximum number of\n key/value pairs is 50.

" } } } }, "com.amazonaws.iot1clickprojects#UpdatePlacementResponse": { "type": "structure", "members": {} }, "com.amazonaws.iot1clickprojects#UpdateProject": { "type": "operation", "input": { "target": "com.amazonaws.iot1clickprojects#UpdateProjectRequest" }, "output": { "target": "com.amazonaws.iot1clickprojects#UpdateProjectResponse" }, "errors": [ { "target": "com.amazonaws.iot1clickprojects#InternalFailureException" }, { "target": "com.amazonaws.iot1clickprojects#InvalidRequestException" }, { "target": "com.amazonaws.iot1clickprojects#ResourceNotFoundException" }, { "target": "com.amazonaws.iot1clickprojects#TooManyRequestsException" } ], "traits": { "smithy.api#documentation": "

Updates a project associated with your AWS account and region. With the exception of\n device template names, you can pass just the values that need to be updated because the update\n request will change only the values that are provided. To clear a value, pass the empty string\n (i.e., \"\").

", "smithy.api#http": { "method": "PUT", "uri": "/projects/{projectName}", "code": 200 } } }, "com.amazonaws.iot1clickprojects#UpdateProjectRequest": { "type": "structure", "members": { "projectName": { "target": "com.amazonaws.iot1clickprojects#ProjectName", "traits": { "smithy.api#documentation": "

The name of the project to be updated.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "description": { "target": "com.amazonaws.iot1clickprojects#Description", "traits": { "smithy.api#documentation": "

An optional user-defined description for the project.

" } }, "placementTemplate": { "target": "com.amazonaws.iot1clickprojects#PlacementTemplate", "traits": { "smithy.api#documentation": "

An object defining the project update. Once a project has been created, you cannot add\n device template names to the project. However, for a given placementTemplate, you\n can update the associated callbackOverrides for the device definition using this\n API.

" } } } }, "com.amazonaws.iot1clickprojects#UpdateProjectResponse": { "type": "structure", "members": {} } } }