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
8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 | |