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.

SetPermissionInput

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

type SetPermissionInput struct { AllowSsh *bool `type:"boolean"` AllowSudo *bool `type:"boolean"` IamUserArn *string `type:"string" required:"true"` Level *string `type:"string"` StackId *string `type:"string" required:"true"` }

AllowSsh

Type: *bool

The user is allowed to use SSH to communicate with the instance.

AllowSudo

Type: *bool

The user is allowed to use sudo to elevate privileges.

IamUserArn

Type: *string

The user's IAM ARN. This can also be a federated user's ARN.

IamUserArn is a required field

Level

Type: *string

The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

  • deny

  • show

  • deploy

  • manage

  • iam_only

For more information about the permissions associated with these levels, see Managing User Permissions (https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

StackId

Type: *string

The stack ID.

StackId is a required field

Method

GoString

func (s SetPermissionInput) GoString() string

GoString returns the string representation

SetAllowSsh

func (s *SetPermissionInput) SetAllowSsh(v bool) *SetPermissionInput

SetAllowSsh sets the AllowSsh field's value.

SetAllowSudo

func (s *SetPermissionInput) SetAllowSudo(v bool) *SetPermissionInput

SetAllowSudo sets the AllowSudo field's value.

SetIamUserArn

func (s *SetPermissionInput) SetIamUserArn(v string) *SetPermissionInput

SetIamUserArn sets the IamUserArn field's value.

SetLevel

func (s *SetPermissionInput) SetLevel(v string) *SetPermissionInput

SetLevel sets the Level field's value.

SetStackId

func (s *SetPermissionInput) SetStackId(v string) *SetPermissionInput

SetStackId sets the StackId field's value.

String

func (s SetPermissionInput) String() string

String returns the string representation

Validate

func (s *SetPermissionInput) Validate() error

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

On this page: