Skip to content

list_policy_generations

Operation

list_policy_generations

list_policy_generations(request: ListPolicyGenerationsInput | ListPolicyGenerationsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListPolicyGenerationsInputDict]) -> ListPolicyGenerationsOutput

Retrieves a list of policy generation requests within the AgentCore Policy system. This operation supports pagination and filtering to help track and manage AI-powered policy generation operations.

Parameters:

Name Type Description Default
request ListPolicyGenerationsInput | ListPolicyGenerationsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[ListPolicyGenerationsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListPolicyGenerationsOutput

An instance of ListPolicyGenerationsOutput.

list_policy_generations async

list_policy_generations(request: ListPolicyGenerationsInput | ListPolicyGenerationsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListPolicyGenerationsInputDict]) -> ListPolicyGenerationsOutput

Retrieves a list of policy generation requests within the AgentCore Policy system. This operation supports pagination and filtering to help track and manage AI-powered policy generation operations.

Parameters:

Name Type Description Default
request ListPolicyGenerationsInput | ListPolicyGenerationsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[ListPolicyGenerationsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListPolicyGenerationsOutput

An instance of ListPolicyGenerationsOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

ListPolicyGenerationsInputDict

Bases: TypedDict

Dictionary form of ListPolicyGenerationsInput.

Attributes

max_results instance-attribute
max_results: int | None

The maximum number of policy generations to return in a single response.

next_token instance-attribute
next_token: str | None

A pagination token for retrieving additional policy generations when results are paginated.

policy_engine_id instance-attribute
policy_engine_id: Required[str]

The identifier of the policy engine whose policy generations to retrieve.

ListPolicyGenerationsInput dataclass

Bases: _SerdeShape

Dataclass for ListPolicyGenerationsInput structure.

Attributes

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

The maximum number of policy generations to return in a single response.

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

A pagination token for retrieving additional policy generations when results are paginated.

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

The identifier of the policy engine whose policy generations to retrieve.

Output

ListPolicyGenerationsOutput dataclass

Bases: _SerdeShape

Dataclass for ListPolicyGenerationsOutput structure.

Attributes

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

A pagination token for retrieving additional policy generations if more results are available.

policy_generations instance-attribute
policy_generations: list[PolicyGeneration]

An array of policy generation objects that match the specified criteria.

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.