class Aws::SageMaker::Types::CreateModelInput

@note When making an API call, you may pass CreateModelInput

data as a hash:

    {
      model_name: "ModelName", # required
      primary_container: {
        container_hostname: "ContainerHostname",
        image: "ContainerImage",
        image_config: {
          repository_access_mode: "Platform", # required, accepts Platform, Vpc
          repository_auth_config: {
            repository_credentials_provider_arn: "RepositoryCredentialsProviderArn", # required
          },
        },
        mode: "SingleModel", # accepts SingleModel, MultiModel
        model_data_url: "Url",
        environment: {
          "EnvironmentKey" => "EnvironmentValue",
        },
        model_package_name: "VersionedArnOrName",
        multi_model_config: {
          model_cache_setting: "Enabled", # accepts Enabled, Disabled
        },
      },
      containers: [
        {
          container_hostname: "ContainerHostname",
          image: "ContainerImage",
          image_config: {
            repository_access_mode: "Platform", # required, accepts Platform, Vpc
            repository_auth_config: {
              repository_credentials_provider_arn: "RepositoryCredentialsProviderArn", # required
            },
          },
          mode: "SingleModel", # accepts SingleModel, MultiModel
          model_data_url: "Url",
          environment: {
            "EnvironmentKey" => "EnvironmentValue",
          },
          model_package_name: "VersionedArnOrName",
          multi_model_config: {
            model_cache_setting: "Enabled", # accepts Enabled, Disabled
          },
        },
      ],
      inference_execution_config: {
        mode: "Serial", # required, accepts Serial, Direct
      },
      execution_role_arn: "RoleArn", # required
      tags: [
        {
          key: "TagKey", # required
          value: "TagValue", # required
        },
      ],
      vpc_config: {
        security_group_ids: ["SecurityGroupId"], # required
        subnets: ["SubnetId"], # required
      },
      enable_network_isolation: false,
    }

@!attribute [rw] model_name

The name of the new model.
@return [String]

@!attribute [rw] primary_container

The location of the primary docker image containing inference code,
associated artifacts, and custom environment map that the inference
code uses when the model is deployed for predictions.
@return [Types::ContainerDefinition]

@!attribute [rw] containers

Specifies the containers in the inference pipeline.
@return [Array<Types::ContainerDefinition>]

@!attribute [rw] inference_execution_config

Specifies details of how containers in a multi-container endpoint
are called.
@return [Types::InferenceExecutionConfig]

@!attribute [rw] execution_role_arn

The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker
can assume to access model artifacts and docker image for deployment
on ML compute instances or for batch transform jobs. Deploying on ML
compute instances is part of model hosting. For more information,
see [Amazon SageMaker Roles][1].

<note markdown="1"> To be able to pass this role to Amazon SageMaker, the caller of this
API must have the `iam:PassRole` permission.

 </note>

[1]: https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html
@return [String]

@!attribute [rw] tags

An array of key-value pairs. You can use tags to categorize your
Amazon Web Services resources in different ways, for example, by
purpose, owner, or environment. For more information, see [Tagging
Amazon Web Services Resources][1].

[1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
@return [Array<Types::Tag>]

@!attribute [rw] vpc_config

A VpcConfig object that specifies the VPC that you want your model
to connect to. Control access to and from your model container by
configuring the VPC. `VpcConfig` is used in hosting services and in
batch transform. For more information, see [Protect Endpoints by
Using an Amazon Virtual Private Cloud][1] and [Protect Data in Batch
Transform Jobs by Using an Amazon Virtual Private Cloud][2].

[1]: https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html
[2]: https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html
@return [Types::VpcConfig]

@!attribute [rw] enable_network_isolation

Isolates the model container. No inbound or outbound network calls
can be made to or from the model container.
@return [Boolean]

@see docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelInput AWS API Documentation

Constants

SENSITIVE