Skip to content

CloudFront  >  Operations  >  list_invalidations

list_invalidations

Operation

list_invalidations async

list_invalidations(input: ListInvalidationsInput, plugins: list[Plugin] | None = None) -> ListInvalidationsOutput

Lists invalidation batches.

Parameters:

Name Type Description Default
input ListInvalidationsInput

An instance of ListInvalidationsInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ListInvalidationsOutput

An instance of ListInvalidationsOutput.

Input

ListInvalidationsInput dataclass

Bases: _SerdeShape

The request to list invalidations.

Attributes

distribution_id class-attribute instance-attribute
distribution_id: str | None = ...

The distribution's ID.

marker class-attribute instance-attribute
marker: str | None = ...

Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.

max_items class-attribute instance-attribute
max_items: int | None = ...

The maximum number of invalidation batches that you want in the response body.

Output

ListInvalidationsOutput dataclass

Bases: _SerdeShape

The returned result of the corresponding request.

Attributes

invalidation_list class-attribute instance-attribute
invalidation_list: InvalidationList | None = ...

Information about invalidation batches.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.