diff --git a/.changes/4bd537a9-f898-4c35-9758-bd3f0b2a5aae.json b/.changes/4bd537a9-f898-4c35-9758-bd3f0b2a5aae.json new file mode 100644 index 00000000000..d068bf14a86 --- /dev/null +++ b/.changes/4bd537a9-f898-4c35-9758-bd3f0b2a5aae.json @@ -0,0 +1,5 @@ +{ + "id": "4bd537a9-f898-4c35-9758-bd3f0b2a5aae", + "type": "misc", + "description": "Remove IoT 1-click services from SDK" +} \ No newline at end of file diff --git a/codegen/aws-sdk-codegen/src/test/kotlin/aws/sdk/kotlin/codegen/EndpointUrlConfigNamesTest.kt b/codegen/aws-sdk-codegen/src/test/kotlin/aws/sdk/kotlin/codegen/EndpointUrlConfigNamesTest.kt index dc24fd7ef40..0867f3c558d 100644 --- a/codegen/aws-sdk-codegen/src/test/kotlin/aws/sdk/kotlin/codegen/EndpointUrlConfigNamesTest.kt +++ b/codegen/aws-sdk-codegen/src/test/kotlin/aws/sdk/kotlin/codegen/EndpointUrlConfigNamesTest.kt @@ -758,16 +758,6 @@ private const val TEST_SUITE_JSON = """ "services_section_name": "iot_jobs_data_plane", "service_envvar_name": "AWS_ENDPOINT_URL_IOT_JOBS_DATA_PLANE" }, - { - "service_id": "IoT 1Click Devices Service", - "services_section_name": "iot_1click_devices_service", - "service_envvar_name": "AWS_ENDPOINT_URL_IOT_1CLICK_DEVICES_SERVICE" - }, - { - "service_id": "IoT 1Click Projects", - "services_section_name": "iot_1click_projects", - "service_envvar_name": "AWS_ENDPOINT_URL_IOT_1CLICK_PROJECTS" - }, { "service_id": "IoTAnalytics", "services_section_name": "iotanalytics", diff --git a/codegen/sdk/aws-models/iot-1click-devices-service.json b/codegen/sdk/aws-models/iot-1click-devices-service.json deleted file mode 100644 index 5f09660ca51..00000000000 --- a/codegen/sdk/aws-models/iot-1click-devices-service.json +++ /dev/null @@ -1,1945 +0,0 @@ -{ - "smithy": "2.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, - "shapes": { - "com.amazonaws.iot1clickdevicesservice#Attributes": { - "type": "structure", - "members": {} - }, - "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCode": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCodeRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCodeResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#ForbiddenException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - } - ], - "traits": { - "smithy.api#documentation": "
Adds device(s) to your account (i.e., claim one or more devices) if and only if you\n received a claim code with the device(s).
", - "smithy.api#http": { - "method": "PUT", - "uri": "/claims/{ClaimCode}", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCodeRequest": { - "type": "structure", - "members": { - "ClaimCode": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The claim code, starting with \"C-\", as provided by the device manufacturer.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCodeResponse": { - "type": "structure", - "members": { - "ClaimCode": { - "target": "com.amazonaws.iot1clickdevicesservice#__stringMin12Max40", - "traits": { - "smithy.api#documentation": "The claim code provided by the device manufacturer.
", - "smithy.api#jsonName": "claimCode" - } - }, - "Total": { - "target": "com.amazonaws.iot1clickdevicesservice#__integer", - "traits": { - "smithy.api#documentation": "The total number of devices associated with the claim code that has been processed in\n the claim request.
", - "smithy.api#jsonName": "total" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#DescribeDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#DescribeDeviceRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#DescribeDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Given a device ID, returns a DescribeDeviceResponse object describing the\n details of the device.
", - "smithy.api#http": { - "method": "GET", - "uri": "/devices/{DeviceId}", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#DescribeDeviceRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#DescribeDeviceResponse": { - "type": "structure", - "members": { - "DeviceDescription": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceDescription", - "traits": { - "smithy.api#documentation": "Device details.
", - "smithy.api#jsonName": "deviceDescription" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#Device": { - "type": "structure", - "members": { - "Attributes": { - "target": "com.amazonaws.iot1clickdevicesservice#Attributes", - "traits": { - "smithy.api#documentation": "The user specified attributes associated with the device for an event.
", - "smithy.api#jsonName": "attributes" - } - }, - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#jsonName": "deviceId" - } - }, - "Type": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The device type, such as \"button\".
", - "smithy.api#jsonName": "type" - } - } - } - }, - "com.amazonaws.iot1clickdevicesservice#DeviceAttributes": { - "type": "map", - "key": { - "target": "com.amazonaws.iot1clickdevicesservice#__string" - }, - "value": { - "target": "com.amazonaws.iot1clickdevicesservice#__string" - }, - "traits": { - "smithy.api#documentation": "\n DeviceAttributes is a string-to-string map specified by the user.
" - } - }, - "com.amazonaws.iot1clickdevicesservice#DeviceDescription": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The ARN of the device.
", - "smithy.api#jsonName": "arn" - } - }, - "Attributes": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceAttributes", - "traits": { - "smithy.api#documentation": "An array of zero or more elements of DeviceAttribute objects providing\n user specified device attributes.
", - "smithy.api#jsonName": "attributes" - } - }, - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#jsonName": "deviceId" - } - }, - "Enabled": { - "target": "com.amazonaws.iot1clickdevicesservice#__boolean", - "traits": { - "smithy.api#documentation": "A Boolean value indicating whether or not the device is enabled.
", - "smithy.api#jsonName": "enabled" - } - }, - "RemainingLife": { - "target": "com.amazonaws.iot1clickdevicesservice#__doubleMin0Max100", - "traits": { - "smithy.api#documentation": "A value between 0 and 1 inclusive, representing the fraction of life remaining for the\n device.
", - "smithy.api#jsonName": "remainingLife" - } - }, - "Type": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The type of the device, such as \"button\".
", - "smithy.api#jsonName": "type" - } - }, - "Tags": { - "target": "com.amazonaws.iot1clickdevicesservice#__mapOf__string", - "traits": { - "smithy.api#documentation": "The tags currently associated with the AWS IoT 1-Click device.
", - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.iot1clickdevicesservice#DeviceEvent": { - "type": "structure", - "members": { - "Device": { - "target": "com.amazonaws.iot1clickdevicesservice#Device", - "traits": { - "smithy.api#documentation": "An object representing the device associated with the event.
", - "smithy.api#jsonName": "device" - } - }, - "StdEvent": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "A serialized JSON object representing the device-type specific event.
", - "smithy.api#jsonName": "stdEvent" - } - } - } - }, - "com.amazonaws.iot1clickdevicesservice#DeviceMethod": { - "type": "structure", - "members": { - "DeviceType": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The type of the device, such as \"button\".
", - "smithy.api#jsonName": "deviceType" - } - }, - "MethodName": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The name of the method applicable to the deviceType.
", - "smithy.api#jsonName": "methodName" - } - } - } - }, - "com.amazonaws.iot1clickdevicesservice#FinalizeDeviceClaim": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#FinalizeDeviceClaimRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#FinalizeDeviceClaimResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#PreconditionFailedException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceConflictException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Given a device ID, finalizes the claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event,\n and finalizing the claim. For a device of type button, a device event can\n be published by simply clicking the device.
\nThe unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.iot1clickdevicesservice#__mapOf__string", - "traits": { - "smithy.api#documentation": "A collection of key/value pairs defining the resource tags. For example, {\n \"tags\": {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS\n Tagging Strategies.
\n \n
", - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#FinalizeDeviceClaimResponse": { - "type": "structure", - "members": { - "State": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The device's final claim state.
", - "smithy.api#jsonName": "state" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ForbiddenException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "403
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The 403 error message returned by the web server.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 403 - } - }, - "com.amazonaws.iot1clickdevicesservice#GetDeviceMethods": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#GetDeviceMethodsRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#GetDeviceMethodsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Given a device ID, returns the invokable methods associated with the device.
", - "smithy.api#http": { - "method": "GET", - "uri": "/devices/{DeviceId}/methods", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#GetDeviceMethodsRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#GetDeviceMethodsResponse": { - "type": "structure", - "members": { - "DeviceMethods": { - "target": "com.amazonaws.iot1clickdevicesservice#__listOfDeviceMethod", - "traits": { - "smithy.api#documentation": "List of available device APIs.
", - "smithy.api#jsonName": "deviceMethods" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#InitiateDeviceClaim": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#InitiateDeviceClaimRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#InitiateDeviceClaimResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceConflictException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Given a device ID, initiates a claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event,\n and finalizing the claim. For a device of type button, a device event can\n be published by simply clicking the device.
\nThe unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#InitiateDeviceClaimResponse": { - "type": "structure", - "members": { - "State": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The device's final claim state.
", - "smithy.api#jsonName": "state" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#InternalFailureException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "500
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The 500 error message returned by the web server.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.iot1clickdevicesservice#InvalidRequestException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "400
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The 400 error message returned by the web server.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - }, - "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethod": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethodRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethodResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#PreconditionFailedException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#RangeNotSatisfiableException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceConflictException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Given a device ID, issues a request to invoke a named device method (with possible\n parameters). See the \"Example POST\" code snippet below.
", - "smithy.api#http": { - "method": "POST", - "uri": "/devices/{DeviceId}/methods", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethodRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "DeviceMethod": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceMethod", - "traits": { - "smithy.api#documentation": "The device method to invoke.
", - "smithy.api#jsonName": "deviceMethod" - } - }, - "DeviceMethodParameters": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "A JSON encoded string containing the device method request parameters.
", - "smithy.api#jsonName": "deviceMethodParameters" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethodResponse": { - "type": "structure", - "members": { - "DeviceMethodResponse": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "A JSON encoded string containing the device method response.
", - "smithy.api#jsonName": "deviceMethodResponse" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#IoT1ClickDevicesService": { - "type": "service", - "version": "2018-05-14", - "operations": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#ClaimDevicesByClaimCode" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#DescribeDevice" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#FinalizeDeviceClaim" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#GetDeviceMethods" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InitiateDeviceClaim" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvokeDeviceMethod" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ListDeviceEvents" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ListDevices" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ListTagsForResource" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#TagResource" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#UnclaimDevice" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#UntagResource" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#UpdateDeviceState" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "IoT 1Click Devices Service", - "arnNamespace": "iot1click", - "cloudFormationName": "IoT1ClickDevicesService", - "cloudTrailEventSource": "iot1clickdevicesservice.amazonaws.com", - "docId": "devices-2018-05-14", - "endpointPrefix": "devices.iot1click" - }, - "aws.auth#sigv4": { - "name": "iot1click" - }, - "aws.protocols#restJson1": {}, - "smithy.api#documentation": "Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.
", - "smithy.api#title": "AWS IoT 1-Click Devices Service", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - }, - true - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] - }, - "smithy.rules#endpointTests": { - "testCases": [ - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" - } - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDeviceEvents": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#ListDeviceEventsRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#ListDeviceEventsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#RangeNotSatisfiableException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Using a device ID, returns a DeviceEventsResponse object containing an\n array of events for the device.
", - "smithy.api#http": { - "method": "GET", - "uri": "/devices/{DeviceId}/events", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDeviceEventsRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "FromTimeStamp": { - "target": "com.amazonaws.iot1clickdevicesservice#__timestampIso8601", - "traits": { - "smithy.api#clientOptional": {}, - "smithy.api#documentation": "The start date for the device event query, in ISO8061 format. For example,\n 2018-03-28T15:45:12.880Z\n
", - "smithy.api#httpQuery": "fromTimeStamp", - "smithy.api#required": {} - } - }, - "MaxResults": { - "target": "com.amazonaws.iot1clickdevicesservice#MaxResults", - "traits": { - "smithy.api#documentation": "The maximum number of results to return per request. If not set, a default value of\n 100 is used.
", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The token to retrieve the next set of results.
", - "smithy.api#httpQuery": "nextToken" - } - }, - "ToTimeStamp": { - "target": "com.amazonaws.iot1clickdevicesservice#__timestampIso8601", - "traits": { - "smithy.api#clientOptional": {}, - "smithy.api#documentation": "The end date for the device event query, in ISO8061 format. For example,\n 2018-03-28T15:45:12.880Z\n
", - "smithy.api#httpQuery": "toTimeStamp", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDeviceEventsResponse": { - "type": "structure", - "members": { - "Events": { - "target": "com.amazonaws.iot1clickdevicesservice#__listOfDeviceEvent", - "traits": { - "smithy.api#documentation": "An array of zero or more elements describing the event(s) associated with the\n device.
", - "smithy.api#jsonName": "events" - } - }, - "NextToken": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The token to retrieve the next set of results.
", - "smithy.api#jsonName": "nextToken" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDevices": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#ListDevicesRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#ListDevicesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#RangeNotSatisfiableException" - } - ], - "traits": { - "smithy.api#documentation": "Lists the 1-Click compatible devices associated with your AWS account.
", - "smithy.api#http": { - "method": "GET", - "uri": "/devices", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDevicesRequest": { - "type": "structure", - "members": { - "DeviceType": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The type of the device, such as \"button\".
", - "smithy.api#httpQuery": "deviceType" - } - }, - "MaxResults": { - "target": "com.amazonaws.iot1clickdevicesservice#MaxResults", - "traits": { - "smithy.api#documentation": "The maximum number of results to return per request. If not set, a default value of\n 100 is used.
", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The token to retrieve the next set of results.
", - "smithy.api#httpQuery": "nextToken" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ListDevicesResponse": { - "type": "structure", - "members": { - "Devices": { - "target": "com.amazonaws.iot1clickdevicesservice#__listOfDeviceDescription", - "traits": { - "smithy.api#documentation": "A list of devices.
", - "smithy.api#jsonName": "devices" - } - }, - "NextToken": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The token to retrieve the next set of results.
", - "smithy.api#jsonName": "nextToken" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ListTagsForResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#ListTagsForResourceRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#ListTagsForResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Lists the tags associated with the specified resource ARN.
", - "smithy.api#http": { - "method": "GET", - "uri": "/tags/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#ListTagsForResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The ARN of the resource.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#ListTagsForResourceResponse": { - "type": "structure", - "members": { - "Tags": { - "target": "com.amazonaws.iot1clickdevicesservice#__mapOf__string", - "traits": { - "smithy.api#documentation": "A collection of key/value pairs defining the resource tags. For example, {\n \"tags\": {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS\n Tagging Strategies.
\n \n
", - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 250 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#PreconditionFailedException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "412
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "An error message explaining the error or its remedy.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 412 - } - }, - "com.amazonaws.iot1clickdevicesservice#RangeNotSatisfiableException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "416
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The requested number of results specified by nextToken cannot be\n satisfied.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 416 - } - }, - "com.amazonaws.iot1clickdevicesservice#ResourceConflictException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "409
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "An error message explaining the error or its remedy.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 409 - } - }, - "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException": { - "type": "structure", - "members": { - "Code": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "404
", - "smithy.api#jsonName": "code" - } - }, - "Message": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The requested device could not be found.
", - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.iot1clickdevicesservice#TagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#TagResourceRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per\n resource.
", - "smithy.api#http": { - "method": "POST", - "uri": "/tags/{ResourceArn}", - "code": 204 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#TagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The ARN of the resource.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.iot1clickdevicesservice#__mapOf__string", - "traits": { - "smithy.api#clientOptional": {}, - "smithy.api#documentation": "A collection of key/value pairs defining the resource tags. For example, {\n \"tags\": {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS\n Tagging Strategies.
\n \n
", - "smithy.api#jsonName": "tags", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#UnclaimDevice": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#UnclaimDeviceRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#UnclaimDeviceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Disassociates a device from your AWS account using its device ID.
", - "smithy.api#http": { - "method": "PUT", - "uri": "/devices/{DeviceId}/unclaim", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#UnclaimDeviceRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#UnclaimDeviceResponse": { - "type": "structure", - "members": { - "State": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The device's final claim state.
", - "smithy.api#jsonName": "state" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#UntagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#UntagResourceRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Using tag keys, deletes the tags (key/value pairs) associated with the specified\n resource ARN.
", - "smithy.api#http": { - "method": "DELETE", - "uri": "/tags/{ResourceArn}", - "code": 204 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#UntagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The ARN of the resource.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "TagKeys": { - "target": "com.amazonaws.iot1clickdevicesservice#__listOf__string", - "traits": { - "smithy.api#clientOptional": {}, - "smithy.api#documentation": "A collections of tag keys. For example, {\"key1\",\"key2\"}
", - "smithy.api#httpQuery": "tagKeys", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#UpdateDeviceState": { - "type": "operation", - "input": { - "target": "com.amazonaws.iot1clickdevicesservice#UpdateDeviceStateRequest" - }, - "output": { - "target": "com.amazonaws.iot1clickdevicesservice#UpdateDeviceStateResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iot1clickdevicesservice#InternalFailureException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#InvalidRequestException" - }, - { - "target": "com.amazonaws.iot1clickdevicesservice#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "Using a Boolean value (true or false), this operation\n enables or disables the device given a device ID.
", - "smithy.api#http": { - "method": "PUT", - "uri": "/devices/{DeviceId}/state", - "code": 200 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#UpdateDeviceStateRequest": { - "type": "structure", - "members": { - "DeviceId": { - "target": "com.amazonaws.iot1clickdevicesservice#__string", - "traits": { - "smithy.api#documentation": "The unique identifier of the device.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Enabled": { - "target": "com.amazonaws.iot1clickdevicesservice#__boolean", - "traits": { - "smithy.api#documentation": "If true, the device is enabled. If false, the device is\n disabled.
", - "smithy.api#jsonName": "enabled" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#UpdateDeviceStateResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickdevicesservice#__boolean": { - "type": "boolean" - }, - "com.amazonaws.iot1clickdevicesservice#__doubleMin0Max100": { - "type": "double" - }, - "com.amazonaws.iot1clickdevicesservice#__integer": { - "type": "integer" - }, - "com.amazonaws.iot1clickdevicesservice#__listOfDeviceDescription": { - "type": "list", - "member": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceDescription" - } - }, - "com.amazonaws.iot1clickdevicesservice#__listOfDeviceEvent": { - "type": "list", - "member": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceEvent" - } - }, - "com.amazonaws.iot1clickdevicesservice#__listOfDeviceMethod": { - "type": "list", - "member": { - "target": "com.amazonaws.iot1clickdevicesservice#DeviceMethod" - } - }, - "com.amazonaws.iot1clickdevicesservice#__listOf__string": { - "type": "list", - "member": { - "target": "com.amazonaws.iot1clickdevicesservice#__string" - } - }, - "com.amazonaws.iot1clickdevicesservice#__mapOf__string": { - "type": "map", - "key": { - "target": "com.amazonaws.iot1clickdevicesservice#__string" - }, - "value": { - "target": "com.amazonaws.iot1clickdevicesservice#__string" - } - }, - "com.amazonaws.iot1clickdevicesservice#__string": { - "type": "string" - }, - "com.amazonaws.iot1clickdevicesservice#__stringMin12Max40": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 12, - "max": 40 - } - } - }, - "com.amazonaws.iot1clickdevicesservice#__timestampIso8601": { - "type": "timestamp", - "traits": { - "smithy.api#timestampFormat": "date-time" - } - } - } -} diff --git a/codegen/sdk/aws-models/iot-1click-projects.json b/codegen/sdk/aws-models/iot-1click-projects.json deleted file mode 100644 index 36a0a8535fb..00000000000 --- a/codegen/sdk/aws-models/iot-1click-projects.json +++ /dev/null @@ -1,2429 +0,0 @@ -{ - "smithy": "2.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", - "docId": "iot1click-projects-2018-05-14", - "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", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - }, - true - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] - }, - "smithy.rules#endpointTests": { - "testCases": [ - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-central-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-west-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-2.amazonaws.com" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-west-2.amazonaws.com" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" - } - } - }, - "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.
The device template name to associate with the device ID.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#AssociateDeviceWithPlacementResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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.
" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#CreatePlacementResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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.
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.
Deletes a placement. To delete a placement, it must not have any devices associated with\n it.
\nWhen you delete a placement, all associated data becomes irretrievable.
\nThe 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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#DeletePlacementResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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.
\nWhen you delete a project, all associated data becomes irretrievable.
\nThe name of the empty project to delete.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#DeleteProjectResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "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\"
.
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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#DisassociateDeviceFromPlacementResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "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" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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.
" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "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" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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.
" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "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.
" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.iot1clickprojects#MaxResults": { - "type": "integer", - "traits": { - "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.
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.
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.
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.
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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#TagResourceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#UntagResourceResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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.
" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.iot1clickprojects#UpdatePlacementResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "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., \"\"
).
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.