amazonka-opsworks-1.1.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.DescribePermissions

Contents

Description

Describes the permissions for a specified stack.

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 DescribePermissions.

Synopsis

Creating a Request

describePermissions :: DescribePermissions Source

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

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

Request Lenses

dpIAMUserARN :: Lens' DescribePermissions (Maybe Text) Source

The user's IAM ARN. For more information about IAM ARNs, see Using Identifiers.

Destructuring the Response

describePermissionsResponse Source

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

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

Response Lenses

dprsPermissions :: Lens' DescribePermissionsResponse [Permission] Source

An array of Permission objects that describe the stack permissions.

  • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.
  • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.
  • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.