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.

AttachThingPrincipalInput

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

type AttachThingPrincipalInput struct { Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"` ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` }

The input for the AttachThingPrincipal operation.

Principal

Type: *string

The principal, such as a certificate or other credential.

Principal is a required field

ThingName

Type: *string

The name of the thing.

ThingName is a required field

Method

GoString

func (s AttachThingPrincipalInput) GoString() string

GoString returns the string representation

SetPrincipal

func (s *AttachThingPrincipalInput) SetPrincipal(v string) *AttachThingPrincipalInput

SetPrincipal sets the Principal field's value.

SetThingName

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

SetThingName sets the ThingName field's value.

String

func (s AttachThingPrincipalInput) String() string

String returns the string representation

Validate

func (s *AttachThingPrincipalInput) Validate() error

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

On this page: