list_assessments
async
¶
list_assessments(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
filters: Optional[AssessmentFilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListAssessmentsOutput
Lists assessments, paginated.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The project to list assessments for. Each request is scoped to one project.
-
filters(Optional[AssessmentFilterList], default:None) –The response filter criteria. Optional. See
AssessmentFilterNamefor 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 assessment in the project.Each criterion is matched against response attributes for exact equality. Criteria are independent, so
control-idis valid withoutframework. -
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 assessments for a project Lists the PCI-DSS assessments recorded for the payments-prod project.
>>> await client.list_assessments(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
4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 | |