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.

Permission

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

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

Describes stack or user permissions.

AllowSsh

Type: *bool

Whether the user can use SSH.

AllowSudo

Type: *bool

Whether the user can use sudo.

IamUserArn

Type: *string

The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).

Level

Type: *string

The user's permission level, which must be the following:

  • deny

  • show

  • deploy

  • manage

  • iam_only

For more information on 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

A stack ID.

Method

GoString

func (s Permission) GoString() string

GoString returns the string representation

SetAllowSsh

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

SetAllowSsh sets the AllowSsh field's value.

SetAllowSudo

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

SetAllowSudo sets the AllowSudo field's value.

SetIamUserArn

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

SetIamUserArn sets the IamUserArn field's value.

SetLevel

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

SetLevel sets the Level field's value.

SetStackId

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

SetStackId sets the StackId field's value.

String

func (s Permission) String() string

String returns the string representation

On this page: