list_compliance_items
¶
list_compliance_items(
*,
config_overrides: Optional[SSMClientConfig] = 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/ssm.py
8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 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 | |