list_comments
async
¶
list_comments(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
filters: Optional[CommentFilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListCommentsOutput
Lists the comments on a specific control, optionally narrowed to a 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.
-
filters(Optional[CommentFilterList], default:None) –The response filter criteria. Optional. See
CommentFilterNamefor the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omittingfiltersreturns every comment in the control. -
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 comments on a control Lists the comments on a control, narrowed to a specific task in the PCI DSS assessment.
>>> await client.list_comments(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', filters=[{'name': 'task-id', 'values': ['a1b2c3d4-5678-90ab-cdef-EXAMPLE66666']}])
Source code in docs_src/capo_assurance/_services/async_assurance.py
4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 | |