Skip to content

SSMClient.list_compliance_items

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    ComplianceStringFilter,
    ListComplianceItemsOutput,
)

Signature

async def list_compliance_items(
    *,
    filters: Sequence[ComplianceStringFilter] | None = None,
    resource_ids: Sequence[str] | None = None,
    resource_types: Sequence[str] | None = None,
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListComplianceItemsOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
filters No One or more compliance filters. Use a filter to return a more specific list of results.
resource_ids No The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.
resource_types No The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance .
next_token No A token to start the list. Use this token to get the next set of results.
max_results No 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.

Output

ListComplianceItemsOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
compliance_items list[ComplianceItemOutput] | None Always present ComplianceItemOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ComplianceStringFilter, ListComplianceItemsOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_compliance_items(...) accepts the same arguments and returns AsyncIterator[ListComplianceItemsOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_ssm.exceptions:

InternalServerError, InvalidFilterError, InvalidNextTokenError, InvalidResourceIdError, InvalidResourceTypeError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model