AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ThingAttribute

import "github.com/aws/aws-sdk-go/service/iot"

type ThingAttribute struct { Attributes map[string]*string `locationName:"attributes" type:"map"` ThingArn *string `locationName:"thingArn" type:"string"` ThingName *string `locationName:"thingName" min:"1" type:"string"` ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"` Version *int64 `locationName:"version" type:"long"` }

The properties of the thing, including thing name, thing type name, and a list of thing attributes.

Attributes

Type: map[string]*string

A list of thing attributes which are name-value pairs.

ThingArn

Type: *string

The thing ARN.

ThingName

Type: *string

The name of the thing.

ThingTypeName

Type: *string

The name of the thing type, if the thing has been associated with a type.

Version

Type: *int64

The version of the thing record in the registry.

Method

GoString

func (s ThingAttribute) GoString() string

GoString returns the string representation

SetAttributes

func (s *ThingAttribute) SetAttributes(v map[string]*string) *ThingAttribute

SetAttributes sets the Attributes field's value.

SetThingArn

func (s *ThingAttribute) SetThingArn(v string) *ThingAttribute

SetThingArn sets the ThingArn field's value.

SetThingName

func (s *ThingAttribute) SetThingName(v string) *ThingAttribute

SetThingName sets the ThingName field's value.

SetThingTypeName

func (s *ThingAttribute) SetThingTypeName(v string) *ThingAttribute

SetThingTypeName sets the ThingTypeName field's value.

SetVersion

func (s *ThingAttribute) SetVersion(v int64) *ThingAttribute

SetVersion sets the Version field's value.

String

func (s ThingAttribute) String() string

String returns the string representation

On this page: