# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::IoTDataPlane module Types # The specified version does not match the version of the document. # # @!attribute [rw] message # The message for the exception. # @return [String] # class ConflictException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The input for the DeleteThingShadow operation. # # @note When making an API call, you may pass DeleteThingShadowRequest # data as a hash: # # { # thing_name: "ThingName", # required # shadow_name: "ShadowName", # } # # @!attribute [rw] thing_name # The name of the thing. # @return [String] # # @!attribute [rw] shadow_name # The name of the shadow. # @return [String] # class DeleteThingShadowRequest < Struct.new( :thing_name, :shadow_name) SENSITIVE = [] include Aws::Structure end # The output from the DeleteThingShadow operation. # # @!attribute [rw] payload # The state information, in JSON format. # @return [String] # class DeleteThingShadowResponse < Struct.new( :payload) SENSITIVE = [] include Aws::Structure end # The input for the GetThingShadow operation. # # @note When making an API call, you may pass GetThingShadowRequest # data as a hash: # # { # thing_name: "ThingName", # required # shadow_name: "ShadowName", # } # # @!attribute [rw] thing_name # The name of the thing. # @return [String] # # @!attribute [rw] shadow_name # The name of the shadow. # @return [String] # class GetThingShadowRequest < Struct.new( :thing_name, :shadow_name) SENSITIVE = [] include Aws::Structure end # The output from the GetThingShadow operation. # # @!attribute [rw] payload # The state information, in JSON format. # @return [String] # class GetThingShadowResponse < Struct.new( :payload) SENSITIVE = [] include Aws::Structure end # An unexpected error has occurred. # # @!attribute [rw] message # The message for the exception. # @return [String] # class InternalFailureException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The request is not valid. # # @!attribute [rw] message # The message for the exception. # @return [String] # class InvalidRequestException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # @note When making an API call, you may pass ListNamedShadowsForThingRequest # data as a hash: # # { # thing_name: "ThingName", # required # next_token: "NextToken", # page_size: 1, # } # # @!attribute [rw] thing_name # The name of the thing. # @return [String] # # @!attribute [rw] next_token # The token to retrieve the next set of results. # @return [String] # # @!attribute [rw] page_size # The result page size. # @return [Integer] # class ListNamedShadowsForThingRequest < Struct.new( :thing_name, :next_token, :page_size) SENSITIVE = [] include Aws::Structure end # @!attribute [rw] results # The list of shadows for the specified thing. # @return [Array] # # @!attribute [rw] next_token # The token for the next set of results, or null if there are no # additional results. # @return [String] # # @!attribute [rw] timestamp # The Epoch date and time the response was generated by AWS IoT. # @return [Integer] # class ListNamedShadowsForThingResponse < Struct.new( :results, :next_token, :timestamp) SENSITIVE = [] include Aws::Structure end # The specified combination of HTTP verb and URI is not supported. # # @!attribute [rw] message # The message for the exception. # @return [String] # class MethodNotAllowedException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The input for the Publish operation. # # @note When making an API call, you may pass PublishRequest # data as a hash: # # { # topic: "Topic", # required # qos: 1, # payload: "data", # } # # @!attribute [rw] topic # The name of the MQTT topic. # @return [String] # # @!attribute [rw] qos # The Quality of Service (QoS) level. # @return [Integer] # # @!attribute [rw] payload # The state information, in JSON format. # @return [String] # class PublishRequest < Struct.new( :topic, :qos, :payload) SENSITIVE = [] include Aws::Structure end # The payload exceeds the maximum size allowed. # # @!attribute [rw] message # The message for the exception. # @return [String] # class RequestEntityTooLargeException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The specified resource does not exist. # # @!attribute [rw] message # The message for the exception. # @return [String] # class ResourceNotFoundException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The service is temporarily unavailable. # # @!attribute [rw] message # The message for the exception. # @return [String] # class ServiceUnavailableException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The rate exceeds the limit. # # @!attribute [rw] message # The message for the exception. # @return [String] # class ThrottlingException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # You are not authorized to perform this operation. # # @!attribute [rw] message # The message for the exception. # @return [String] # class UnauthorizedException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The document encoding is not supported. # # @!attribute [rw] message # The message for the exception. # @return [String] # class UnsupportedDocumentEncodingException < Struct.new( :message) SENSITIVE = [] include Aws::Structure end # The input for the UpdateThingShadow operation. # # @note When making an API call, you may pass UpdateThingShadowRequest # data as a hash: # # { # thing_name: "ThingName", # required # shadow_name: "ShadowName", # payload: "data", # required # } # # @!attribute [rw] thing_name # The name of the thing. # @return [String] # # @!attribute [rw] shadow_name # The name of the shadow. # @return [String] # # @!attribute [rw] payload # The state information, in JSON format. # @return [String] # class UpdateThingShadowRequest < Struct.new( :thing_name, :shadow_name, :payload) SENSITIVE = [] include Aws::Structure end # The output from the UpdateThingShadow operation. # # @!attribute [rw] payload # The state information, in JSON format. # @return [String] # class UpdateThingShadowResponse < Struct.new( :payload) SENSITIVE = [] include Aws::Structure end end end