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.

TemporaryCredential

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

type TemporaryCredential struct { InstanceId *string `type:"string"` Password *string `type:"string"` Username *string `type:"string"` ValidForInMinutes *int64 `type:"integer"` }

Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.

InstanceId

Type: *string

The instance's AWS OpsWorks Stacks ID.

Password

Type: *string

The password.

Username

Type: *string

The user name.

ValidForInMinutes

Type: *int64

The length of time (in minutes) that the grant is valid. When the grant expires, at the end of this period, the user will no longer be able to use the credentials to log in. If they are logged in at the time, they will be automatically logged out.

Method

GoString

func (s TemporaryCredential) GoString() string

GoString returns the string representation

SetInstanceId

func (s *TemporaryCredential) SetInstanceId(v string) *TemporaryCredential

SetInstanceId sets the InstanceId field's value.

SetPassword

func (s *TemporaryCredential) SetPassword(v string) *TemporaryCredential

SetPassword sets the Password field's value.

SetUsername

func (s *TemporaryCredential) SetUsername(v string) *TemporaryCredential

SetUsername sets the Username field's value.

SetValidForInMinutes

func (s *TemporaryCredential) SetValidForInMinutes(v int64) *TemporaryCredential

SetValidForInMinutes sets the ValidForInMinutes field's value.

String

func (s TemporaryCredential) String() string

String returns the string representation

On this page: