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.

CreateThingInput

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

type CreateThingInput struct { AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"` BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` ThingTypeName *string `locationName:"thingTypeName" min:"1" type:"string"` }

The input for the CreateThing operation.

AttributePayload

The attribute payload.

BillingGroupName

Type: *string

The name of the billing group the thing will be added to.

ThingName

Type: *string

The name of the thing to create.

ThingName is a required field

ThingTypeName

Type: *string

The name of the thing type associated with the new thing.

Method

GoString

func (s CreateThingInput) GoString() string

GoString returns the string representation

SetAttributePayload

func (s *CreateThingInput) SetAttributePayload(v *AttributePayload) *CreateThingInput

SetAttributePayload sets the AttributePayload field's value.

SetBillingGroupName

func (s *CreateThingInput) SetBillingGroupName(v string) *CreateThingInput

SetBillingGroupName sets the BillingGroupName field's value.

SetThingName

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

SetThingName sets the ThingName field's value.

SetThingTypeName

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

SetThingTypeName sets the ThingTypeName field's value.

String

func (s CreateThingInput) String() string

String returns the string representation

Validate

func (s *CreateThingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: