create_custom_model_deployment¶
Operation¶
create_custom_model_deployment
async
¶
create_custom_model_deployment(input: CreateCustomModelDeploymentInput, plugins: list[Plugin] | None = None) -> CreateCustomModelDeploymentOutput
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 related to the CreateCustomModelDeployment
operation:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateCustomModelDeploymentInput
|
An instance of |
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 |
|---|---|
CreateCustomModelDeploymentOutput
|
An instance of |
Input¶
CreateCustomModelDeploymentInput
dataclass
¶
Dataclass for CreateCustomModelDeploymentInput structure.
Attributes¶
client_request_token
class-attribute
instance-attribute
¶
client_request_token: str | None = None
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.
description
class-attribute
instance-attribute
¶
description: str | None = None
A description for the custom model deployment to help you identify its purpose.
model_arn
class-attribute
instance-attribute
¶
model_arn: str | None = None
The Amazon Resource Name (ARN) of the custom model to deploy for
on-demand inference. The custom model must be in the Active state.
Output¶
CreateCustomModelDeploymentOutput
dataclass
¶
Dataclass for CreateCustomModelDeploymentOutput structure.
Attributes¶
custom_model_deployment_arn
instance-attribute
¶
custom_model_deployment_arn: str
The Amazon Resource Name (ARN) of the custom model deployment. Use this
ARN as the modelId parameter when invoking the model with the
InvokeModel or Converse operations.
response_metadata
class-attribute
instance-attribute
¶
response_metadata: ResponseMetadata = field(default=EMPTY_RESPONSE_METADATA, repr=False, compare=False)
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.