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.

TestAuthorizationInput

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

type TestAuthorizationInput struct { AuthInfos []*AuthInfo `locationName:"authInfos" min:"1" type:"list" required:"true"` ClientId *string `location:"querystring" locationName:"clientId" type:"string"` CognitoIdentityPoolId *string `locationName:"cognitoIdentityPoolId" type:"string"` PolicyNamesToAdd []*string `locationName:"policyNamesToAdd" type:"list"` PolicyNamesToSkip []*string `locationName:"policyNamesToSkip" type:"list"` Principal *string `locationName:"principal" type:"string"` }

AuthInfos

A collection of authorization information.

ClientId

Type: *string

The MQTT client ID.

CognitoIdentityPoolId

Type: *string

The Cognito identity pool ID.

PolicyNamesToAdd

Type: []*string

When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.

PolicyNamesToSkip

Type: []*string

When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.

Principal

Type: *string

The principal.

Method

GoString

func (s TestAuthorizationInput) GoString() string

GoString returns the string representation

SetAuthInfos

func (s *TestAuthorizationInput) SetAuthInfos(v []*AuthInfo) *TestAuthorizationInput

SetAuthInfos sets the AuthInfos field's value.

SetClientId

func (s *TestAuthorizationInput) SetClientId(v string) *TestAuthorizationInput

SetClientId sets the ClientId field's value.

SetCognitoIdentityPoolId

func (s *TestAuthorizationInput) SetCognitoIdentityPoolId(v string) *TestAuthorizationInput

SetCognitoIdentityPoolId sets the CognitoIdentityPoolId field's value.

SetPolicyNamesToAdd

func (s *TestAuthorizationInput) SetPolicyNamesToAdd(v []*string) *TestAuthorizationInput

SetPolicyNamesToAdd sets the PolicyNamesToAdd field's value.

SetPolicyNamesToSkip

func (s *TestAuthorizationInput) SetPolicyNamesToSkip(v []*string) *TestAuthorizationInput

SetPolicyNamesToSkip sets the PolicyNamesToSkip field's value.

SetPrincipal

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

SetPrincipal sets the Principal field's value.

String

func (s TestAuthorizationInput) String() string

String returns the string representation

Validate

func (s *TestAuthorizationInput) Validate() error

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

On this page: