update_permission_set
¶
update_permission_set(
environment_arn: EnvironmentArn,
permission_set_id: PermissionSetId,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
name: Optional[PermissionSetName] = None,
description: Optional[PermissionSetDescription] = None,
permissions: Optional[PermissionsList] = None,
) -> UpdatePermissionSetOutput
Updates an existing permission set. Omitted fields are left unchanged. Returns no content; retrieve the updated attributes with GetPermissionSet.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
permission_set_id(PermissionSetId) –The identifier of the permission set.
-
name(Optional[PermissionSetName], default:None) –The name of the permission set.
-
description(Optional[PermissionSetDescription], default:None) –A description of the permission set.
-
permissions(Optional[PermissionsList], default:None) –The permissions granted by the permission set.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
ConflictException–A conflict occurred (for example, resource already exists).
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a permission set Upgrades the payments auditor permission set from reviewing assessments to running them.
>>> client.update_permission_set(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', permission_set_id='a1b2c3d4-5678-90ab-cdef-EXAMPLE88888', description='Access for the payments compliance team to run the PCI-DSS assessment and manage its projects.', permissions=['run_assessments', 'manage_projects'])
Source code in docs_src/capo_assurance/_services/assurance.py
7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 | |