Bedrock / Client / create_model_import_job

create_model_import_job#

Bedrock.Client.create_model_import_job(**kwargs)#

Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model

See also: AWS API Documentation

Request Syntax

response = client.create_model_import_job(
    jobName='string',
    importedModelName='string',
    roleArn='string',
    modelDataSource={
        's3DataSource': {
            's3Uri': 'string'
        }
    },
    jobTags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    importedModelTags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    clientRequestToken='string',
    vpcConfig={
        'subnetIds': [
            'string',
        ],
        'securityGroupIds': [
            'string',
        ]
    },
    importedModelKmsKeyId='string'
)
Parameters:
  • jobName (string) –

    [REQUIRED]

    The name of the import job.

  • importedModelName (string) –

    [REQUIRED]

    The name of the imported model.

  • roleArn (string) –

    [REQUIRED]

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

  • modelDataSource (dict) –

    [REQUIRED]

    The data source for the imported model.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: s3DataSource.

    • s3DataSource (dict) –

      The Amazon S3 data source of the imported model.

      • s3Uri (string) – [REQUIRED]

        The URI of the Amazon S3 data source.

  • jobTags (list) –

    Tags to attach to this import job.

    • (dict) –

      Definition of the key/value pair for a tag.

      • key (string) – [REQUIRED]

        Key for the tag.

      • value (string) – [REQUIRED]

        Value for the tag.

  • importedModelTags (list) –

    Tags to attach to the imported model.

    • (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.

  • vpcConfig (dict) –

    VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.

    • subnetIds (list) – [REQUIRED]

      An array of IDs for each subnet in the VPC to use.

      • (string) –

    • securityGroupIds (list) – [REQUIRED]

      An array of IDs for each security group in the VPC to use.

      • (string) –

  • importedModelKmsKeyId (string) – The imported model is encrypted at rest using this key.

Return type:

dict

Returns:

Response Syntax

{
    'jobArn': 'string'
}

Response Structure

  • (dict) –

    • jobArn (string) –

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

Exceptions

  • Bedrock.Client.exceptions.ResourceNotFoundException

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.ConflictException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.TooManyTagsException

  • Bedrock.Client.exceptions.ServiceQuotaExceededException

  • Bedrock.Client.exceptions.ThrottlingException