amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpsWorks.DescribePermissions

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.

Synopsis

Creating a Request

data DescribePermissions Source #

See: newDescribePermissions smart constructor.

Constructors

DescribePermissions' 

Fields

Instances

Instances details
ToJSON DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

ToHeaders DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

ToPath DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

ToQuery DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

AWSRequest DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type AWSResponse DescribePermissions #

Generic DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type Rep DescribePermissions :: Type -> Type #

Read DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Show DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

NFData DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Methods

rnf :: DescribePermissions -> () #

Eq DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Hashable DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type AWSResponse DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type Rep DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type Rep DescribePermissions = D1 ('MetaData "DescribePermissions" "Amazonka.OpsWorks.DescribePermissions" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "DescribePermissions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "iamUserArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDescribePermissions :: DescribePermissions Source #

Create a value of DescribePermissions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribePermissions, describePermissions_iamUserArn - The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see Using Identifiers.

DescribePermissions, describePermissions_stackId - The stack ID.

Request Lenses

describePermissions_iamUserArn :: Lens' DescribePermissions (Maybe Text) Source #

The user's IAM ARN. This can also be a federated user's ARN. For more information about IAM ARNs, see Using Identifiers.

Destructuring the Response

data DescribePermissionsResponse Source #

Contains the response to a DescribePermissions request.

See: newDescribePermissionsResponse smart constructor.

Constructors

DescribePermissionsResponse' 

Fields

  • permissions :: Maybe [Permission]

    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.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type Rep DescribePermissionsResponse :: Type -> Type #

Read DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Show DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

NFData DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Eq DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type Rep DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type Rep DescribePermissionsResponse = D1 ('MetaData "DescribePermissionsResponse" "Amazonka.OpsWorks.DescribePermissions" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "DescribePermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Permission])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribePermissionsResponse Source #

Create a value of DescribePermissionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:permissions:DescribePermissionsResponse', describePermissionsResponse_permissions - 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.

$sel:httpStatus:DescribePermissionsResponse', describePermissionsResponse_httpStatus - The response's http status code.

Response Lenses

describePermissionsResponse_permissions :: Lens' DescribePermissionsResponse (Maybe [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.