list_compliance_items
async
¶
list_compliance_items(
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
filters: Optional[ComplianceStringFilterList] = None,
resource_ids: Optional[ComplianceResourceIdList] = None,
resource_types: Optional[ComplianceResourceTypeList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListComplianceItemsResult
For a specified resource ID, this API operation returns a list of compliance statuses for different resource types. Currently, you can only specify one resource ID per call. List results depend on the criteria specified in the filter.
Parameters:
-
filters(Optional[ComplianceStringFilterList], default:None) –One or more compliance filters. Use a filter to return a more specific list of results.
-
resource_ids(Optional[ComplianceResourceIdList], default:None) –The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.
-
resource_types(Optional[ComplianceResourceTypeList], default:None) –The type of resource from which to get compliance information. Currently, the only supported resource type is
ManagedInstance. -
next_token(Optional[NextToken], default:None) –A token to start the list. Use this token to get the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidFilter–The filter name isn't valid. Verify that you entered the correct name and try again.
-
InvalidNextToken–The specified token isn't valid.
-
InvalidResourceId–The resource ID isn't valid. Verify that you entered the correct ID and try again.
-
InvalidResourceType–The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance must be a registered managed node.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 | |