Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Describes an existing IAMpolicy assignment, as specified by the assignment name.
Synopsis
- data DescribeIAMPolicyAssignment = DescribeIAMPolicyAssignment' {
- awsAccountId :: Text
- assignmentName :: Text
- namespace :: Text
- newDescribeIAMPolicyAssignment :: Text -> Text -> Text -> DescribeIAMPolicyAssignment
- describeIAMPolicyAssignment_awsAccountId :: Lens' DescribeIAMPolicyAssignment Text
- describeIAMPolicyAssignment_assignmentName :: Lens' DescribeIAMPolicyAssignment Text
- describeIAMPolicyAssignment_namespace :: Lens' DescribeIAMPolicyAssignment Text
- data DescribeIAMPolicyAssignmentResponse = DescribeIAMPolicyAssignmentResponse' {}
- newDescribeIAMPolicyAssignmentResponse :: Int -> DescribeIAMPolicyAssignmentResponse
- describeIAMPolicyAssignmentResponse_requestId :: Lens' DescribeIAMPolicyAssignmentResponse (Maybe Text)
- describeIAMPolicyAssignmentResponse_iAMPolicyAssignment :: Lens' DescribeIAMPolicyAssignmentResponse (Maybe IAMPolicyAssignment)
- describeIAMPolicyAssignmentResponse_status :: Lens' DescribeIAMPolicyAssignmentResponse Int
Creating a Request
data DescribeIAMPolicyAssignment Source #
See: newDescribeIAMPolicyAssignment
smart constructor.
DescribeIAMPolicyAssignment' | |
|
Instances
newDescribeIAMPolicyAssignment Source #
:: Text | |
-> Text | |
-> Text | |
-> DescribeIAMPolicyAssignment |
Create a value of DescribeIAMPolicyAssignment
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:awsAccountId:DescribeIAMPolicyAssignment'
, describeIAMPolicyAssignment_awsAccountId
- The ID of the Amazon Web Services account that contains the assignment
that you want to describe.
$sel:assignmentName:DescribeIAMPolicyAssignment'
, describeIAMPolicyAssignment_assignmentName
- The name of the assignment, also called a rule.
$sel:namespace:DescribeIAMPolicyAssignment'
, describeIAMPolicyAssignment_namespace
- The namespace that contains the assignment.
Request Lenses
describeIAMPolicyAssignment_awsAccountId :: Lens' DescribeIAMPolicyAssignment Text Source #
The ID of the Amazon Web Services account that contains the assignment that you want to describe.
describeIAMPolicyAssignment_assignmentName :: Lens' DescribeIAMPolicyAssignment Text Source #
The name of the assignment, also called a rule.
describeIAMPolicyAssignment_namespace :: Lens' DescribeIAMPolicyAssignment Text Source #
The namespace that contains the assignment.
Destructuring the Response
data DescribeIAMPolicyAssignmentResponse Source #
See: newDescribeIAMPolicyAssignmentResponse
smart constructor.
DescribeIAMPolicyAssignmentResponse' | |
|
Instances
newDescribeIAMPolicyAssignmentResponse Source #
Create a value of DescribeIAMPolicyAssignmentResponse
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:requestId:DescribeIAMPolicyAssignmentResponse'
, describeIAMPolicyAssignmentResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:iAMPolicyAssignment:DescribeIAMPolicyAssignmentResponse'
, describeIAMPolicyAssignmentResponse_iAMPolicyAssignment
- Information describing the IAMpolicy assignment.
$sel:status:DescribeIAMPolicyAssignmentResponse'
, describeIAMPolicyAssignmentResponse_status
- The HTTP status of the request.
Response Lenses
describeIAMPolicyAssignmentResponse_requestId :: Lens' DescribeIAMPolicyAssignmentResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
describeIAMPolicyAssignmentResponse_iAMPolicyAssignment :: Lens' DescribeIAMPolicyAssignmentResponse (Maybe IAMPolicyAssignment) Source #
Information describing the IAMpolicy assignment.
describeIAMPolicyAssignmentResponse_status :: Lens' DescribeIAMPolicyAssignmentResponse Int Source #
The HTTP status of the request.