BedrockClient.list_custom_model_deployments
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments. We recommend using pagination to ensure that the operation returns quickly and successfully. The following actions are related to the ListCustomModelDeployments operation:...
Install and imports
from rboto import BedrockClient
from rboto_bedrock.types import (
CustomModelDeploymentStatus,
ListCustomModelDeploymentsOutput,
SortModelsBy,
SortOrder,
)
Signature
async def list_custom_model_deployments(
*,
created_before: str | None = None,
created_after: str | None = None,
name_contains: str | None = None,
max_results: int | None = None,
next_token: str | None = None,
sort_by: SortModelsBy | None = None,
sort_order: SortOrder | None = None,
status_equals: CustomModelDeploymentStatus | None = None,
model_arn_equals: str | None = None,
) -> ListCustomModelDeploymentsOutput: ...
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) |
|---|---|---|
created_before |
No | Filters deployments created before the specified date and time. |
created_after |
No | Filters deployments created after the specified date and time. |
name_contains |
No | Filters deployments whose names contain the specified string. |
max_results |
No | The maximum number of results to return in a single call. |
next_token |
No | The token for the next set of results. Use this token to retrieve additional results when the response is truncated. |
sort_by |
No | The field to sort the results by. The only supported value is CreationTime . |
sort_order |
No | The sort order for the results. Valid values are Ascending and Descending . Default is Descending . |
status_equals |
No | Filters deployments by status. Valid values are CREATING , ACTIVE , and FAILED . |
model_arn_equals |
No | Filters deployments by the Amazon Resource Name (ARN) of the associated custom model. |
Output
ListCustomModelDeploymentsOutput.
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 |
|---|---|---|---|
next_token |
str | None |
Always present | — |
model_deployment_summaries |
list[CustomModelDeploymentSummaryOutput] | None |
Always present | CustomModelDeploymentSummaryOutput |
| 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.
Related types
CustomModelDeploymentStatus, ListCustomModelDeploymentsOutput, SortModelsBy, SortOrder
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_custom_model_deployments(...) accepts the same arguments and returns AsyncIterator[ListCustomModelDeploymentsOutput]. 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_bedrock.exceptions:
AccessDeniedError, InternalServerError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.