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
8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 | |