list_task_history
async
¶
list_task_history(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
task_id: TaskId,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListTaskHistoryOutput
Lists task history across assessments for a given task, ordered by most recent first.
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.
-
task_id(TaskId) –The identifier of the task.
-
max_results(Optional[MaxResults], default:None) –The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the
nextTokenvalue from the response to get the next page. -
next_token(Optional[PaginationToken], default:None) –The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
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.
-
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:
List a task's history Lists the history of the unique-user-ID task to show how it progressed across the payments-prod PCI-DSS assessments.
>>> await client.list_task_history(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')
Source code in docs_src/capo_assurance/_services/async_assurance.py
6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 | |