update_iam_policy_assignment
¶
update_iam_policy_assignment(
aws_account_id: AwsAccountId,
assignment_name: IAMPolicyAssignmentName,
namespace: Namespace,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
assignment_status: Optional[AssignmentStatus] = None,
policy_arn: Optional[Arn] = None,
identities: Optional[IdentityMap] = None,
) -> UpdateIAMPolicyAssignmentResponse
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.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the IAM policy assignment.
-
assignment_name(IAMPolicyAssignmentName) –The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account.
-
namespace(Namespace) –The namespace of the assignment.
-
assignment_status(Optional[AssignmentStatus], default:None) –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.
-
-
policy_arn(Optional[Arn], default:None) –The ARN for the IAM policy to apply to the Amazon Quick Sight users and groups specified in this assignment.
-
identities(Optional[IdentityMap], default:None) –The Amazon Quick Sight users, groups, or both that you want to assign the policy to.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConcurrentUpdatingException–A resource is already in a state that indicates an operation is happening that must complete before a new update can be applied.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 | |