Skip to content

CloudFront  >  Operations  >  list_key_groups

list_key_groups

Operation

list_key_groups async

list_key_groups(input: ListKeyGroupsInput, plugins: list[Plugin] | None = None) -> ListKeyGroupsOutput

Gets a list of key groups.

You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

Parameters:

Name Type Description Default
input ListKeyGroupsInput

An instance of ListKeyGroupsInput.

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
ListKeyGroupsOutput

An instance of ListKeyGroupsOutput.

Input

ListKeyGroupsInput dataclass

Bases: _SerdeShape

Dataclass for ListKeyGroupsInput structure.

Attributes

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

Use this field when paginating results to indicate where to begin in your list of key groups. The response includes key groups in the list that occur after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response.

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

The maximum number of key groups that you want in the response.

Output

ListKeyGroupsOutput dataclass

Bases: _SerdeShape

Dataclass for ListKeyGroupsOutput structure.

Attributes

key_group_list class-attribute instance-attribute
key_group_list: KeyGroupList | None = ...

A list of key groups.

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.