list_frameworks
¶
list_frameworks(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
type: Optional[FrameworkType] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListFrameworksOutput
Lists frameworks by type, with optional pagination. When type is omitted, the operation returns both MANAGED and CUSTOM frameworks.
Parameters:
-
type(Optional[FrameworkType], default:None) –The optional filter. Values are MANAGED, CUSTOM, or omit for both.
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
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 the managed frameworks in an environment Lists the AWS-managed frameworks available in a governance environment before starting an assessment. Omit the type filter to page through custom frameworks as well.
>>> client.list_frameworks(type='MANAGED', environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111')
Source code in docs_src/capo_assurance/_services/assurance.py
5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 | |