update_assessment
async
¶
update_assessment(
assessment_id: UUID,
scope: Scope,
*,
config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
assessment_name: Optional[AssessmentName] = None,
assessment_description: Optional[AssessmentDescription] = None,
assessment_reports_destination: Optional[AssessmentReportsDestination] = None,
roles: Optional[Roles] = None,
) -> UpdateAssessmentResponse
Edits an Audit Manager assessment.
Parameters:
-
assessment_id(UUID) –The unique identifier for the assessment.
-
assessment_name(Optional[AssessmentName], default:None) –The name of the assessment to be updated.
-
assessment_description(Optional[AssessmentDescription], default:None) –The description of the assessment.
-
scope(Scope) –The scope of the assessment.
-
assessment_reports_destination(Optional[AssessmentReportsDestination], default:None) –The assessment report storage destination for the assessment that's being updated.
-
roles(Optional[Roles], default:None) –The list of roles for the assessment.
Raises:
-
AccessDeniedException–Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.
-
InternalServerException–An internal service error occurred during the processing of your request. Try again later.
-
ResourceNotFoundException–The resource that's specified in the request can't be found.
-
ServiceQuotaExceededException–You've reached your account quota for this resource type. To perform the requested action, delete some existing resources or request a quota increase from the Service Quotas console. For a list of Audit Manager service quotas, see Quotas and restrictions for Audit Manager.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request has invalid or missing parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_auditmanager/_services/async_audit_manager.py
3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 | |