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 |
Amazonka.QuickSight.UpdateIAMPolicyAssignment
Description
Updates an existing IAM policy assignment. This operation updates only
the optional parameter or parameters that are specified in the request.
This overwrites all of the users included in Identities
.
Synopsis
- data UpdateIAMPolicyAssignment = UpdateIAMPolicyAssignment' {
- assignmentStatus :: Maybe AssignmentStatus
- identities :: Maybe (HashMap Text [Text])
- policyArn :: Maybe Text
- awsAccountId :: Text
- assignmentName :: Text
- namespace :: Text
- newUpdateIAMPolicyAssignment :: Text -> Text -> Text -> UpdateIAMPolicyAssignment
- updateIAMPolicyAssignment_assignmentStatus :: Lens' UpdateIAMPolicyAssignment (Maybe AssignmentStatus)
- updateIAMPolicyAssignment_identities :: Lens' UpdateIAMPolicyAssignment (Maybe (HashMap Text [Text]))
- updateIAMPolicyAssignment_policyArn :: Lens' UpdateIAMPolicyAssignment (Maybe Text)
- updateIAMPolicyAssignment_awsAccountId :: Lens' UpdateIAMPolicyAssignment Text
- updateIAMPolicyAssignment_assignmentName :: Lens' UpdateIAMPolicyAssignment Text
- updateIAMPolicyAssignment_namespace :: Lens' UpdateIAMPolicyAssignment Text
- data UpdateIAMPolicyAssignmentResponse = UpdateIAMPolicyAssignmentResponse' {
- assignmentId :: Maybe Text
- assignmentName :: Maybe Text
- assignmentStatus :: Maybe AssignmentStatus
- identities :: Maybe (HashMap Text [Text])
- policyArn :: Maybe Text
- requestId :: Maybe Text
- status :: Int
- newUpdateIAMPolicyAssignmentResponse :: Int -> UpdateIAMPolicyAssignmentResponse
- updateIAMPolicyAssignmentResponse_assignmentId :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text)
- updateIAMPolicyAssignmentResponse_assignmentName :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text)
- updateIAMPolicyAssignmentResponse_assignmentStatus :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe AssignmentStatus)
- updateIAMPolicyAssignmentResponse_identities :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe (HashMap Text [Text]))
- updateIAMPolicyAssignmentResponse_policyArn :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text)
- updateIAMPolicyAssignmentResponse_requestId :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text)
- updateIAMPolicyAssignmentResponse_status :: Lens' UpdateIAMPolicyAssignmentResponse Int
Creating a Request
data UpdateIAMPolicyAssignment Source #
See: newUpdateIAMPolicyAssignment
smart constructor.
Constructors
UpdateIAMPolicyAssignment' | |
Fields
|
Instances
newUpdateIAMPolicyAssignment Source #
Arguments
:: Text | |
-> Text | |
-> Text | |
-> UpdateIAMPolicyAssignment |
Create a value of UpdateIAMPolicyAssignment
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:
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_assignmentStatus
- The status of the assignment. Possible values are as follows:
ENABLED
- Anything specified in this assignment is used when creating the data source.DISABLED
- This assignment isn't used when creating the data source.DRAFT
- This assignment is an unfinished draft and isn't used when creating the data source.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_identities
- The Amazon QuickSight users, groups, or both that you want to assign the
policy to.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_policyArn
- The ARN for the IAM policy to apply to the Amazon QuickSight users and
groups specified in this assignment.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_awsAccountId
- The ID of the Amazon Web Services account that contains the IAM policy
assignment.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_assignmentName
- The name of the assignment, also called a rule. This name must be unique
within an Amazon Web Services account.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignment_namespace
- The namespace of the assignment.
Request Lenses
updateIAMPolicyAssignment_assignmentStatus :: Lens' UpdateIAMPolicyAssignment (Maybe AssignmentStatus) Source #
The status of the assignment. Possible values are as follows:
ENABLED
- Anything specified in this assignment is used when creating the data source.DISABLED
- This assignment isn't used when creating the data source.DRAFT
- This assignment is an unfinished draft and isn't used when creating the data source.
updateIAMPolicyAssignment_identities :: Lens' UpdateIAMPolicyAssignment (Maybe (HashMap Text [Text])) Source #
The Amazon QuickSight users, groups, or both that you want to assign the policy to.
updateIAMPolicyAssignment_policyArn :: Lens' UpdateIAMPolicyAssignment (Maybe Text) Source #
The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment.
updateIAMPolicyAssignment_awsAccountId :: Lens' UpdateIAMPolicyAssignment Text Source #
The ID of the Amazon Web Services account that contains the IAM policy assignment.
updateIAMPolicyAssignment_assignmentName :: Lens' UpdateIAMPolicyAssignment Text Source #
The name of the assignment, also called a rule. This name must be unique within an Amazon Web Services account.
updateIAMPolicyAssignment_namespace :: Lens' UpdateIAMPolicyAssignment Text Source #
The namespace of the assignment.
Destructuring the Response
data UpdateIAMPolicyAssignmentResponse Source #
See: newUpdateIAMPolicyAssignmentResponse
smart constructor.
Constructors
UpdateIAMPolicyAssignmentResponse' | |
Fields
|
Instances
newUpdateIAMPolicyAssignmentResponse Source #
Create a value of UpdateIAMPolicyAssignmentResponse
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:
UpdateIAMPolicyAssignmentResponse
, updateIAMPolicyAssignmentResponse_assignmentId
- The ID of the assignment.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignmentResponse_assignmentName
- The name of the assignment or rule.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignmentResponse_assignmentStatus
- The status of the assignment. Possible values are as follows:
ENABLED
- Anything specified in this assignment is used when creating the data source.DISABLED
- This assignment isn't used when creating the data source.DRAFT
- This assignment is an unfinished draft and isn't used when creating the data source.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignmentResponse_identities
- The Amazon QuickSight users, groups, or both that the IAM policy is
assigned to.
UpdateIAMPolicyAssignment
, updateIAMPolicyAssignmentResponse_policyArn
- The ARN for the IAM policy applied to the Amazon QuickSight users and
groups specified in this assignment.
$sel:requestId:UpdateIAMPolicyAssignmentResponse'
, updateIAMPolicyAssignmentResponse_requestId
- The Amazon Web Services request ID for this operation.
UpdateIAMPolicyAssignmentResponse
, updateIAMPolicyAssignmentResponse_status
- The HTTP status of the request.
Response Lenses
updateIAMPolicyAssignmentResponse_assignmentId :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text) Source #
The ID of the assignment.
updateIAMPolicyAssignmentResponse_assignmentName :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text) Source #
The name of the assignment or rule.
updateIAMPolicyAssignmentResponse_assignmentStatus :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe AssignmentStatus) Source #
The status of the assignment. Possible values are as follows:
ENABLED
- Anything specified in this assignment is used when creating the data source.DISABLED
- This assignment isn't used when creating the data source.DRAFT
- This assignment is an unfinished draft and isn't used when creating the data source.
updateIAMPolicyAssignmentResponse_identities :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe (HashMap Text [Text])) Source #
The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.
updateIAMPolicyAssignmentResponse_policyArn :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text) Source #
The ARN for the IAM policy applied to the Amazon QuickSight users and groups specified in this assignment.
updateIAMPolicyAssignmentResponse_requestId :: Lens' UpdateIAMPolicyAssignmentResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateIAMPolicyAssignmentResponse_status :: Lens' UpdateIAMPolicyAssignmentResponse Int Source #
The HTTP status of the request.