{ "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.iotdataplane#CleanSession": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#ClientId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[^$]" } }, "com.amazonaws.iotdataplane#Confirmation": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#ConflictException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The specified version does not match the version of the document.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.iotdataplane#Connected": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#ContentType": { "type": "string" }, "com.amazonaws.iotdataplane#CorrelationData": { "type": "string" }, "com.amazonaws.iotdataplane#DeleteConnection": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#DeleteConnectionRequest" }, "output": { "target": "smithy.api#Unit" }, "errors": [ { "target": "com.amazonaws.iotdataplane#ForbiddenException" }, { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

Disconnects a connected MQTT client from Amazon Web Services IoT Core. When you disconnect a client, Amazon Web Services IoT Core closes the client's network connection and optionally cleans the session state.

\n

Requires permission to access the DeleteConnection action.

", "smithy.api#http": { "method": "DELETE", "uri": "/connections/{clientId}", "code": 200 } } }, "com.amazonaws.iotdataplane#DeleteConnectionRequest": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.iotdataplane#ClientId", "traits": { "smithy.api#documentation": "

The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).

\n

MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "cleanSession": { "target": "com.amazonaws.iotdataplane#CleanSession", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

Specifies whether to remove the client's persistent session state when disconnecting. Set to TRUE to delete all session information, including subscriptions and queued messages. Set to FALSE to preserve the session state for persistent sessions. For clean sessions this parameter will be ignored. By default, this is set to FALSE (preserves the session state).

", "smithy.api#httpQuery": "cleanSession" } }, "preventWillMessage": { "target": "com.amazonaws.iotdataplane#PreventWillMessage", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to TRUE to prevent publishing the LWT message. Set to FALSE to ensure that LWT is published. By default, this is set to FALSE (LWT message is published).

", "smithy.api#httpQuery": "preventWillMessage" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#DeleteThingShadow": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#DeleteThingShadowRequest" }, "output": { "target": "com.amazonaws.iotdataplane#DeleteThingShadowResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" }, { "target": "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException" } ], "traits": { "smithy.api#documentation": "

Deletes the shadow for the specified thing.

\n

Requires permission to access the DeleteThingShadow action.

\n

For more information, see DeleteThingShadow in the IoT Developer Guide.

", "smithy.api#http": { "method": "DELETE", "uri": "/things/{thingName}/shadow", "code": 200 } } }, "com.amazonaws.iotdataplane#DeleteThingShadowRequest": { "type": "structure", "members": { "thingName": { "target": "com.amazonaws.iotdataplane#ThingName", "traits": { "smithy.api#documentation": "

The name of the thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "shadowName": { "target": "com.amazonaws.iotdataplane#ShadowName", "traits": { "smithy.api#documentation": "

The name of the shadow.

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

The input for the DeleteThingShadow operation.

", "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#DeleteThingShadowResponse": { "type": "structure", "members": { "payload": { "target": "com.amazonaws.iotdataplane#JsonDocument", "traits": { "smithy.api#documentation": "

The state information, in JSON format.

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

The output from the DeleteThingShadow operation.

", "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#DisconnectReason": { "type": "string" }, "com.amazonaws.iotdataplane#ForbiddenException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage" } }, "traits": { "smithy.api#documentation": "

The caller isn't authorized to make the request.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.iotdataplane#GatewayTimeoutException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The delivery confirmation was not received from the client within the specified timeout period.

", "smithy.api#error": "server", "smithy.api#httpError": 504 } }, "com.amazonaws.iotdataplane#GetConnection": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#GetConnectionRequest" }, "output": { "target": "com.amazonaws.iotdataplane#GetConnectionResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#ForbiddenException" }, { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

Retrieves connection information for the specified MQTT client.

\n

Requires permission to access the GetConnection action.

", "smithy.api#http": { "method": "GET", "uri": "/connections/{clientId}", "code": 200 } } }, "com.amazonaws.iotdataplane#GetConnectionRequest": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.iotdataplane#ClientId", "traits": { "smithy.api#documentation": "

The unique identifier of the MQTT client to retrieve connection information. The client ID can't start with a dollar sign ($).

\n

MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "includeSocketInformation": { "target": "com.amazonaws.iotdataplane#IncludeSocketInformation", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

Specifies if socket information (sourcePort, targetPort, sourceIp, targetIp) should be included in the GetConnection response. Set to TRUE to include socket information. Set to FALSE to omit socket information. By default, this is set to FALSE. See the developer guide for how to authorize this parameter.

", "smithy.api#httpQuery": "includeSocketInformation" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#GetConnectionResponse": { "type": "structure", "members": { "connected": { "target": "com.amazonaws.iotdataplane#Connected", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

The connection state of the client. Returns true if the client is currently connected, or false if the client is not connected.

" } }, "thingName": { "target": "com.amazonaws.iotdataplane#ThingName", "traits": { "smithy.api#documentation": "

The name of the thing associated with the principal of the MQTT client, if applicable.

" } }, "cleanSession": { "target": "com.amazonaws.iotdataplane#CleanSession", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

Indicates whether the client is using a clean session. Returns true for clean sessions or false for persistent sessions.

" } }, "sourceIp": { "target": "com.amazonaws.iotdataplane#SourceIp", "traits": { "smithy.api#documentation": "

The IP address of the client that initiated the connection.

" } }, "sourcePort": { "target": "com.amazonaws.iotdataplane#SourcePort", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The client's source port.

" } }, "targetIp": { "target": "com.amazonaws.iotdataplane#TargetIp", "traits": { "smithy.api#documentation": "

The IP address of the Amazon Web Services IoT Core endpoint that the client connected to. For clients connected to VPC endpoints, this is the private IP address of the network interface the client is connected to.

" } }, "targetPort": { "target": "com.amazonaws.iotdataplane#TargetPort", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The port number of the Amazon Web Services IoT Core endpoint that the client connected to.

" } }, "keepAliveDuration": { "target": "com.amazonaws.iotdataplane#KeepAliveDuration", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The keep-alive interval in seconds that the client specified when establishing the connection.

" } }, "connectedSince": { "target": "com.amazonaws.iotdataplane#Timestamp", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.

" } }, "disconnectedSince": { "target": "com.amazonaws.iotdataplane#Timestamp", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

Unix timestamp (in milliseconds) indicating when the client disconnected. Present only when connected is false. This information is available for 30 minutes after the client disconnects.

" } }, "disconnectReason": { "target": "com.amazonaws.iotdataplane#DisconnectReason", "traits": { "smithy.api#documentation": "

The reason for the last disconnection, if the client is currently disconnected. See the developer guide for valid disconnect reasons.

" } }, "sessionExpiry": { "target": "com.amazonaws.iotdataplane#SessionExpiry", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The session expiry interval in seconds for the MQTT client connection. This is configured by the user. This value indicates how long the session will remain active after the client disconnects.

" } }, "clientId": { "target": "com.amazonaws.iotdataplane#ClientId", "traits": { "smithy.api#documentation": "

The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.

" } }, "vpcEndpointId": { "target": "com.amazonaws.iotdataplane#VpcEndpointId", "traits": { "smithy.api#documentation": "

The ID of the VPC endpoint. Present for clients connected to IoT Core via a VPC endpoint.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#GetRetainedMessage": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#GetRetainedMessageRequest" }, "output": { "target": "com.amazonaws.iotdataplane#GetRetainedMessageResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" } ], "traits": { "smithy.api#documentation": "

Gets the details of a single retained message for the specified topic.

\n

This action returns the message payload of the retained message, which can \n incur messaging costs. To list only the topic names of the retained messages, call\n ListRetainedMessages.

\n

Requires permission to access the GetRetainedMessage action.

\n

For more information about messaging costs, see Amazon Web Services IoT Core\n pricing - Messaging.

", "smithy.api#http": { "method": "GET", "uri": "/retainedMessage/{topic}", "code": 200 } } }, "com.amazonaws.iotdataplane#GetRetainedMessageRequest": { "type": "structure", "members": { "topic": { "target": "com.amazonaws.iotdataplane#Topic", "traits": { "smithy.api#documentation": "

The topic name of the retained message to retrieve.

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

The input for the GetRetainedMessage operation.

", "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#GetRetainedMessageResponse": { "type": "structure", "members": { "topic": { "target": "com.amazonaws.iotdataplane#Topic", "traits": { "smithy.api#documentation": "

The topic name to which the retained message was published.

" } }, "payload": { "target": "com.amazonaws.iotdataplane#Payload", "traits": { "smithy.api#documentation": "

The Base64-encoded message payload of the retained message body.

" } }, "qos": { "target": "com.amazonaws.iotdataplane#Qos", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The quality of service (QoS) level used to publish the retained message.

" } }, "lastModifiedTime": { "target": "com.amazonaws.iotdataplane#Timestamp", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

" } }, "userProperties": { "target": "com.amazonaws.iotdataplane#UserPropertiesBlob", "traits": { "smithy.api#documentation": "

A base64-encoded JSON string that includes an array of JSON objects, or null if the\n retained message doesn't include any user properties.

\n

The following example userProperties parameter is a JSON string that\n represents two user properties. Note that it will be base64-encoded:

\n

\n [{\"deviceName\": \"alpha\"}, {\"deviceCnt\": \"45\"}]\n

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

The output from the GetRetainedMessage operation.

", "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#GetThingShadow": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#GetThingShadowRequest" }, "output": { "target": "com.amazonaws.iotdataplane#GetThingShadowResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" }, { "target": "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException" } ], "traits": { "smithy.api#documentation": "

Gets the shadow for the specified thing.

\n

Requires permission to access the GetThingShadow action.

\n

For more information, see GetThingShadow in the\n IoT Developer Guide.

", "smithy.api#http": { "method": "GET", "uri": "/things/{thingName}/shadow", "code": 200 }, "smithy.test#smokeTests": [ { "id": "GetThingShadowFailure", "params": { "thingName": "fake-thing" }, "vendorParams": { "region": "us-west-2", "uri": "https://data-ats.iot.us-west-2.amazonaws.com" }, "vendorParamsShape": "aws.test#AwsVendorParams", "expect": { "failure": {} } } ] } }, "com.amazonaws.iotdataplane#GetThingShadowRequest": { "type": "structure", "members": { "thingName": { "target": "com.amazonaws.iotdataplane#ThingName", "traits": { "smithy.api#documentation": "

The name of the thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "shadowName": { "target": "com.amazonaws.iotdataplane#ShadowName", "traits": { "smithy.api#documentation": "

The name of the shadow.

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

The input for the GetThingShadow operation.

", "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#GetThingShadowResponse": { "type": "structure", "members": { "payload": { "target": "com.amazonaws.iotdataplane#JsonDocument", "traits": { "smithy.api#documentation": "

The state information, in JSON format.

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

The output from the GetThingShadow operation.

", "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#IncludeSocketInformation": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#InternalFailureException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

An unexpected error has occurred.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.iotdataplane#InvalidRequestException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The request is not valid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.iotdataplane#IotMoonrakerService": { "type": "service", "version": "2015-05-28", "operations": [ { "target": "com.amazonaws.iotdataplane#DeleteConnection" }, { "target": "com.amazonaws.iotdataplane#DeleteThingShadow" }, { "target": "com.amazonaws.iotdataplane#GetConnection" }, { "target": "com.amazonaws.iotdataplane#GetRetainedMessage" }, { "target": "com.amazonaws.iotdataplane#GetThingShadow" }, { "target": "com.amazonaws.iotdataplane#ListNamedShadowsForThing" }, { "target": "com.amazonaws.iotdataplane#ListRetainedMessages" }, { "target": "com.amazonaws.iotdataplane#ListSubscriptions" }, { "target": "com.amazonaws.iotdataplane#Publish" }, { "target": "com.amazonaws.iotdataplane#SendDirectMessage" }, { "target": "com.amazonaws.iotdataplane#UpdateThingShadow" } ], "traits": { "aws.api#service": { "sdkId": "IoT Data Plane", "arnNamespace": "iotdata", "cloudFormationName": "IoTDataPlane", "cloudTrailEventSource": "iotdataplane.amazonaws.com", "docId": "iot-data-2015-05-28", "endpointPrefix": "data-ats.iot" }, "aws.auth#sigv4": { "name": "iotdata" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "IoT data\n

IoT data enables secure, bi-directional communication between Internet-connected things (such as sensors,\n actuators, embedded devices, or smart appliances) and the Amazon Web Services cloud. It implements a broker for applications and\n things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a\n persistent representation of your things and their state in the Amazon Web Services cloud.

\n

Find the endpoint address for actions in IoT data by running this CLI command:

\n

\n aws iot describe-endpoint --endpoint-type iot:Data-ATS\n

\n

The service name used by Amazon Web ServicesSignature Version 4\n to sign requests is: iotdevicegateway.

", "smithy.api#title": "AWS IoT Data Plane", "smithy.rules#endpointBdd": { "version": "1.1", "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" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "ca-central-1" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "cn-north-1" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-east-1" ] }, { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws" ] }, { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws-cn" ] }, { "fn": "stringEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] }, "aws-us-gov" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-east-2" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-west-1" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-west-2" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-gov-east-1" ] }, { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-gov-west-1" ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.ca-central-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-east-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-east-2.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-west-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-west-2.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-gov-east-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data.iot-fips.us-gov-west-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://data.ats.iot.cn-north-1.amazonaws.com.cn", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot.{Region}.amazonaws.com.cn", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 24, "nodes": "/////wAAAAH/////AAAAAAAAABcAAAADAAAAAQAAAAQF9eEVAAAAAgAAAAUF9eEVAAAAAwAAAAwAAAAGAAAABAAAAAsAAAAHAAAACAX14REAAAAIAAAACgX14RIAAAAJAAAACwX14RMAAAAKAAAADAX14RIF9eEUAAAABQX14Q8F9eEQAAAABAAAABUAAAANAAAABgAAAA4F9eEOAAAABwX14QYAAAAPAAAACQX14QcAAAAQAAAADQX14QgAAAARAAAADgX14QkAAAASAAAADwX14QoAAAATAAAAEAX14QsAAAAUAAAAEQX14QwF9eENAAAABQAAABYF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAAYAAAABAX14QIF9eED" }, "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://data-ats.iot-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": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "ca-central-1" ] } ], "endpoint": { "url": "https://data.iot-fips.ca-central-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-east-1" ] } ], "endpoint": { "url": "https://data.iot-fips.us-east-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-east-2" ] } ], "endpoint": { "url": "https://data.iot-fips.us-east-2.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-west-1" ] } ], "endpoint": { "url": "https://data.iot-fips.us-west-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-west-2" ] } ], "endpoint": { "url": "https://data.iot-fips.us-west-2.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-gov-east-1" ] } ], "endpoint": { "url": "https://data.iot-fips.us-gov-east-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "us-gov-west-1" ] } ], "endpoint": { "url": "https://data.iot-fips.us-gov-west-1.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot-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://data-ats.iot.{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": [ { "fn": "stringEquals", "argv": [ { "ref": "Region" }, "cn-north-1" ] } ], "endpoint": { "url": "https://data.ats.iot.cn-north-1.amazonaws.com.cn", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ "aws", { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] } ] } ], "endpoint": { "url": "https://data-ats.iot.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ "aws-cn", { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] } ] } ], "endpoint": { "url": "https://data-ats.iot.{Region}.amazonaws.com.cn", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [ { "fn": "stringEquals", "argv": [ "aws-us-gov", { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "name" ] } ] } ], "endpoint": { "url": "https://data-ats.iot.{Region}.amazonaws.com", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://data-ats.iot.{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-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-east-1.amazonaws.com" } }, "params": { "Region": "ap-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-northeast-1.amazonaws.com" } }, "params": { "Region": "ap-northeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-northeast-2.amazonaws.com" } }, "params": { "Region": "ap-northeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-south-1.amazonaws.com" } }, "params": { "Region": "ap-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-southeast-1.amazonaws.com" } }, "params": { "Region": "ap-southeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.eu-central-1.amazonaws.com" } }, "params": { "Region": "eu-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.eu-north-1.amazonaws.com" } }, "params": { "Region": "eu-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.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://data-ats.iot.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.eu-west-3.amazonaws.com" } }, "params": { "Region": "eu-west-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.me-south-1.amazonaws.com" } }, "params": { "Region": "me-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.sa-east-1.amazonaws.com" } }, "params": { "Region": "sa-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-west-1.amazonaws.com" } }, "params": { "Region": "us-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-west-1.amazonaws.com" } }, "params": { "Region": "us-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://data-ats.iot-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.ats.iot.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.cn-northwest-1.amazonaws.com.cn" } }, "params": { "Region": "cn-northwest-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://data-ats.iot-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://data-ats.iot-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://data-ats.iot.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data.iot-fips.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://data-ats.iot-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 disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://data-ats.iot.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://data-ats.iot-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 disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.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 disabled", "expect": { "endpoint": { "url": "https://data-ats.iot-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 disabled", "expect": { "endpoint": { "url": "https://data-ats.iot.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.iotdataplane#JsonDocument": { "type": "blob" }, "com.amazonaws.iotdataplane#KeepAliveDuration": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#ListNamedShadowsForThing": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#ListNamedShadowsForThingRequest" }, "output": { "target": "com.amazonaws.iotdataplane#ListNamedShadowsForThingResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" } ], "traits": { "smithy.api#documentation": "

Lists the shadows for the specified thing.

\n

Requires permission to access the ListNamedShadowsForThing action.

", "smithy.api#http": { "method": "GET", "uri": "/api/things/shadow/ListNamedShadowsForThing/{thingName}", "code": 200 } } }, "com.amazonaws.iotdataplane#ListNamedShadowsForThingRequest": { "type": "structure", "members": { "thingName": { "target": "com.amazonaws.iotdataplane#ThingName", "traits": { "smithy.api#documentation": "

The name of the thing.

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

The token to retrieve the next set of results.

", "smithy.api#httpQuery": "nextToken" } }, "pageSize": { "target": "com.amazonaws.iotdataplane#PageSize", "traits": { "smithy.api#documentation": "

The result page size.

", "smithy.api#httpQuery": "pageSize" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#ListNamedShadowsForThingResponse": { "type": "structure", "members": { "results": { "target": "com.amazonaws.iotdataplane#NamedShadowList", "traits": { "smithy.api#documentation": "

The list of shadows for the specified thing.

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

The token to use to get the next set of results, or null if there are no additional results.

" } }, "timestamp": { "target": "com.amazonaws.iotdataplane#Timestamp", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The Epoch date and time the response was generated by IoT.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#ListRetainedMessages": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#ListRetainedMessagesRequest" }, "output": { "target": "com.amazonaws.iotdataplane#ListRetainedMessagesResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" } ], "traits": { "smithy.api#documentation": "

Lists summary information about the retained messages stored for the account.

\n

This action returns only the topic names of the retained messages. It doesn't \n return any message payloads. Although this action doesn't return a message payload,\n it can still incur messaging costs.

\n

To get the message payload of a retained message, call\n GetRetainedMessage\n with the topic name of the retained message.

\n

Requires permission to access the ListRetainedMessages action.

\n

For more information about messaging costs, see Amazon Web Services IoT Core\n pricing - Messaging.

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

To retrieve the next set of results, the nextToken\n value from a previous response; otherwise null to receive\n the first set of results.

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

The maximum number of results to return at one time.

", "smithy.api#httpQuery": "maxResults" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#ListRetainedMessagesResponse": { "type": "structure", "members": { "retainedTopics": { "target": "com.amazonaws.iotdataplane#RetainedMessageList", "traits": { "smithy.api#documentation": "

A summary list the account's retained messages. The information returned doesn't include\n the message payloads of the retained messages.

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

The token for the next set of results, or null if there are no additional results.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#ListSubscriptions": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#ListSubscriptionsRequest" }, "output": { "target": "com.amazonaws.iotdataplane#ListSubscriptionsResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#ForbiddenException" }, { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

Returns a list of all subscriptions for MQTT clients with active sessions, including offline clients with persistent sessions.

\n

Requires permission to access the ListSubscriptions action.

", "smithy.api#http": { "method": "GET", "uri": "/connections/{clientId}/subscriptions", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "items": "subscriptions", "pageSize": "maxResults" } } }, "com.amazonaws.iotdataplane#ListSubscriptionsRequest": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.iotdataplane#ClientId", "traits": { "smithy.api#documentation": "

The unique identifier of the MQTT client to list subscriptions for. The client ID can't start with a dollar sign ($).

\n

MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.

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

To retrieve the next set of results, the nextToken\n value from a previous response; otherwise null to receive\n the first set of results.

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

The maximum number of subscriptions to return in a single request. By default, this is set to 20.

", "smithy.api#httpQuery": "maxResults" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#ListSubscriptionsResponse": { "type": "structure", "members": { "subscriptions": { "target": "com.amazonaws.iotdataplane#SubscriptionList", "traits": { "smithy.api#documentation": "

A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.

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

The token to use to get the next set of results, or null if there are no additional results.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#MaxResults": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 200 } } }, "com.amazonaws.iotdataplane#MessageExpiry": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#MethodNotAllowedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The specified combination of HTTP verb and URI is not supported.

", "smithy.api#error": "client", "smithy.api#httpError": 405 } }, "com.amazonaws.iotdataplane#NamedShadowList": { "type": "list", "member": { "target": "com.amazonaws.iotdataplane#ShadowName" } }, "com.amazonaws.iotdataplane#NextToken": { "type": "string" }, "com.amazonaws.iotdataplane#PageSize": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.iotdataplane#Payload": { "type": "blob" }, "com.amazonaws.iotdataplane#PayloadFormatIndicator": { "type": "enum", "members": { "UNSPECIFIED_BYTES": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "UNSPECIFIED_BYTES" } }, "UTF8_DATA": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "UTF8_DATA" } } } }, "com.amazonaws.iotdataplane#PayloadSize": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#PreventWillMessage": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#Publish": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#PublishRequest" }, "output": { "target": "smithy.api#Unit" }, "errors": [ { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" } ], "traits": { "smithy.api#documentation": "

Publishes an MQTT message.

\n

Requires permission to access the Publish action.

\n

For more information about MQTT messages, see \n MQTT Protocol in the\n IoT Developer Guide.

\n

For more information about messaging costs, see Amazon Web Services IoT Core\n pricing - Messaging.

", "smithy.api#http": { "method": "POST", "uri": "/topics/{topic}", "code": 200 } } }, "com.amazonaws.iotdataplane#PublishRequest": { "type": "structure", "members": { "topic": { "target": "com.amazonaws.iotdataplane#Topic", "traits": { "smithy.api#documentation": "

The name of the MQTT topic.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "qos": { "target": "com.amazonaws.iotdataplane#Qos", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The Quality of Service (QoS) level. The default QoS level is 0.

", "smithy.api#httpQuery": "qos" } }, "retain": { "target": "com.amazonaws.iotdataplane#Retain", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

A Boolean value that determines whether to set the RETAIN flag when the message is published.

\n

Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.

\n

Valid values: true | false\n

\n

Default value: false\n

", "smithy.api#httpQuery": "retain" } }, "payload": { "target": "com.amazonaws.iotdataplane#Payload", "traits": { "smithy.api#documentation": "

The message body. MQTT accepts text, binary, and empty (null) message payloads.

\n

Publishing an empty (null) payload with retain =\n true deletes the retained message identified by topic from Amazon Web Services IoT Core.

", "smithy.api#httpPayload": {} } }, "userProperties": { "target": "com.amazonaws.iotdataplane#SynthesizedJsonUserProperties", "traits": { "smithy.api#documentation": "

A JSON string that contains an array of JSON objects. If you don\u2019t use Amazon Web Services SDK or CLI,\n you must encode the JSON string to base64 format before adding it to the HTTP header.\n userProperties is an HTTP header value in the API.

\n

The following example userProperties parameter is a JSON string which\n represents two User Properties. Note that it needs to be base64-encoded:

\n

\n [{\"deviceName\": \"alpha\"}, {\"deviceCnt\": \"45\"}]\n

", "smithy.api#httpHeader": "x-amz-mqtt5-user-properties" } }, "payloadFormatIndicator": { "target": "com.amazonaws.iotdataplane#PayloadFormatIndicator", "traits": { "smithy.api#documentation": "

An Enum string value that indicates whether the payload is formatted as\n UTF-8. payloadFormatIndicator is an HTTP header value in the API.

", "smithy.api#httpHeader": "x-amz-mqtt5-payload-format-indicator" } }, "contentType": { "target": "com.amazonaws.iotdataplane#ContentType", "traits": { "smithy.api#documentation": "

A UTF-8 encoded string that describes the content of the publishing message.

", "smithy.api#httpQuery": "contentType" } }, "responseTopic": { "target": "com.amazonaws.iotdataplane#ResponseTopic", "traits": { "smithy.api#documentation": "

A UTF-8 encoded string that's used as the topic name for a response message. The response\n topic is used to describe the topic which the receiver should publish to as part of the\n request-response flow. The topic must not contain wildcard characters.

", "smithy.api#httpQuery": "responseTopic" } }, "correlationData": { "target": "com.amazonaws.iotdataplane#CorrelationData", "traits": { "smithy.api#documentation": "

The base64-encoded binary data used by the sender of the request message to identify which\n request the response message is for when it's received. correlationData is an\n HTTP header value in the API.

", "smithy.api#httpHeader": "x-amz-mqtt5-correlation-data" } }, "messageExpiry": { "target": "com.amazonaws.iotdataplane#MessageExpiry", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

A user-defined integer value that represents the message expiry interval in seconds. If\n absent, the message doesn't expire. For more information about the limits of\n messageExpiry, see Amazon Web Services IoT Core message broker and\n protocol limits and quotas from the Amazon Web Services Reference Guide.

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

The input for the Publish operation.

", "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#Qos": { "type": "integer", "traits": { "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 1 } } }, "com.amazonaws.iotdataplane#RequestEntityTooLargeException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The payload exceeds the maximum size allowed.

", "smithy.api#error": "client", "smithy.api#httpError": 413 } }, "com.amazonaws.iotdataplane#ResourceNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The specified resource does not exist.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.iotdataplane#ResponseMessage": { "type": "string" }, "com.amazonaws.iotdataplane#ResponseTopic": { "type": "string" }, "com.amazonaws.iotdataplane#Retain": { "type": "boolean", "traits": { "smithy.api#default": false } }, "com.amazonaws.iotdataplane#RetainedMessageList": { "type": "list", "member": { "target": "com.amazonaws.iotdataplane#RetainedMessageSummary" } }, "com.amazonaws.iotdataplane#RetainedMessageSummary": { "type": "structure", "members": { "topic": { "target": "com.amazonaws.iotdataplane#Topic", "traits": { "smithy.api#documentation": "

The topic name to which the retained message was published.

" } }, "payloadSize": { "target": "com.amazonaws.iotdataplane#PayloadSize", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The size of the retained message's payload in bytes.

" } }, "qos": { "target": "com.amazonaws.iotdataplane#Qos", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The quality of service (QoS) level used to publish the retained message.

" } }, "lastModifiedTime": { "target": "com.amazonaws.iotdataplane#Timestamp", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

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

Information about a single retained message.

" } }, "com.amazonaws.iotdataplane#SendDirectMessage": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#SendDirectMessageRequest" }, "output": { "target": "com.amazonaws.iotdataplane#SendDirectMessageResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#ForbiddenException" }, { "target": "com.amazonaws.iotdataplane#GatewayTimeoutException" }, { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#RequestEntityTooLargeException" }, { "target": "com.amazonaws.iotdataplane#ResourceNotFoundException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" } ], "traits": { "smithy.api#documentation": "

Sends an MQTT message directly to a specific client identified by its client ID.

\n

\n SendDirectMessage targets a single client ID. The receiving client does not\n need to subscribe to the topic, but the receiver's policy must allow iot:Receive on the specified topic.

\n

Requires permission to access the SendDirectMessage action.

\n

For more information about messaging costs, see Amazon Web Services IoT Core\n pricing.

", "smithy.api#http": { "method": "POST", "uri": "/connections/{clientId}/messages", "code": 200 } } }, "com.amazonaws.iotdataplane#SendDirectMessageRequest": { "type": "structure", "members": { "clientId": { "target": "com.amazonaws.iotdataplane#ClientId", "traits": { "smithy.api#documentation": "

The unique identifier of the MQTT client to send the message to.

\n

Client IDs must not exceed 128 characters and can't start with a dollar sign ($).\n MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are\n not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.\n For more information, see Amazon Web Services IoT Core message broker and\n protocol limits and quotas.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "topic": { "target": "com.amazonaws.iotdataplane#Topic", "traits": { "smithy.api#documentation": "

The topic of the outbound MQTT Publish message to the receiving client.\n For more information, see Amazon Web Services IoT Core message broker and\n protocol limits and quotas.

", "smithy.api#httpQuery": "topic", "smithy.api#required": {} } }, "contentType": { "target": "com.amazonaws.iotdataplane#ContentType", "traits": { "smithy.api#documentation": "

The MQTT5 content type property forwarded to the receiving client\n (for example, application/json).

", "smithy.api#httpQuery": "contentType" } }, "responseTopic": { "target": "com.amazonaws.iotdataplane#ResponseTopic", "traits": { "smithy.api#documentation": "

A UTF-8 encoded string that's used as the topic name for a response message. The response\n topic describes the topic which the receiver should publish to as part of the\n request-response flow. The topic must not contain wildcard characters.\n For more information, see Amazon Web Services IoT Core message broker and\n protocol limits and quotas.

", "smithy.api#httpQuery": "responseTopic" } }, "confirmation": { "target": "com.amazonaws.iotdataplane#Confirmation", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.

\n

When set to true, the API delivers the message at QoS 1 and waits for\n the client to send a delivery confirmation (PUBACK) before returning a successful response. If\n delivery confirmation is not received within the specified timeout period,\n the API returns HTTP 504.

\n

When set to false, the API delivers the message at QoS 0 and returns\n after Amazon Web Services IoT Core attempts to deliver the message.

\n

Valid values: true | false\n

\n

Default value: false\n

", "smithy.api#httpQuery": "confirmation" } }, "timeout": { "target": "com.amazonaws.iotdataplane#TimeoutInSeconds", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the\n receiving client after the message has been delivered. This parameter is only used when\n confirmation is set to true. If confirmation\n is false, this parameter is ignored.

\n

The total API response time may be higher than this value due to internal processing.\n Set your HTTP client timeout to a value greater than this parameter.

\n

Valid range: 1 to 15 seconds.

\n

Default value: 5 seconds.

", "smithy.api#httpQuery": "timeout" } }, "payload": { "target": "com.amazonaws.iotdataplane#Payload", "traits": { "smithy.api#documentation": "

The message body. MQTT accepts text, binary, and empty (null) message payloads.

", "smithy.api#httpPayload": {} } }, "userProperties": { "target": "com.amazonaws.iotdataplane#SynthesizedJsonUserProperties", "traits": { "smithy.api#documentation": "

A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI,\n you must encode the JSON string to base64 format before adding it to the HTTP header.\n userProperties is an HTTP header value in the API.

\n

For MQTT 3.1.1 clients, user properties are silently dropped.

\n

The following example userProperties parameter is a JSON string which\n represents two User Properties. Note that it needs to be base64-encoded:

\n

\n [{\"deviceName\": \"alpha\"}, {\"deviceCnt\": \"45\"}]\n

", "smithy.api#httpHeader": "x-amz-mqtt5-user-properties" } }, "payloadFormatIndicator": { "target": "com.amazonaws.iotdataplane#PayloadFormatIndicator", "traits": { "smithy.api#documentation": "

An Enum string value that indicates whether the payload is formatted as\n UTF-8. payloadFormatIndicator is an HTTP header value in the API.

", "smithy.api#httpHeader": "x-amz-mqtt5-payload-format-indicator" } }, "correlationData": { "target": "com.amazonaws.iotdataplane#CorrelationData", "traits": { "smithy.api#documentation": "

The base64-encoded binary data used by the sender of the request message to identify which\n request the response message is for when it's received. correlationData is an\n HTTP header value in the API.

", "smithy.api#httpHeader": "x-amz-mqtt5-correlation-data" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#SendDirectMessageResponse": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#ResponseMessage", "traits": { "smithy.api#documentation": "

The status message indicating the result of the operation.

" } }, "traceId": { "target": "com.amazonaws.iotdataplane#TraceId", "traits": { "smithy.api#documentation": "

A unique identifier for the request. Include this value when contacting Amazon Web Services Support for troubleshooting.

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

The output from the SendDirectMessage operation.

", "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#ServiceUnavailableException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The service is temporarily unavailable.

", "smithy.api#error": "server", "smithy.api#httpError": 503 } }, "com.amazonaws.iotdataplane#SessionExpiry": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#ShadowName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 }, "smithy.api#pattern": "^[$a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iotdataplane#SourceIp": { "type": "string" }, "com.amazonaws.iotdataplane#SourcePort": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#SubscriptionList": { "type": "list", "member": { "target": "com.amazonaws.iotdataplane#SubscriptionSummary" } }, "com.amazonaws.iotdataplane#SubscriptionSummary": { "type": "structure", "members": { "topicFilter": { "target": "com.amazonaws.iotdataplane#TopicFilter", "traits": { "smithy.api#documentation": "

The topic filter pattern that the client is subscribed to. May include MQTT wildcards such as + (single-level) and # (multi-level).

", "smithy.api#required": {} } }, "qos": { "target": "com.amazonaws.iotdataplane#Qos", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The Quality of Service (QoS) level for the subscription. Valid values are 0 (at most once) and 1 (at least once).

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

Contains information about a subscription for an MQTT client, including the topic filter and Quality of Service (QoS) level.

" } }, "com.amazonaws.iotdataplane#SynthesizedJsonUserProperties": { "type": "string", "traits": { "smithy.api#mediaType": "application/json" } }, "com.amazonaws.iotdataplane#TargetIp": { "type": "string" }, "com.amazonaws.iotdataplane#TargetPort": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#ThingName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iotdataplane#ThrottlingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The rate exceeds the limit.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.iotdataplane#TimeoutInSeconds": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#Timestamp": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.iotdataplane#Topic": { "type": "string" }, "com.amazonaws.iotdataplane#TopicFilter": { "type": "string" }, "com.amazonaws.iotdataplane#TraceId": { "type": "string" }, "com.amazonaws.iotdataplane#UnauthorizedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

You are not authorized to perform this operation.

", "smithy.api#error": "client", "smithy.api#httpError": 401 } }, "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.iotdataplane#errorMessage", "traits": { "smithy.api#documentation": "

The message for the exception.

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

The document encoding is not supported.

", "smithy.api#error": "client", "smithy.api#httpError": 415 } }, "com.amazonaws.iotdataplane#UpdateThingShadow": { "type": "operation", "input": { "target": "com.amazonaws.iotdataplane#UpdateThingShadowRequest" }, "output": { "target": "com.amazonaws.iotdataplane#UpdateThingShadowResponse" }, "errors": [ { "target": "com.amazonaws.iotdataplane#ConflictException" }, { "target": "com.amazonaws.iotdataplane#InternalFailureException" }, { "target": "com.amazonaws.iotdataplane#InvalidRequestException" }, { "target": "com.amazonaws.iotdataplane#MethodNotAllowedException" }, { "target": "com.amazonaws.iotdataplane#RequestEntityTooLargeException" }, { "target": "com.amazonaws.iotdataplane#ServiceUnavailableException" }, { "target": "com.amazonaws.iotdataplane#ThrottlingException" }, { "target": "com.amazonaws.iotdataplane#UnauthorizedException" }, { "target": "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException" } ], "traits": { "smithy.api#documentation": "

Updates the shadow for the specified thing.

\n

Requires permission to access the UpdateThingShadow action.

\n

For more information, see UpdateThingShadow in the\n IoT Developer Guide.

", "smithy.api#http": { "method": "POST", "uri": "/things/{thingName}/shadow", "code": 200 } } }, "com.amazonaws.iotdataplane#UpdateThingShadowRequest": { "type": "structure", "members": { "thingName": { "target": "com.amazonaws.iotdataplane#ThingName", "traits": { "smithy.api#documentation": "

The name of the thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "shadowName": { "target": "com.amazonaws.iotdataplane#ShadowName", "traits": { "smithy.api#documentation": "

The name of the shadow.

", "smithy.api#httpQuery": "name" } }, "payload": { "target": "com.amazonaws.iotdataplane#JsonDocument", "traits": { "smithy.api#documentation": "

The state information, in JSON format.

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

The input for the UpdateThingShadow operation.

", "smithy.api#input": {} } }, "com.amazonaws.iotdataplane#UpdateThingShadowResponse": { "type": "structure", "members": { "payload": { "target": "com.amazonaws.iotdataplane#JsonDocument", "traits": { "smithy.api#documentation": "

The state information, in JSON format.

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

The output from the UpdateThingShadow operation.

", "smithy.api#output": {} } }, "com.amazonaws.iotdataplane#UserPropertiesBlob": { "type": "blob" }, "com.amazonaws.iotdataplane#VpcEndpointId": { "type": "string" }, "com.amazonaws.iotdataplane#errorMessage": { "type": "string" } } }