update_permission_set
async
¶
update_permission_set(
environment_arn: EnvironmentArn,
permission_set_id: PermissionSetId,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 | |