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.

DetachThingPrincipalInput

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

type DetachThingPrincipalInput 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 DetachThingPrincipal operation.

Principal

Type: *string

If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.

Principal is a required field

ThingName

Type: *string

The name of the thing.

ThingName is a required field

Method

GoString

func (s DetachThingPrincipalInput) GoString() string

GoString returns the string representation

SetPrincipal

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

SetPrincipal sets the Principal field's value.

SetThingName

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

SetThingName sets the ThingName field's value.

String

func (s DetachThingPrincipalInput) String() string

String returns the string representation

Validate

func (s *DetachThingPrincipalInput) Validate() error

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

On this page: