Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data DescribePermissions = DescribePermissions' {}
- newDescribePermissions :: DescribePermissions
- describePermissions_iamUserArn :: Lens' DescribePermissions (Maybe Text)
- describePermissions_stackId :: Lens' DescribePermissions (Maybe Text)
- data DescribePermissionsResponse = DescribePermissionsResponse' {
- permissions :: Maybe [Permission]
- httpStatus :: Int
- newDescribePermissionsResponse :: Int -> DescribePermissionsResponse
- describePermissionsResponse_permissions :: Lens' DescribePermissionsResponse (Maybe [Permission])
- describePermissionsResponse_httpStatus :: Lens' DescribePermissionsResponse Int
Creating a Request
data DescribePermissions Source #
See: newDescribePermissions
smart constructor.
DescribePermissions' | |
|
Instances
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.
describePermissions_stackId :: Lens' DescribePermissions (Maybe Text) Source #
The stack ID.
Destructuring the Response
data DescribePermissionsResponse Source #
Contains the response to a DescribePermissions
request.
See: newDescribePermissionsResponse
smart constructor.
DescribePermissionsResponse' | |
|
Instances
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.
describePermissionsResponse_httpStatus :: Lens' DescribePermissionsResponse Int Source #
The response's http status code.