list_enabled_frameworks
async
¶
list_enabled_frameworks(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 | |