list_enabled_frameworks
¶
list_enabled_frameworks(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
project: Optional[ProjectName] = None,
filters: Optional[EnabledFrameworkFilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListEnabledFrameworksOutput
Lists the frameworks enabled in a governance environment, optionally narrowed by filters.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(Optional[ProjectName], default:None) –The project to list enabled frameworks for. Each request is scoped to one project.
-
filters(Optional[EnabledFrameworkFilterList], default:None) –The response filter criteria. Optional. See
EnabledFrameworkFilterNamefor 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 enabled framework in the environment.A criterion whose value matches nothing returns an empty page.
When you supply a single-valued
projectcriterion alongside theprojectparameter, both values must match. If they differ, the response is empty. -
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 enabled frameworks for a project Lists the frameworks enabled for the payments-prod project to confirm PCI-DSS is active before starting an assessment.
>>> client.list_enabled_frameworks(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod')
Source code in docs_src/capo_assurance/_services/assurance.py
4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 | |