Bedrock / Client / create_model_copy_job

create_model_copy_job#

Bedrock.Client.create_model_copy_job(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.create_model_copy_job(
    sourceModelArn='string',
    targetModelName='string',
    modelKmsKeyId='string',
    targetModelTags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    clientRequestToken='string'
)
Parameters:
  • sourceModelArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the model to be copied.

  • targetModelName (string) –

    [REQUIRED]

    A name for the copied model.

  • modelKmsKeyId (string) – The ARN of the KMS key that you use to encrypt the model copy.

  • targetModelTags (list) –

    Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.

    • (dict) –

      Definition of the key/value pair for a tag.

      • key (string) – [REQUIRED]

        Key for the tag.

      • value (string) – [REQUIRED]

        Value for the tag.

  • clientRequestToken (string) –

    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.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'jobArn': 'string'
}

Response Structure

  • (dict) –

    • jobArn (string) –

      The Amazon Resource Name (ARN) of the model copy job.

Exceptions

  • Bedrock.Client.exceptions.ResourceNotFoundException

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.TooManyTagsException