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.

GrantAccessInput

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

type GrantAccessInput struct { InstanceId *string `type:"string" required:"true"` ValidForInMinutes *int64 `min:"60" type:"integer"` }

InstanceId

Type: *string

The instance's AWS OpsWorks Stacks ID.

InstanceId is a required field

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 the user is logged in at the time, he or she automatically will be logged out.

Method

GoString

func (s GrantAccessInput) GoString() string

GoString returns the string representation

SetInstanceId

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

SetInstanceId sets the InstanceId field's value.

SetValidForInMinutes

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

SetValidForInMinutes sets the ValidForInMinutes field's value.

String

func (s GrantAccessInput) String() string

String returns the string representation

Validate

func (s *GrantAccessInput) Validate() error

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

On this page: