889 lines
27 KiB
JSON
889 lines
27 KiB
JSON
{
|
|
"metadata" : {
|
|
"apiVersion" : "2018-05-14",
|
|
"endpointPrefix" : "devices.iot1click",
|
|
"signingName" : "iot1click",
|
|
"serviceFullName" : "AWS IoT 1-Click Devices Service",
|
|
"serviceId" : "IoT 1Click Devices Service",
|
|
"protocol" : "rest-json",
|
|
"jsonVersion" : "1.1",
|
|
"uid" : "devices-2018-05-14",
|
|
"signatureVersion" : "v4"
|
|
},
|
|
"operations" : {
|
|
"ClaimDevicesByClaimCode" : {
|
|
"name" : "ClaimDevicesByClaimCode",
|
|
"http" : {
|
|
"method" : "PUT",
|
|
"requestUri" : "/claims/{claimCode}",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "ClaimDevicesByClaimCodeRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "ClaimDevicesByClaimCodeResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
}, {
|
|
"shape" : "ForbiddenException",
|
|
"documentation" : "<p>403 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Adds device(s) to your account (i.e., claim one or more devices) if and only if\n you received a claim code with the device(s).</p>"
|
|
},
|
|
"DescribeDevice" : {
|
|
"name" : "DescribeDevice",
|
|
"http" : {
|
|
"method" : "GET",
|
|
"requestUri" : "/devices/{deviceId}",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "DescribeDeviceRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "DescribeDeviceResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Given a device ID, returns a DescribeDeviceResponse object describing\n the details of the device.</p>"
|
|
},
|
|
"FinalizeDeviceClaim" : {
|
|
"name" : "FinalizeDeviceClaim",
|
|
"http" : {
|
|
"method" : "PUT",
|
|
"requestUri" : "/devices/{deviceId}/finalize-claim",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "FinalizeDeviceClaimRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "FinalizeDeviceClaimResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
}, {
|
|
"shape" : "PreconditionFailedException",
|
|
"documentation" : "<p>412 response</p>"
|
|
}, {
|
|
"shape" : "ResourceConflictException",
|
|
"documentation" : "<p>409 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Given a device ID, finalizes the claim request for the associated device.</p><note>\n <p>Claiming a device consists of initiating a claim, then publishing a device\n event, and finalizing the claim. For a device of type button, a\n device event can be published by simply clicking the device.</p>\n </note>"
|
|
},
|
|
"GetDeviceMethods" : {
|
|
"name" : "GetDeviceMethods",
|
|
"http" : {
|
|
"method" : "GET",
|
|
"requestUri" : "/devices/{deviceId}/methods",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "GetDeviceMethodsRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "GetDeviceMethodsResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Given a device ID, returns the invokable methods associated with the\n device.</p>"
|
|
},
|
|
"InitiateDeviceClaim" : {
|
|
"name" : "InitiateDeviceClaim",
|
|
"http" : {
|
|
"method" : "PUT",
|
|
"requestUri" : "/devices/{deviceId}/initiate-claim",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "InitiateDeviceClaimRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "InitiateDeviceClaimResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
}, {
|
|
"shape" : "ResourceConflictException",
|
|
"documentation" : "<p>409 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Given a device ID, initiates a claim request for the associated device.</p><note>\n <p>Claiming a device consists of initiating a claim, then publishing a device\n event, and finalizing the claim. For a device of type button, a\n device event can be published by simply clicking the device.</p>\n </note>"
|
|
},
|
|
"InvokeDeviceMethod" : {
|
|
"name" : "InvokeDeviceMethod",
|
|
"http" : {
|
|
"method" : "POST",
|
|
"requestUri" : "/devices/{deviceId}/methods",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "InvokeDeviceMethodRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "InvokeDeviceMethodResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "PreconditionFailedException",
|
|
"documentation" : "<p>412 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
}, {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "RangeNotSatisfiableException",
|
|
"documentation" : "<p>416 response</p>"
|
|
}, {
|
|
"shape" : "ResourceConflictException",
|
|
"documentation" : "<p>409 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Given a device ID, issues a request to invoke a named device method (with possible\n parameters). See the \"Example POST\" code snippet below.</p>"
|
|
},
|
|
"ListDeviceEvents" : {
|
|
"name" : "ListDeviceEvents",
|
|
"http" : {
|
|
"method" : "GET",
|
|
"requestUri" : "/devices/{deviceId}/events",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "ListDeviceEventsRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "ListDeviceEventsResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "RangeNotSatisfiableException",
|
|
"documentation" : "<p>416 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Using a device ID, returns a DeviceEventsResponse object containing\n an array of events for the device.</p>"
|
|
},
|
|
"ListDevices" : {
|
|
"name" : "ListDevices",
|
|
"http" : {
|
|
"method" : "GET",
|
|
"requestUri" : "/devices",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "ListDevicesRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "ListDevicesResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "RangeNotSatisfiableException",
|
|
"documentation" : "<p>416 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Lists the 1-Click compatible devices associated with your AWS account.</p>"
|
|
},
|
|
"UnclaimDevice" : {
|
|
"name" : "UnclaimDevice",
|
|
"http" : {
|
|
"method" : "PUT",
|
|
"requestUri" : "/devices/{deviceId}/unclaim",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "UnclaimDeviceRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "UnclaimDeviceResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Disassociates a device from your AWS account using its device ID.</p>"
|
|
},
|
|
"UpdateDeviceState" : {
|
|
"name" : "UpdateDeviceState",
|
|
"http" : {
|
|
"method" : "PUT",
|
|
"requestUri" : "/devices/{deviceId}/state",
|
|
"responseCode" : 200
|
|
},
|
|
"input" : {
|
|
"shape" : "UpdateDeviceStateRequest"
|
|
},
|
|
"output" : {
|
|
"shape" : "UpdateDeviceStateResponse",
|
|
"documentation" : "<p>200 response</p>"
|
|
},
|
|
"errors" : [ {
|
|
"shape" : "ResourceNotFoundException",
|
|
"documentation" : "<p>404 response</p>"
|
|
}, {
|
|
"shape" : "InvalidRequestException",
|
|
"documentation" : "<p>400 response</p>"
|
|
}, {
|
|
"shape" : "InternalFailureException",
|
|
"documentation" : "<p>500 response</p>"
|
|
} ],
|
|
"documentation" : "<p>Using a Boolean value (true or false), this operation\n enables or disables the device given a device ID.</p>"
|
|
}
|
|
},
|
|
"shapes" : {
|
|
"Attributes" : {
|
|
"type" : "structure",
|
|
"members" : { }
|
|
},
|
|
"ClaimDevicesByClaimCodeRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"ClaimCode" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "claimCode",
|
|
"documentation" : "<p>The claim code, starting with \"C-\", as provided by the device manufacturer.</p>"
|
|
}
|
|
},
|
|
"required" : [ "ClaimCode" ]
|
|
},
|
|
"ClaimDevicesByClaimCodeResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"ClaimCode" : {
|
|
"shape" : "__stringMin12Max40",
|
|
"locationName" : "claimCode",
|
|
"documentation" : "<p>The claim code provided by the device manufacturer.</p>"
|
|
},
|
|
"Total" : {
|
|
"shape" : "__integer",
|
|
"locationName" : "total",
|
|
"documentation" : "<p>The total number of devices associated with the claim code that has been processed\n in the claim request.</p>"
|
|
}
|
|
}
|
|
},
|
|
"DescribeDeviceRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"DescribeDeviceResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceDescription" : {
|
|
"shape" : "DeviceDescription",
|
|
"locationName" : "deviceDescription",
|
|
"documentation" : "<p>Device details.</p>"
|
|
}
|
|
}
|
|
},
|
|
"Device" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Attributes" : {
|
|
"shape" : "Attributes",
|
|
"locationName" : "attributes",
|
|
"documentation" : "<p>The user specified attributes associated with the device for an event.</p>"
|
|
},
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
},
|
|
"Type" : {
|
|
"shape" : "__string",
|
|
"locationName" : "type",
|
|
"documentation" : "<p>The device type, such as \"button\".</p>"
|
|
}
|
|
}
|
|
},
|
|
"DeviceAttributes" : {
|
|
"type" : "map",
|
|
"documentation" : "<p>\n DeviceAttributes is a string-to-string map specified by the user.</p>",
|
|
"key" : {
|
|
"shape" : "__string"
|
|
},
|
|
"value" : {
|
|
"shape" : "__string"
|
|
}
|
|
},
|
|
"DeviceClaimResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"State" : {
|
|
"shape" : "__string",
|
|
"locationName" : "state",
|
|
"documentation" : "<p>The device's final claim state.</p>"
|
|
}
|
|
}
|
|
},
|
|
"DeviceDescription" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Attributes" : {
|
|
"shape" : "DeviceAttributes",
|
|
"locationName" : "attributes",
|
|
"documentation" : "<p>An array of zero or more elements of DeviceAttribute objects\n providing user specified device attributes.</p>"
|
|
},
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
},
|
|
"Enabled" : {
|
|
"shape" : "__boolean",
|
|
"locationName" : "enabled",
|
|
"documentation" : "<p>A Boolean value indicating whether or not the device is enabled.</p>"
|
|
},
|
|
"RemainingLife" : {
|
|
"shape" : "__doubleMin0Max100",
|
|
"locationName" : "remainingLife",
|
|
"documentation" : "<p>A value between 0 and 1 inclusive, representing the fraction of life remaining for\n the device.</p>"
|
|
},
|
|
"Type" : {
|
|
"shape" : "__string",
|
|
"locationName" : "type",
|
|
"documentation" : "<p>The type of the device, such as \"button\".</p>"
|
|
}
|
|
}
|
|
},
|
|
"DeviceEvent" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Device" : {
|
|
"shape" : "Device",
|
|
"locationName" : "device",
|
|
"documentation" : "<p>An object representing the device associated with the event.</p>"
|
|
},
|
|
"StdEvent" : {
|
|
"shape" : "__string",
|
|
"locationName" : "stdEvent",
|
|
"documentation" : "<p>A serialized JSON object representing the device-type specific event.</p>"
|
|
}
|
|
}
|
|
},
|
|
"DeviceEventsResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Events" : {
|
|
"shape" : "__listOfDeviceEvent",
|
|
"locationName" : "events",
|
|
"documentation" : "<p>An array of zero or more elements describing the event(s) associated with the\n device.</p>"
|
|
},
|
|
"NextToken" : {
|
|
"shape" : "__string",
|
|
"locationName" : "nextToken",
|
|
"documentation" : "<p>The token to retrieve the next set of results.</p>"
|
|
}
|
|
}
|
|
},
|
|
"DeviceMethod" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceType" : {
|
|
"shape" : "__string",
|
|
"locationName" : "deviceType",
|
|
"documentation" : "<p>The type of the device, such as \"button\".</p>"
|
|
},
|
|
"MethodName" : {
|
|
"shape" : "__string",
|
|
"locationName" : "methodName",
|
|
"documentation" : "<p>The name of the method applicable to the deviceType.</p>"
|
|
}
|
|
}
|
|
},
|
|
"Empty" : {
|
|
"type" : "structure",
|
|
"members" : { },
|
|
"documentation" : "<p>On success, an empty object is returned.</p>"
|
|
},
|
|
"FinalizeDeviceClaimRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"FinalizeDeviceClaimResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"State" : {
|
|
"shape" : "__string",
|
|
"locationName" : "state",
|
|
"documentation" : "<p>The device's final claim state.</p>"
|
|
}
|
|
}
|
|
},
|
|
"ForbiddenException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>403</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>The 403 error message returned by the web server.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 403
|
|
}
|
|
},
|
|
"GetDeviceMethodsRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"GetDeviceMethodsResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceMethods" : {
|
|
"shape" : "__listOfDeviceMethod",
|
|
"locationName" : "deviceMethods",
|
|
"documentation" : "<p>List of available device APIs.</p>"
|
|
}
|
|
}
|
|
},
|
|
"InitiateDeviceClaimRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"InitiateDeviceClaimResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"State" : {
|
|
"shape" : "__string",
|
|
"locationName" : "state",
|
|
"documentation" : "<p>The device's final claim state.</p>"
|
|
}
|
|
}
|
|
},
|
|
"InternalFailureException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>500</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>The 500 error message returned by the web server.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 500
|
|
}
|
|
},
|
|
"InvalidRequestException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>400</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>The 400 error message returned by the web server.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 400
|
|
}
|
|
},
|
|
"InvokeDeviceMethodRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
},
|
|
"DeviceMethod" : {
|
|
"shape" : "DeviceMethod",
|
|
"locationName" : "deviceMethod",
|
|
"documentation" : "<p>The device method to invoke.</p>"
|
|
},
|
|
"DeviceMethodParameters" : {
|
|
"shape" : "__string",
|
|
"locationName" : "deviceMethodParameters",
|
|
"documentation" : "<p>A JSON encoded string containing the device method request parameters.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"InvokeDeviceMethodResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceMethodResponse" : {
|
|
"shape" : "__string",
|
|
"locationName" : "deviceMethodResponse",
|
|
"documentation" : "<p>A JSON encoded string containing the device method response.</p>"
|
|
}
|
|
}
|
|
},
|
|
"ListDeviceEventsRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
},
|
|
"FromTimeStamp" : {
|
|
"shape" : "__timestampIso8601",
|
|
"location" : "querystring",
|
|
"locationName" : "fromTimeStamp",
|
|
"documentation" : "<p>The start date for the device event query, in ISO8061 format. For example,\n 2018-03-28T15:45:12.880Z\n </p>"
|
|
},
|
|
"MaxResults" : {
|
|
"shape" : "MaxResults",
|
|
"location" : "querystring",
|
|
"locationName" : "maxResults",
|
|
"documentation" : "<p>The maximum number of results to return per request. If not set, a default value\n of 100 is used.</p>"
|
|
},
|
|
"NextToken" : {
|
|
"shape" : "__string",
|
|
"location" : "querystring",
|
|
"locationName" : "nextToken",
|
|
"documentation" : "<p>The token to retrieve the next set of results.</p>"
|
|
},
|
|
"ToTimeStamp" : {
|
|
"shape" : "__timestampIso8601",
|
|
"location" : "querystring",
|
|
"locationName" : "toTimeStamp",
|
|
"documentation" : "<p>The end date for the device event query, in ISO8061 format. For example,\n 2018-03-28T15:45:12.880Z\n </p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId", "FromTimeStamp", "ToTimeStamp" ]
|
|
},
|
|
"ListDeviceEventsResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Events" : {
|
|
"shape" : "__listOfDeviceEvent",
|
|
"locationName" : "events",
|
|
"documentation" : "<p>An array of zero or more elements describing the event(s) associated with the\n device.</p>"
|
|
},
|
|
"NextToken" : {
|
|
"shape" : "__string",
|
|
"locationName" : "nextToken",
|
|
"documentation" : "<p>The token to retrieve the next set of results.</p>"
|
|
}
|
|
}
|
|
},
|
|
"ListDevicesRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceType" : {
|
|
"shape" : "__string",
|
|
"location" : "querystring",
|
|
"locationName" : "deviceType",
|
|
"documentation" : "<p>The type of the device, such as \"button\".</p>"
|
|
},
|
|
"MaxResults" : {
|
|
"shape" : "MaxResults",
|
|
"location" : "querystring",
|
|
"locationName" : "maxResults",
|
|
"documentation" : "<p>The maximum number of results to return per request. If not set, a default value\n of 100 is used.</p>"
|
|
},
|
|
"NextToken" : {
|
|
"shape" : "__string",
|
|
"location" : "querystring",
|
|
"locationName" : "nextToken",
|
|
"documentation" : "<p>The token to retrieve the next set of results.</p>"
|
|
}
|
|
}
|
|
},
|
|
"ListDevicesResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Devices" : {
|
|
"shape" : "__listOfDeviceDescription",
|
|
"locationName" : "devices",
|
|
"documentation" : "<p>A list of devices.</p>"
|
|
},
|
|
"NextToken" : {
|
|
"shape" : "__string",
|
|
"locationName" : "nextToken",
|
|
"documentation" : "<p>The token to retrieve the next set of results.</p>"
|
|
}
|
|
}
|
|
},
|
|
"MaxResults" : {
|
|
"type" : "integer",
|
|
"min" : 1,
|
|
"max" : 250
|
|
},
|
|
"PreconditionFailedException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>412</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>An error message explaining the error or its remedy.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 412
|
|
}
|
|
},
|
|
"RangeNotSatisfiableException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>416</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>The requested number of results specified by nextToken cannot be\n satisfied.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 416
|
|
}
|
|
},
|
|
"ResourceConflictException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>409</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>An error message explaining the error or its remedy.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 409
|
|
}
|
|
},
|
|
"ResourceNotFoundException" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"Code" : {
|
|
"shape" : "__string",
|
|
"locationName" : "code",
|
|
"documentation" : "<p>404</p>"
|
|
},
|
|
"Message" : {
|
|
"shape" : "__string",
|
|
"locationName" : "message",
|
|
"documentation" : "<p>The requested device could not be found.</p>"
|
|
}
|
|
},
|
|
"exception" : true,
|
|
"error" : {
|
|
"httpStatusCode" : 404
|
|
}
|
|
},
|
|
"UnclaimDeviceRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"UnclaimDeviceResponse" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"State" : {
|
|
"shape" : "__string",
|
|
"locationName" : "state",
|
|
"documentation" : "<p>The device's final claim state.</p>"
|
|
}
|
|
}
|
|
},
|
|
"UpdateDeviceStateRequest" : {
|
|
"type" : "structure",
|
|
"members" : {
|
|
"DeviceId" : {
|
|
"shape" : "__string",
|
|
"location" : "uri",
|
|
"locationName" : "deviceId",
|
|
"documentation" : "<p>The unique identifier of the device.</p>"
|
|
},
|
|
"Enabled" : {
|
|
"shape" : "__boolean",
|
|
"locationName" : "enabled",
|
|
"documentation" : "<p>If true, the device is enabled. If false, the device is\n disabled.</p>"
|
|
}
|
|
},
|
|
"required" : [ "DeviceId" ]
|
|
},
|
|
"UpdateDeviceStateResponse" : {
|
|
"type" : "structure",
|
|
"members" : { }
|
|
},
|
|
"__boolean" : {
|
|
"type" : "boolean"
|
|
},
|
|
"__double" : {
|
|
"type" : "double"
|
|
},
|
|
"__doubleMin0Max100" : {
|
|
"type" : "double"
|
|
},
|
|
"__integer" : {
|
|
"type" : "integer"
|
|
},
|
|
"__listOfDeviceDescription" : {
|
|
"type" : "list",
|
|
"member" : {
|
|
"shape" : "DeviceDescription"
|
|
}
|
|
},
|
|
"__listOfDeviceEvent" : {
|
|
"type" : "list",
|
|
"member" : {
|
|
"shape" : "DeviceEvent"
|
|
}
|
|
},
|
|
"__listOfDeviceMethod" : {
|
|
"type" : "list",
|
|
"member" : {
|
|
"shape" : "DeviceMethod"
|
|
}
|
|
},
|
|
"__long" : {
|
|
"type" : "long"
|
|
},
|
|
"__string" : {
|
|
"type" : "string"
|
|
},
|
|
"__stringMin12Max40" : {
|
|
"type" : "string",
|
|
"min" : 12,
|
|
"max" : 40
|
|
},
|
|
"__timestampIso8601" : {
|
|
"type" : "timestamp",
|
|
"timestampFormat" : "iso8601"
|
|
},
|
|
"__timestampUnix" : {
|
|
"type" : "timestamp",
|
|
"timestampFormat" : "unixTimestamp"
|
|
}
|
|
},
|
|
"documentation" : "<p>Stub description</p>"
|
|
} |