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.

AttributePayload

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

type AttributePayload struct { Attributes map[string]*string `locationName:"attributes" type:"map"` Merge *bool `locationName:"merge" type:"boolean"` }

The attribute payload.

Attributes

Type: map[string]*string

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

Merge

Type: *bool

Specifies whether the list of attributes provided in the AttributePayload is merged with the attributes stored in the registry, instead of overwriting them.

To remove an attribute, call UpdateThing with an empty attribute value.

The merge attribute is only valid when calling UpdateThing.

Method

GoString

func (s AttributePayload) GoString() string

GoString returns the string representation

SetAttributes

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

SetAttributes sets the Attributes field's value.

SetMerge

func (s *AttributePayload) SetMerge(v bool) *AttributePayload

SetMerge sets the Merge field's value.

String

func (s AttributePayload) String() string

String returns the string representation

On this page: