update_task
¶
update_task(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
task_id: TaskId,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
assessment_id: Optional[AssessmentId] = None,
status: Optional[TaskStatus] = None,
due_at: Optional[datetime] = None,
priority: Optional[TaskPriority] = None,
) -> UpdateTaskOutput
Updates an existing task.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_id(ControlID) –The control identifier. Optional. If omitted, the operation applies to the full framework.
-
assessment_id(Optional[AssessmentId], default:None) –The identifier of the assessment.
-
task_id(TaskId) –The identifier of the task.
-
status(Optional[TaskStatus], default:None) –The lifecycle state to set on the task.
-
due_at(Optional[datetime], default:None) –The new deadline for the task.
-
priority(Optional[TaskPriority], default:None) –The relative priority of the item.
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:
Mark a task complete Marks the task complete after the payments team replaces the shared database account with per-user IDs.
>>> client.update_task(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', framework='AWS:PCI-DSS', framework_version='4', control_id='8.2.1', task_id='a1b2c3d4-5678-90ab-cdef-EXAMPLE66666', status='COMPLETED')
Source code in docs_src/capo_assurance/_services/assurance.py
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 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 | |