amazonka-opsworks-1.0.0: Amazon OpsWorks SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.SetPermission

Contents

Description

Specifies a user's permissions. For more information, see Security and Permissions.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

See: AWS API Reference for SetPermission.

Synopsis

Creating a Request

setPermission Source

Creates a value of SetPermission with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

spAllowSudo :: Lens' SetPermission (Maybe Bool) Source

The user is allowed to use sudo to elevate privileges.

spLevel :: Lens' SetPermission (Maybe Text) Source

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 on the permissions associated with these levels, see Managing User Permissions.

spAllowSSH :: Lens' SetPermission (Maybe Bool) Source

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

Destructuring the Response

setPermissionResponse :: SetPermissionResponse Source

Creates a value of SetPermissionResponse with the minimum fields required to make a request.