create_assessment
¶
create_assessment(
name: AssessmentName,
assessment_reports_destination: AssessmentReportsDestination,
scope: Scope,
roles: Roles,
framework_id: UUID,
*,
config_overrides: Optional[AuditManagerClientConfig] = None,
description: Optional[AssessmentDescription] = None,
tags: Optional[TagMap] = None,
) -> CreateAssessmentResponse
Creates an assessment in Audit Manager.
Parameters:
-
name(AssessmentName) –The name of the assessment to be created.
-
description(Optional[AssessmentDescription], default:None) –The optional description of the assessment to be created.
-
assessment_reports_destination(AssessmentReportsDestination) –The assessment report storage destination for the assessment that's being created.
-
roles(Roles) –The list of roles for the assessment.
-
framework_id(UUID) –The identifier for the framework that the assessment will be created from.
-
tags(Optional[TagMap], default:None) –The tags that are associated with 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/audit_manager.py
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 | |