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.

CreateRoleAliasInput

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

type CreateRoleAliasInput struct { CredentialDurationSeconds *int64 `locationName:"credentialDurationSeconds" min:"900" type:"integer"` RoleAlias *string `location:"uri" locationName:"roleAlias" min:"1" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` }

CredentialDurationSeconds

Type: *int64

How long (in seconds) the credentials will be valid.

RoleAlias

Type: *string

The role alias that points to a role ARN. This allows you to change the role without having to update the device.

RoleAlias is a required field

RoleArn

Type: *string

The role ARN.

RoleArn is a required field

Method

GoString

func (s CreateRoleAliasInput) GoString() string

GoString returns the string representation

SetCredentialDurationSeconds

func (s *CreateRoleAliasInput) SetCredentialDurationSeconds(v int64) *CreateRoleAliasInput

SetCredentialDurationSeconds sets the CredentialDurationSeconds field's value.

SetRoleAlias

func (s *CreateRoleAliasInput) SetRoleAlias(v string) *CreateRoleAliasInput

SetRoleAlias sets the RoleAlias field's value.

SetRoleArn

func (s *CreateRoleAliasInput) SetRoleArn(v string) *CreateRoleAliasInput

SetRoleArn sets the RoleArn field's value.

String

func (s CreateRoleAliasInput) String() string

String returns the string representation

Validate

func (s *CreateRoleAliasInput) Validate() error

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

On this page: