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

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
Eq DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Read DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Show DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Generic DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type Rep DescribePermissions :: Type -> Type #

NFData DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Methods

rnf :: DescribePermissions -> () #

Hashable DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

ToJSON DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

AWSRequest DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type AWSResponse 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

type Rep DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

type Rep DescribePermissions = D1 ('MetaData "DescribePermissions" "Amazonka.OpsWorks.DescribePermissions" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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))))
type AWSResponse DescribePermissions Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

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:

$sel:iamUserArn: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.

$sel:stackId: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
Eq DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Read DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Show DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Generic DescribePermissionsResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribePermissions

Associated Types

type Rep DescribePermissionsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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.