BedrockClient.create_custom_model_deployment
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the modelId parameter when you submit prompts and generate responses with model inference. For more information about setting up on-demand inference for custom models, see Set up inference for a custom model . The following actions are...
Install and imports
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
CreateCustomModelDeploymentOutput,
Tag,
)
Signature
async def create_custom_model_deployment(
*,
model_deployment_name: str,
model_arn: str,
description: str | None = None,
tags: Sequence[Tag] | None = None,
client_request_token: str | None = None,
) -> CreateCustomModelDeploymentOutput: ...
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) |
|---|---|---|
model_deployment_name |
Yes | The name for the custom model deployment. The name must be unique within your Amazon Web Services account and Region. |
model_arn |
Yes | The Amazon Resource Name (ARN) of the custom model to deploy for on-demand inference. The custom model must be in the Active state. |
description |
No | A description for the custom model deployment to help you identify its purpose. |
tags |
No | Tags to assign to the custom model deployment. You can use tags to organize and track your Amazon Web Services resources for cost allocation and management purposes. |
client_request_token |
No | A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency . |
Output
CreateCustomModelDeploymentOutput.
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 |
|---|---|---|---|
custom_model_deployment_arn |
str |
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.
Related types
CreateCustomModelDeploymentOutput, Tag
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock.exceptions:
AccessDeniedError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, TooManyTagsError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.