Documentation ¶
Overview ¶
Package iot1clickdevicesservice provides the client and types for making API requests to AWS IoT 1-Click Devices Service.
Stub description ¶
See https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14 for more information on this service.
See iot1clickdevicesservice package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/iot1clickdevicesservice/
Using the Client ¶
To contact AWS IoT 1-Click Devices Service with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS IoT 1-Click Devices Service client IoT1ClickDevicesService for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/iot1clickdevicesservice/#New
Index ¶
- Constants
- type Attributes
- type ClaimDevicesByClaimCodeInput
- type ClaimDevicesByClaimCodeOutput
- type DescribeDeviceInput
- type DescribeDeviceOutput
- type Device
- type DeviceDescription
- func (s DeviceDescription) GoString() string
- func (s *DeviceDescription) SetAttributes(v map[string]*string) *DeviceDescription
- func (s *DeviceDescription) SetDeviceId(v string) *DeviceDescription
- func (s *DeviceDescription) SetEnabled(v bool) *DeviceDescription
- func (s *DeviceDescription) SetRemainingLife(v float64) *DeviceDescription
- func (s *DeviceDescription) SetType(v string) *DeviceDescription
- func (s DeviceDescription) String() string
- type DeviceEvent
- type DeviceMethod
- type FinalizeDeviceClaimInput
- type FinalizeDeviceClaimOutput
- type GetDeviceMethodsInput
- type GetDeviceMethodsOutput
- type InitiateDeviceClaimInput
- type InitiateDeviceClaimOutput
- type InvokeDeviceMethodInput
- func (s InvokeDeviceMethodInput) GoString() string
- func (s *InvokeDeviceMethodInput) SetDeviceId(v string) *InvokeDeviceMethodInput
- func (s *InvokeDeviceMethodInput) SetDeviceMethod(v *DeviceMethod) *InvokeDeviceMethodInput
- func (s *InvokeDeviceMethodInput) SetDeviceMethodParameters(v string) *InvokeDeviceMethodInput
- func (s InvokeDeviceMethodInput) String() string
- func (s *InvokeDeviceMethodInput) Validate() error
- type InvokeDeviceMethodOutput
- type IoT1ClickDevicesService
- func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCode(input *ClaimDevicesByClaimCodeInput) (*ClaimDevicesByClaimCodeOutput, error)
- func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCodeRequest(input *ClaimDevicesByClaimCodeInput) (req *request.Request, output *ClaimDevicesByClaimCodeOutput)
- func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCodeWithContext(ctx aws.Context, input *ClaimDevicesByClaimCodeInput, opts ...request.Option) (*ClaimDevicesByClaimCodeOutput, error)
- func (c *IoT1ClickDevicesService) DescribeDevice(input *DescribeDeviceInput) (*DescribeDeviceOutput, error)
- func (c *IoT1ClickDevicesService) DescribeDeviceRequest(input *DescribeDeviceInput) (req *request.Request, output *DescribeDeviceOutput)
- func (c *IoT1ClickDevicesService) DescribeDeviceWithContext(ctx aws.Context, input *DescribeDeviceInput, opts ...request.Option) (*DescribeDeviceOutput, error)
- func (c *IoT1ClickDevicesService) FinalizeDeviceClaim(input *FinalizeDeviceClaimInput) (*FinalizeDeviceClaimOutput, error)
- func (c *IoT1ClickDevicesService) FinalizeDeviceClaimRequest(input *FinalizeDeviceClaimInput) (req *request.Request, output *FinalizeDeviceClaimOutput)
- func (c *IoT1ClickDevicesService) FinalizeDeviceClaimWithContext(ctx aws.Context, input *FinalizeDeviceClaimInput, opts ...request.Option) (*FinalizeDeviceClaimOutput, error)
- func (c *IoT1ClickDevicesService) GetDeviceMethods(input *GetDeviceMethodsInput) (*GetDeviceMethodsOutput, error)
- func (c *IoT1ClickDevicesService) GetDeviceMethodsRequest(input *GetDeviceMethodsInput) (req *request.Request, output *GetDeviceMethodsOutput)
- func (c *IoT1ClickDevicesService) GetDeviceMethodsWithContext(ctx aws.Context, input *GetDeviceMethodsInput, opts ...request.Option) (*GetDeviceMethodsOutput, error)
- func (c *IoT1ClickDevicesService) InitiateDeviceClaim(input *InitiateDeviceClaimInput) (*InitiateDeviceClaimOutput, error)
- func (c *IoT1ClickDevicesService) InitiateDeviceClaimRequest(input *InitiateDeviceClaimInput) (req *request.Request, output *InitiateDeviceClaimOutput)
- func (c *IoT1ClickDevicesService) InitiateDeviceClaimWithContext(ctx aws.Context, input *InitiateDeviceClaimInput, opts ...request.Option) (*InitiateDeviceClaimOutput, error)
- func (c *IoT1ClickDevicesService) InvokeDeviceMethod(input *InvokeDeviceMethodInput) (*InvokeDeviceMethodOutput, error)
- func (c *IoT1ClickDevicesService) InvokeDeviceMethodRequest(input *InvokeDeviceMethodInput) (req *request.Request, output *InvokeDeviceMethodOutput)
- func (c *IoT1ClickDevicesService) InvokeDeviceMethodWithContext(ctx aws.Context, input *InvokeDeviceMethodInput, opts ...request.Option) (*InvokeDeviceMethodOutput, error)
- func (c *IoT1ClickDevicesService) ListDeviceEvents(input *ListDeviceEventsInput) (*ListDeviceEventsOutput, error)
- func (c *IoT1ClickDevicesService) ListDeviceEventsRequest(input *ListDeviceEventsInput) (req *request.Request, output *ListDeviceEventsOutput)
- func (c *IoT1ClickDevicesService) ListDeviceEventsWithContext(ctx aws.Context, input *ListDeviceEventsInput, opts ...request.Option) (*ListDeviceEventsOutput, error)
- func (c *IoT1ClickDevicesService) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error)
- func (c *IoT1ClickDevicesService) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput)
- func (c *IoT1ClickDevicesService) ListDevicesWithContext(ctx aws.Context, input *ListDevicesInput, opts ...request.Option) (*ListDevicesOutput, error)
- func (c *IoT1ClickDevicesService) UnclaimDevice(input *UnclaimDeviceInput) (*UnclaimDeviceOutput, error)
- func (c *IoT1ClickDevicesService) UnclaimDeviceRequest(input *UnclaimDeviceInput) (req *request.Request, output *UnclaimDeviceOutput)
- func (c *IoT1ClickDevicesService) UnclaimDeviceWithContext(ctx aws.Context, input *UnclaimDeviceInput, opts ...request.Option) (*UnclaimDeviceOutput, error)
- func (c *IoT1ClickDevicesService) UpdateDeviceState(input *UpdateDeviceStateInput) (*UpdateDeviceStateOutput, error)
- func (c *IoT1ClickDevicesService) UpdateDeviceStateRequest(input *UpdateDeviceStateInput) (req *request.Request, output *UpdateDeviceStateOutput)
- func (c *IoT1ClickDevicesService) UpdateDeviceStateWithContext(ctx aws.Context, input *UpdateDeviceStateInput, opts ...request.Option) (*UpdateDeviceStateOutput, error)
- type ListDeviceEventsInput
- func (s ListDeviceEventsInput) GoString() string
- func (s *ListDeviceEventsInput) SetDeviceId(v string) *ListDeviceEventsInput
- func (s *ListDeviceEventsInput) SetFromTimeStamp(v time.Time) *ListDeviceEventsInput
- func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput
- func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput
- func (s *ListDeviceEventsInput) SetToTimeStamp(v time.Time) *ListDeviceEventsInput
- func (s ListDeviceEventsInput) String() string
- func (s *ListDeviceEventsInput) Validate() error
- type ListDeviceEventsOutput
- type ListDevicesInput
- func (s ListDevicesInput) GoString() string
- func (s *ListDevicesInput) SetDeviceType(v string) *ListDevicesInput
- func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput
- func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput
- func (s ListDevicesInput) String() string
- func (s *ListDevicesInput) Validate() error
- type ListDevicesOutput
- type UnclaimDeviceInput
- type UnclaimDeviceOutput
- type UpdateDeviceStateInput
- func (s UpdateDeviceStateInput) GoString() string
- func (s *UpdateDeviceStateInput) SetDeviceId(v string) *UpdateDeviceStateInput
- func (s *UpdateDeviceStateInput) SetEnabled(v bool) *UpdateDeviceStateInput
- func (s UpdateDeviceStateInput) String() string
- func (s *UpdateDeviceStateInput) Validate() error
- type UpdateDeviceStateOutput
Constants ¶
const ( // ErrCodeForbiddenException for service response error code // "ForbiddenException". ErrCodeForbiddenException = "ForbiddenException" // ErrCodeInternalFailureException for service response error code // "InternalFailureException". ErrCodeInternalFailureException = "InternalFailureException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodePreconditionFailedException for service response error code // "PreconditionFailedException". ErrCodePreconditionFailedException = "PreconditionFailedException" // ErrCodeRangeNotSatisfiableException for service response error code // "RangeNotSatisfiableException". ErrCodeRangeNotSatisfiableException = "RangeNotSatisfiableException" // ErrCodeResourceConflictException for service response error code // "ResourceConflictException". ErrCodeResourceConflictException = "ResourceConflictException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". ErrCodeResourceNotFoundException = "ResourceNotFoundException" )
const ( ServiceName = "devices.iot1click" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
func (Attributes) GoString ¶
func (s Attributes) GoString() string
GoString returns the string representation
func (Attributes) String ¶
func (s Attributes) String() string
String returns the string representation
type ClaimDevicesByClaimCodeInput ¶
type ClaimDevicesByClaimCodeInput struct { // ClaimCode is a required field ClaimCode *string `location:"uri" locationName:"claimCode" type:"string" required:"true"` // contains filtered or unexported fields }
func (ClaimDevicesByClaimCodeInput) GoString ¶
func (s ClaimDevicesByClaimCodeInput) GoString() string
GoString returns the string representation
func (*ClaimDevicesByClaimCodeInput) SetClaimCode ¶
func (s *ClaimDevicesByClaimCodeInput) SetClaimCode(v string) *ClaimDevicesByClaimCodeInput
SetClaimCode sets the ClaimCode field's value.
func (ClaimDevicesByClaimCodeInput) String ¶
func (s ClaimDevicesByClaimCodeInput) String() string
String returns the string representation
func (*ClaimDevicesByClaimCodeInput) Validate ¶
func (s *ClaimDevicesByClaimCodeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ClaimDevicesByClaimCodeOutput ¶
type ClaimDevicesByClaimCodeOutput struct { // The claim code provided by the device manufacturer. ClaimCode *string `locationName:"claimCode" min:"12" type:"string"` // The total number of devices associated with the claim code that has been // processed in the claim request. Total *int64 `locationName:"total" type:"integer"` // contains filtered or unexported fields }
func (ClaimDevicesByClaimCodeOutput) GoString ¶
func (s ClaimDevicesByClaimCodeOutput) GoString() string
GoString returns the string representation
func (*ClaimDevicesByClaimCodeOutput) SetClaimCode ¶
func (s *ClaimDevicesByClaimCodeOutput) SetClaimCode(v string) *ClaimDevicesByClaimCodeOutput
SetClaimCode sets the ClaimCode field's value.
func (*ClaimDevicesByClaimCodeOutput) SetTotal ¶
func (s *ClaimDevicesByClaimCodeOutput) SetTotal(v int64) *ClaimDevicesByClaimCodeOutput
SetTotal sets the Total field's value.
func (ClaimDevicesByClaimCodeOutput) String ¶
func (s ClaimDevicesByClaimCodeOutput) String() string
String returns the string representation
type DescribeDeviceInput ¶
type DescribeDeviceInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeDeviceInput) GoString ¶
func (s DescribeDeviceInput) GoString() string
GoString returns the string representation
func (*DescribeDeviceInput) SetDeviceId ¶
func (s *DescribeDeviceInput) SetDeviceId(v string) *DescribeDeviceInput
SetDeviceId sets the DeviceId field's value.
func (DescribeDeviceInput) String ¶
func (s DescribeDeviceInput) String() string
String returns the string representation
func (*DescribeDeviceInput) Validate ¶
func (s *DescribeDeviceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeDeviceOutput ¶
type DescribeDeviceOutput struct { // Device details. DeviceDescription *DeviceDescription `locationName:"deviceDescription" type:"structure"` // contains filtered or unexported fields }
func (DescribeDeviceOutput) GoString ¶
func (s DescribeDeviceOutput) GoString() string
GoString returns the string representation
func (*DescribeDeviceOutput) SetDeviceDescription ¶
func (s *DescribeDeviceOutput) SetDeviceDescription(v *DeviceDescription) *DescribeDeviceOutput
SetDeviceDescription sets the DeviceDescription field's value.
func (DescribeDeviceOutput) String ¶
func (s DescribeDeviceOutput) String() string
String returns the string representation
type Device ¶
type Device struct { // The user specified attributes associated with the device for an event. Attributes *Attributes `locationName:"attributes" type:"structure"` // The unique identifier of the device. DeviceId *string `locationName:"deviceId" type:"string"` // The device type, such as "button". Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
func (*Device) SetAttributes ¶
func (s *Device) SetAttributes(v *Attributes) *Device
SetAttributes sets the Attributes field's value.
func (*Device) SetDeviceId ¶
SetDeviceId sets the DeviceId field's value.
type DeviceDescription ¶
type DeviceDescription struct { // An array of zero or more elements of DeviceAttribute objects providing user // specified device attributes. Attributes map[string]*string `locationName:"attributes" type:"map"` // The unique identifier of the device. DeviceId *string `locationName:"deviceId" type:"string"` // A Boolean value indicating whether or not the device is enabled. Enabled *bool `locationName:"enabled" type:"boolean"` // A value between 0 and 1 inclusive, representing the fraction of life remaining // for the device. RemainingLife *float64 `locationName:"remainingLife" type:"double"` // The type of the device, such as "button". Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
func (DeviceDescription) GoString ¶
func (s DeviceDescription) GoString() string
GoString returns the string representation
func (*DeviceDescription) SetAttributes ¶
func (s *DeviceDescription) SetAttributes(v map[string]*string) *DeviceDescription
SetAttributes sets the Attributes field's value.
func (*DeviceDescription) SetDeviceId ¶
func (s *DeviceDescription) SetDeviceId(v string) *DeviceDescription
SetDeviceId sets the DeviceId field's value.
func (*DeviceDescription) SetEnabled ¶
func (s *DeviceDescription) SetEnabled(v bool) *DeviceDescription
SetEnabled sets the Enabled field's value.
func (*DeviceDescription) SetRemainingLife ¶
func (s *DeviceDescription) SetRemainingLife(v float64) *DeviceDescription
SetRemainingLife sets the RemainingLife field's value.
func (*DeviceDescription) SetType ¶
func (s *DeviceDescription) SetType(v string) *DeviceDescription
SetType sets the Type field's value.
func (DeviceDescription) String ¶
func (s DeviceDescription) String() string
String returns the string representation
type DeviceEvent ¶
type DeviceEvent struct { // An object representing the device associated with the event. Device *Device `locationName:"device" type:"structure"` // A serialized JSON object representing the device-type specific event. StdEvent *string `locationName:"stdEvent" type:"string"` // contains filtered or unexported fields }
func (DeviceEvent) GoString ¶
func (s DeviceEvent) GoString() string
GoString returns the string representation
func (*DeviceEvent) SetDevice ¶
func (s *DeviceEvent) SetDevice(v *Device) *DeviceEvent
SetDevice sets the Device field's value.
func (*DeviceEvent) SetStdEvent ¶
func (s *DeviceEvent) SetStdEvent(v string) *DeviceEvent
SetStdEvent sets the StdEvent field's value.
func (DeviceEvent) String ¶
func (s DeviceEvent) String() string
String returns the string representation
type DeviceMethod ¶
type DeviceMethod struct { // The type of the device, such as "button". DeviceType *string `locationName:"deviceType" type:"string"` // The name of the method applicable to the deviceType. MethodName *string `locationName:"methodName" type:"string"` // contains filtered or unexported fields }
func (DeviceMethod) GoString ¶
func (s DeviceMethod) GoString() string
GoString returns the string representation
func (*DeviceMethod) SetDeviceType ¶
func (s *DeviceMethod) SetDeviceType(v string) *DeviceMethod
SetDeviceType sets the DeviceType field's value.
func (*DeviceMethod) SetMethodName ¶
func (s *DeviceMethod) SetMethodName(v string) *DeviceMethod
SetMethodName sets the MethodName field's value.
func (DeviceMethod) String ¶
func (s DeviceMethod) String() string
String returns the string representation
type FinalizeDeviceClaimInput ¶
type FinalizeDeviceClaimInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // contains filtered or unexported fields }
func (FinalizeDeviceClaimInput) GoString ¶
func (s FinalizeDeviceClaimInput) GoString() string
GoString returns the string representation
func (*FinalizeDeviceClaimInput) SetDeviceId ¶
func (s *FinalizeDeviceClaimInput) SetDeviceId(v string) *FinalizeDeviceClaimInput
SetDeviceId sets the DeviceId field's value.
func (FinalizeDeviceClaimInput) String ¶
func (s FinalizeDeviceClaimInput) String() string
String returns the string representation
func (*FinalizeDeviceClaimInput) Validate ¶
func (s *FinalizeDeviceClaimInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FinalizeDeviceClaimOutput ¶
type FinalizeDeviceClaimOutput struct { State *string `locationName:"state" type:"string"` // contains filtered or unexported fields }
func (FinalizeDeviceClaimOutput) GoString ¶
func (s FinalizeDeviceClaimOutput) GoString() string
GoString returns the string representation
func (*FinalizeDeviceClaimOutput) SetState ¶
func (s *FinalizeDeviceClaimOutput) SetState(v string) *FinalizeDeviceClaimOutput
SetState sets the State field's value.
func (FinalizeDeviceClaimOutput) String ¶
func (s FinalizeDeviceClaimOutput) String() string
String returns the string representation
type GetDeviceMethodsInput ¶
type GetDeviceMethodsInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetDeviceMethodsInput) GoString ¶
func (s GetDeviceMethodsInput) GoString() string
GoString returns the string representation
func (*GetDeviceMethodsInput) SetDeviceId ¶
func (s *GetDeviceMethodsInput) SetDeviceId(v string) *GetDeviceMethodsInput
SetDeviceId sets the DeviceId field's value.
func (GetDeviceMethodsInput) String ¶
func (s GetDeviceMethodsInput) String() string
String returns the string representation
func (*GetDeviceMethodsInput) Validate ¶
func (s *GetDeviceMethodsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetDeviceMethodsOutput ¶
type GetDeviceMethodsOutput struct { // List of available device APIs. DeviceMethods []*DeviceMethod `locationName:"deviceMethods" type:"list"` // contains filtered or unexported fields }
func (GetDeviceMethodsOutput) GoString ¶
func (s GetDeviceMethodsOutput) GoString() string
GoString returns the string representation
func (*GetDeviceMethodsOutput) SetDeviceMethods ¶
func (s *GetDeviceMethodsOutput) SetDeviceMethods(v []*DeviceMethod) *GetDeviceMethodsOutput
SetDeviceMethods sets the DeviceMethods field's value.
func (GetDeviceMethodsOutput) String ¶
func (s GetDeviceMethodsOutput) String() string
String returns the string representation
type InitiateDeviceClaimInput ¶
type InitiateDeviceClaimInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // contains filtered or unexported fields }
func (InitiateDeviceClaimInput) GoString ¶
func (s InitiateDeviceClaimInput) GoString() string
GoString returns the string representation
func (*InitiateDeviceClaimInput) SetDeviceId ¶
func (s *InitiateDeviceClaimInput) SetDeviceId(v string) *InitiateDeviceClaimInput
SetDeviceId sets the DeviceId field's value.
func (InitiateDeviceClaimInput) String ¶
func (s InitiateDeviceClaimInput) String() string
String returns the string representation
func (*InitiateDeviceClaimInput) Validate ¶
func (s *InitiateDeviceClaimInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InitiateDeviceClaimOutput ¶
type InitiateDeviceClaimOutput struct { State *string `locationName:"state" type:"string"` // contains filtered or unexported fields }
func (InitiateDeviceClaimOutput) GoString ¶
func (s InitiateDeviceClaimOutput) GoString() string
GoString returns the string representation
func (*InitiateDeviceClaimOutput) SetState ¶
func (s *InitiateDeviceClaimOutput) SetState(v string) *InitiateDeviceClaimOutput
SetState sets the State field's value.
func (InitiateDeviceClaimOutput) String ¶
func (s InitiateDeviceClaimOutput) String() string
String returns the string representation
type InvokeDeviceMethodInput ¶
type InvokeDeviceMethodInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // The device method to invoke. DeviceMethod *DeviceMethod `locationName:"deviceMethod" type:"structure"` // A JSON encoded string containing the device method request parameters. DeviceMethodParameters *string `locationName:"deviceMethodParameters" type:"string"` // contains filtered or unexported fields }
func (InvokeDeviceMethodInput) GoString ¶
func (s InvokeDeviceMethodInput) GoString() string
GoString returns the string representation
func (*InvokeDeviceMethodInput) SetDeviceId ¶
func (s *InvokeDeviceMethodInput) SetDeviceId(v string) *InvokeDeviceMethodInput
SetDeviceId sets the DeviceId field's value.
func (*InvokeDeviceMethodInput) SetDeviceMethod ¶
func (s *InvokeDeviceMethodInput) SetDeviceMethod(v *DeviceMethod) *InvokeDeviceMethodInput
SetDeviceMethod sets the DeviceMethod field's value.
func (*InvokeDeviceMethodInput) SetDeviceMethodParameters ¶
func (s *InvokeDeviceMethodInput) SetDeviceMethodParameters(v string) *InvokeDeviceMethodInput
SetDeviceMethodParameters sets the DeviceMethodParameters field's value.
func (InvokeDeviceMethodInput) String ¶
func (s InvokeDeviceMethodInput) String() string
String returns the string representation
func (*InvokeDeviceMethodInput) Validate ¶
func (s *InvokeDeviceMethodInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeDeviceMethodOutput ¶
type InvokeDeviceMethodOutput struct { // A JSON encoded string containing the device method response. DeviceMethodResponse *string `locationName:"deviceMethodResponse" type:"string"` // contains filtered or unexported fields }
func (InvokeDeviceMethodOutput) GoString ¶
func (s InvokeDeviceMethodOutput) GoString() string
GoString returns the string representation
func (*InvokeDeviceMethodOutput) SetDeviceMethodResponse ¶
func (s *InvokeDeviceMethodOutput) SetDeviceMethodResponse(v string) *InvokeDeviceMethodOutput
SetDeviceMethodResponse sets the DeviceMethodResponse field's value.
func (InvokeDeviceMethodOutput) String ¶
func (s InvokeDeviceMethodOutput) String() string
String returns the string representation
type IoT1ClickDevicesService ¶
IoT1ClickDevicesService provides the API operation methods for making requests to AWS IoT 1-Click Devices Service. See this package's package overview docs for details on the service.
IoT1ClickDevicesService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoT1ClickDevicesService
New creates a new instance of the IoT1ClickDevicesService client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a IoT1ClickDevicesService client from just a session. svc := iot1clickdevicesservice.New(mySession) // Create a IoT1ClickDevicesService client with additional configuration svc := iot1clickdevicesservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*IoT1ClickDevicesService) ClaimDevicesByClaimCode ¶
func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCode(input *ClaimDevicesByClaimCodeInput) (*ClaimDevicesByClaimCodeOutput, error)
ClaimDevicesByClaimCode API operation for AWS IoT 1-Click Devices Service.
Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation ClaimDevicesByClaimCode for usage and error information.
Returned Error Codes:
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
ErrCodeForbiddenException "ForbiddenException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode
func (*IoT1ClickDevicesService) ClaimDevicesByClaimCodeRequest ¶
func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCodeRequest(input *ClaimDevicesByClaimCodeInput) (req *request.Request, output *ClaimDevicesByClaimCodeOutput)
ClaimDevicesByClaimCodeRequest generates a "aws/request.Request" representing the client's request for the ClaimDevicesByClaimCode operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ClaimDevicesByClaimCode for more information on using the ClaimDevicesByClaimCode API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ClaimDevicesByClaimCodeRequest method. req, resp := client.ClaimDevicesByClaimCodeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode
func (*IoT1ClickDevicesService) ClaimDevicesByClaimCodeWithContext ¶
func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCodeWithContext(ctx aws.Context, input *ClaimDevicesByClaimCodeInput, opts ...request.Option) (*ClaimDevicesByClaimCodeOutput, error)
ClaimDevicesByClaimCodeWithContext is the same as ClaimDevicesByClaimCode with the addition of the ability to pass a context and additional request options.
See ClaimDevicesByClaimCode for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) DescribeDevice ¶
func (c *IoT1ClickDevicesService) DescribeDevice(input *DescribeDeviceInput) (*DescribeDeviceOutput, error)
DescribeDevice API operation for AWS IoT 1-Click Devices Service.
Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation DescribeDevice for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice
func (*IoT1ClickDevicesService) DescribeDeviceRequest ¶
func (c *IoT1ClickDevicesService) DescribeDeviceRequest(input *DescribeDeviceInput) (req *request.Request, output *DescribeDeviceOutput)
DescribeDeviceRequest generates a "aws/request.Request" representing the client's request for the DescribeDevice operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeDevice for more information on using the DescribeDevice API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeDeviceRequest method. req, resp := client.DescribeDeviceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice
func (*IoT1ClickDevicesService) DescribeDeviceWithContext ¶
func (c *IoT1ClickDevicesService) DescribeDeviceWithContext(ctx aws.Context, input *DescribeDeviceInput, opts ...request.Option) (*DescribeDeviceOutput, error)
DescribeDeviceWithContext is the same as DescribeDevice with the addition of the ability to pass a context and additional request options.
See DescribeDevice for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) FinalizeDeviceClaim ¶
func (c *IoT1ClickDevicesService) FinalizeDeviceClaim(input *FinalizeDeviceClaimInput) (*FinalizeDeviceClaimOutput, error)
FinalizeDeviceClaim API operation for AWS IoT 1-Click Devices Service.
Given a device ID, finalizes the claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation FinalizeDeviceClaim for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
ErrCodePreconditionFailedException "PreconditionFailedException"
ErrCodeResourceConflictException "ResourceConflictException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim
func (*IoT1ClickDevicesService) FinalizeDeviceClaimRequest ¶
func (c *IoT1ClickDevicesService) FinalizeDeviceClaimRequest(input *FinalizeDeviceClaimInput) (req *request.Request, output *FinalizeDeviceClaimOutput)
FinalizeDeviceClaimRequest generates a "aws/request.Request" representing the client's request for the FinalizeDeviceClaim operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See FinalizeDeviceClaim for more information on using the FinalizeDeviceClaim API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the FinalizeDeviceClaimRequest method. req, resp := client.FinalizeDeviceClaimRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim
func (*IoT1ClickDevicesService) FinalizeDeviceClaimWithContext ¶
func (c *IoT1ClickDevicesService) FinalizeDeviceClaimWithContext(ctx aws.Context, input *FinalizeDeviceClaimInput, opts ...request.Option) (*FinalizeDeviceClaimOutput, error)
FinalizeDeviceClaimWithContext is the same as FinalizeDeviceClaim with the addition of the ability to pass a context and additional request options.
See FinalizeDeviceClaim for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) GetDeviceMethods ¶
func (c *IoT1ClickDevicesService) GetDeviceMethods(input *GetDeviceMethodsInput) (*GetDeviceMethodsOutput, error)
GetDeviceMethods API operation for AWS IoT 1-Click Devices Service.
Given a device ID, returns the invokable methods associated with the device.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation GetDeviceMethods for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods
func (*IoT1ClickDevicesService) GetDeviceMethodsRequest ¶
func (c *IoT1ClickDevicesService) GetDeviceMethodsRequest(input *GetDeviceMethodsInput) (req *request.Request, output *GetDeviceMethodsOutput)
GetDeviceMethodsRequest generates a "aws/request.Request" representing the client's request for the GetDeviceMethods operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetDeviceMethods for more information on using the GetDeviceMethods API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetDeviceMethodsRequest method. req, resp := client.GetDeviceMethodsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods
func (*IoT1ClickDevicesService) GetDeviceMethodsWithContext ¶
func (c *IoT1ClickDevicesService) GetDeviceMethodsWithContext(ctx aws.Context, input *GetDeviceMethodsInput, opts ...request.Option) (*GetDeviceMethodsOutput, error)
GetDeviceMethodsWithContext is the same as GetDeviceMethods with the addition of the ability to pass a context and additional request options.
See GetDeviceMethods for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) InitiateDeviceClaim ¶
func (c *IoT1ClickDevicesService) InitiateDeviceClaim(input *InitiateDeviceClaimInput) (*InitiateDeviceClaimOutput, error)
InitiateDeviceClaim API operation for AWS IoT 1-Click Devices Service.
Given a device ID, initiates a claim request for the associated device.
Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation InitiateDeviceClaim for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
ErrCodeResourceConflictException "ResourceConflictException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim
func (*IoT1ClickDevicesService) InitiateDeviceClaimRequest ¶
func (c *IoT1ClickDevicesService) InitiateDeviceClaimRequest(input *InitiateDeviceClaimInput) (req *request.Request, output *InitiateDeviceClaimOutput)
InitiateDeviceClaimRequest generates a "aws/request.Request" representing the client's request for the InitiateDeviceClaim operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InitiateDeviceClaim for more information on using the InitiateDeviceClaim API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InitiateDeviceClaimRequest method. req, resp := client.InitiateDeviceClaimRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim
func (*IoT1ClickDevicesService) InitiateDeviceClaimWithContext ¶
func (c *IoT1ClickDevicesService) InitiateDeviceClaimWithContext(ctx aws.Context, input *InitiateDeviceClaimInput, opts ...request.Option) (*InitiateDeviceClaimOutput, error)
InitiateDeviceClaimWithContext is the same as InitiateDeviceClaim with the addition of the ability to pass a context and additional request options.
See InitiateDeviceClaim for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) InvokeDeviceMethod ¶
func (c *IoT1ClickDevicesService) InvokeDeviceMethod(input *InvokeDeviceMethodInput) (*InvokeDeviceMethodOutput, error)
InvokeDeviceMethod API operation for AWS IoT 1-Click Devices Service.
Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation InvokeDeviceMethod for usage and error information.
Returned Error Codes:
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodePreconditionFailedException "PreconditionFailedException"
ErrCodeInternalFailureException "InternalFailureException"
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException"
ErrCodeResourceConflictException "ResourceConflictException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod
func (*IoT1ClickDevicesService) InvokeDeviceMethodRequest ¶
func (c *IoT1ClickDevicesService) InvokeDeviceMethodRequest(input *InvokeDeviceMethodInput) (req *request.Request, output *InvokeDeviceMethodOutput)
InvokeDeviceMethodRequest generates a "aws/request.Request" representing the client's request for the InvokeDeviceMethod operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InvokeDeviceMethod for more information on using the InvokeDeviceMethod API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeDeviceMethodRequest method. req, resp := client.InvokeDeviceMethodRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod
func (*IoT1ClickDevicesService) InvokeDeviceMethodWithContext ¶
func (c *IoT1ClickDevicesService) InvokeDeviceMethodWithContext(ctx aws.Context, input *InvokeDeviceMethodInput, opts ...request.Option) (*InvokeDeviceMethodOutput, error)
InvokeDeviceMethodWithContext is the same as InvokeDeviceMethod with the addition of the ability to pass a context and additional request options.
See InvokeDeviceMethod for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) ListDeviceEvents ¶
func (c *IoT1ClickDevicesService) ListDeviceEvents(input *ListDeviceEventsInput) (*ListDeviceEventsOutput, error)
ListDeviceEvents API operation for AWS IoT 1-Click Devices Service.
Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation ListDeviceEvents for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents
func (*IoT1ClickDevicesService) ListDeviceEventsRequest ¶
func (c *IoT1ClickDevicesService) ListDeviceEventsRequest(input *ListDeviceEventsInput) (req *request.Request, output *ListDeviceEventsOutput)
ListDeviceEventsRequest generates a "aws/request.Request" representing the client's request for the ListDeviceEvents operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListDeviceEvents for more information on using the ListDeviceEvents API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListDeviceEventsRequest method. req, resp := client.ListDeviceEventsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents
func (*IoT1ClickDevicesService) ListDeviceEventsWithContext ¶
func (c *IoT1ClickDevicesService) ListDeviceEventsWithContext(ctx aws.Context, input *ListDeviceEventsInput, opts ...request.Option) (*ListDeviceEventsOutput, error)
ListDeviceEventsWithContext is the same as ListDeviceEvents with the addition of the ability to pass a context and additional request options.
See ListDeviceEvents for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) ListDevices ¶
func (c *IoT1ClickDevicesService) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error)
ListDevices API operation for AWS IoT 1-Click Devices Service.
Lists the 1-Click compatible devices associated with your AWS account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation ListDevices for usage and error information.
Returned Error Codes:
ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices
func (*IoT1ClickDevicesService) ListDevicesRequest ¶
func (c *IoT1ClickDevicesService) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput)
ListDevicesRequest generates a "aws/request.Request" representing the client's request for the ListDevices operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListDevices for more information on using the ListDevices API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListDevicesRequest method. req, resp := client.ListDevicesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices
func (*IoT1ClickDevicesService) ListDevicesWithContext ¶
func (c *IoT1ClickDevicesService) ListDevicesWithContext(ctx aws.Context, input *ListDevicesInput, opts ...request.Option) (*ListDevicesOutput, error)
ListDevicesWithContext is the same as ListDevices with the addition of the ability to pass a context and additional request options.
See ListDevices for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) UnclaimDevice ¶
func (c *IoT1ClickDevicesService) UnclaimDevice(input *UnclaimDeviceInput) (*UnclaimDeviceOutput, error)
UnclaimDevice API operation for AWS IoT 1-Click Devices Service.
Disassociates a device from your AWS account using its device ID.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation UnclaimDevice for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice
func (*IoT1ClickDevicesService) UnclaimDeviceRequest ¶
func (c *IoT1ClickDevicesService) UnclaimDeviceRequest(input *UnclaimDeviceInput) (req *request.Request, output *UnclaimDeviceOutput)
UnclaimDeviceRequest generates a "aws/request.Request" representing the client's request for the UnclaimDevice operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UnclaimDevice for more information on using the UnclaimDevice API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UnclaimDeviceRequest method. req, resp := client.UnclaimDeviceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice
func (*IoT1ClickDevicesService) UnclaimDeviceWithContext ¶
func (c *IoT1ClickDevicesService) UnclaimDeviceWithContext(ctx aws.Context, input *UnclaimDeviceInput, opts ...request.Option) (*UnclaimDeviceOutput, error)
UnclaimDeviceWithContext is the same as UnclaimDevice with the addition of the ability to pass a context and additional request options.
See UnclaimDevice for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*IoT1ClickDevicesService) UpdateDeviceState ¶
func (c *IoT1ClickDevicesService) UpdateDeviceState(input *UpdateDeviceStateInput) (*UpdateDeviceStateOutput, error)
UpdateDeviceState API operation for AWS IoT 1-Click Devices Service.
Using a Boolean value (true or false), this operation enables or disables the device given a device ID.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS IoT 1-Click Devices Service's API operation UpdateDeviceState for usage and error information.
Returned Error Codes:
ErrCodeResourceNotFoundException "ResourceNotFoundException"
ErrCodeInvalidRequestException "InvalidRequestException"
ErrCodeInternalFailureException "InternalFailureException"
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState
func (*IoT1ClickDevicesService) UpdateDeviceStateRequest ¶
func (c *IoT1ClickDevicesService) UpdateDeviceStateRequest(input *UpdateDeviceStateInput) (req *request.Request, output *UpdateDeviceStateOutput)
UpdateDeviceStateRequest generates a "aws/request.Request" representing the client's request for the UpdateDeviceState operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateDeviceState for more information on using the UpdateDeviceState API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateDeviceStateRequest method. req, resp := client.UpdateDeviceStateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState
func (*IoT1ClickDevicesService) UpdateDeviceStateWithContext ¶
func (c *IoT1ClickDevicesService) UpdateDeviceStateWithContext(ctx aws.Context, input *UpdateDeviceStateInput, opts ...request.Option) (*UpdateDeviceStateOutput, error)
UpdateDeviceStateWithContext is the same as UpdateDeviceState with the addition of the ability to pass a context and additional request options.
See UpdateDeviceState for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type ListDeviceEventsInput ¶
type ListDeviceEventsInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // FromTimeStamp is a required field FromTimeStamp *time.Time `location:"querystring" locationName:"fromTimeStamp" type:"timestamp" timestampFormat:"unix" required:"true"` MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` // ToTimeStamp is a required field ToTimeStamp *time.Time `location:"querystring" locationName:"toTimeStamp" type:"timestamp" timestampFormat:"unix" required:"true"` // contains filtered or unexported fields }
func (ListDeviceEventsInput) GoString ¶
func (s ListDeviceEventsInput) GoString() string
GoString returns the string representation
func (*ListDeviceEventsInput) SetDeviceId ¶
func (s *ListDeviceEventsInput) SetDeviceId(v string) *ListDeviceEventsInput
SetDeviceId sets the DeviceId field's value.
func (*ListDeviceEventsInput) SetFromTimeStamp ¶
func (s *ListDeviceEventsInput) SetFromTimeStamp(v time.Time) *ListDeviceEventsInput
SetFromTimeStamp sets the FromTimeStamp field's value.
func (*ListDeviceEventsInput) SetMaxResults ¶
func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput
SetMaxResults sets the MaxResults field's value.
func (*ListDeviceEventsInput) SetNextToken ¶
func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput
SetNextToken sets the NextToken field's value.
func (*ListDeviceEventsInput) SetToTimeStamp ¶
func (s *ListDeviceEventsInput) SetToTimeStamp(v time.Time) *ListDeviceEventsInput
SetToTimeStamp sets the ToTimeStamp field's value.
func (ListDeviceEventsInput) String ¶
func (s ListDeviceEventsInput) String() string
String returns the string representation
func (*ListDeviceEventsInput) Validate ¶
func (s *ListDeviceEventsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListDeviceEventsOutput ¶
type ListDeviceEventsOutput struct { Events []*DeviceEvent `locationName:"events" type:"list"` NextToken *string `locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListDeviceEventsOutput) GoString ¶
func (s ListDeviceEventsOutput) GoString() string
GoString returns the string representation
func (*ListDeviceEventsOutput) SetEvents ¶
func (s *ListDeviceEventsOutput) SetEvents(v []*DeviceEvent) *ListDeviceEventsOutput
SetEvents sets the Events field's value.
func (*ListDeviceEventsOutput) SetNextToken ¶
func (s *ListDeviceEventsOutput) SetNextToken(v string) *ListDeviceEventsOutput
SetNextToken sets the NextToken field's value.
func (ListDeviceEventsOutput) String ¶
func (s ListDeviceEventsOutput) String() string
String returns the string representation
type ListDevicesInput ¶
type ListDevicesInput struct { DeviceType *string `location:"querystring" locationName:"deviceType" type:"string"` MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListDevicesInput) GoString ¶
func (s ListDevicesInput) GoString() string
GoString returns the string representation
func (*ListDevicesInput) SetDeviceType ¶
func (s *ListDevicesInput) SetDeviceType(v string) *ListDevicesInput
SetDeviceType sets the DeviceType field's value.
func (*ListDevicesInput) SetMaxResults ¶
func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput
SetMaxResults sets the MaxResults field's value.
func (*ListDevicesInput) SetNextToken ¶
func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput
SetNextToken sets the NextToken field's value.
func (ListDevicesInput) String ¶
func (s ListDevicesInput) String() string
String returns the string representation
func (*ListDevicesInput) Validate ¶
func (s *ListDevicesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListDevicesOutput ¶
type ListDevicesOutput struct { // A list of devices. Devices []*DeviceDescription `locationName:"devices" type:"list"` // The token to retrieve the next set of results. NextToken *string `locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListDevicesOutput) GoString ¶
func (s ListDevicesOutput) GoString() string
GoString returns the string representation
func (*ListDevicesOutput) SetDevices ¶
func (s *ListDevicesOutput) SetDevices(v []*DeviceDescription) *ListDevicesOutput
SetDevices sets the Devices field's value.
func (*ListDevicesOutput) SetNextToken ¶
func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput
SetNextToken sets the NextToken field's value.
func (ListDevicesOutput) String ¶
func (s ListDevicesOutput) String() string
String returns the string representation
type UnclaimDeviceInput ¶
type UnclaimDeviceInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // contains filtered or unexported fields }
func (UnclaimDeviceInput) GoString ¶
func (s UnclaimDeviceInput) GoString() string
GoString returns the string representation
func (*UnclaimDeviceInput) SetDeviceId ¶
func (s *UnclaimDeviceInput) SetDeviceId(v string) *UnclaimDeviceInput
SetDeviceId sets the DeviceId field's value.
func (UnclaimDeviceInput) String ¶
func (s UnclaimDeviceInput) String() string
String returns the string representation
func (*UnclaimDeviceInput) Validate ¶
func (s *UnclaimDeviceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UnclaimDeviceOutput ¶
type UnclaimDeviceOutput struct { State *string `locationName:"state" type:"string"` // contains filtered or unexported fields }
func (UnclaimDeviceOutput) GoString ¶
func (s UnclaimDeviceOutput) GoString() string
GoString returns the string representation
func (*UnclaimDeviceOutput) SetState ¶
func (s *UnclaimDeviceOutput) SetState(v string) *UnclaimDeviceOutput
SetState sets the State field's value.
func (UnclaimDeviceOutput) String ¶
func (s UnclaimDeviceOutput) String() string
String returns the string representation
type UpdateDeviceStateInput ¶
type UpdateDeviceStateInput struct { // DeviceId is a required field DeviceId *string `location:"uri" locationName:"deviceId" type:"string" required:"true"` // If true, the device is enabled. If false, the device is disabled. Enabled *bool `locationName:"enabled" type:"boolean"` // contains filtered or unexported fields }
func (UpdateDeviceStateInput) GoString ¶
func (s UpdateDeviceStateInput) GoString() string
GoString returns the string representation
func (*UpdateDeviceStateInput) SetDeviceId ¶
func (s *UpdateDeviceStateInput) SetDeviceId(v string) *UpdateDeviceStateInput
SetDeviceId sets the DeviceId field's value.
func (*UpdateDeviceStateInput) SetEnabled ¶
func (s *UpdateDeviceStateInput) SetEnabled(v bool) *UpdateDeviceStateInput
SetEnabled sets the Enabled field's value.
func (UpdateDeviceStateInput) String ¶
func (s UpdateDeviceStateInput) String() string
String returns the string representation
func (*UpdateDeviceStateInput) Validate ¶
func (s *UpdateDeviceStateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateDeviceStateOutput ¶
type UpdateDeviceStateOutput struct {
// contains filtered or unexported fields
}
func (UpdateDeviceStateOutput) GoString ¶
func (s UpdateDeviceStateOutput) GoString() string
GoString returns the string representation
func (UpdateDeviceStateOutput) String ¶
func (s UpdateDeviceStateOutput) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package iot1clickdevicesserviceiface provides an interface to enable mocking the AWS IoT 1-Click Devices Service service client for testing your code.
|
Package iot1clickdevicesserviceiface provides an interface to enable mocking the AWS IoT 1-Click Devices Service service client for testing your code. |