BedrockClient.create_model_copy_job
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide .
Install and imports
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
CreateModelCopyJobOutput,
Tag,
)
Signature
async def create_model_copy_job(
*,
source_model_arn: str,
target_model_name: str,
model_kms_key_id: str | None = None,
target_model_tags: Sequence[Tag] | None = None,
client_request_token: str | None = None,
) -> CreateModelCopyJobOutput: ...
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) |
|---|---|---|
source_model_arn |
Yes | The Amazon Resource Name (ARN) of the model to be copied. |
target_model_name |
Yes | A name for the copied model. |
model_kms_key_id |
No | The ARN of the KMS key that you use to encrypt the model copy. |
target_model_tags |
No | Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide . |
client_request_token |
No | A unique, case-sensitive identifier to ensure that the API request 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
CreateModelCopyJobOutput.
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 |
|---|---|---|---|
job_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
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, TooManyTagsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.