You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SageMaker::Types::CreateModelInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

Note:

When making an API call, you may pass CreateModelInput data as a hash:

{
  model_name: "ModelName", # required
  primary_container: { # required
    container_hostname: "ContainerHostname",
    image: "Image", # required
    model_data_url: "Url",
    environment: {
      "EnvironmentKey" => "EnvironmentValue",
    },
  },
  execution_role_arn: "RoleArn", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#execution_role_arnString

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. Deploying on ML compute instances is part of model hosting. For more information, see Amazon SageMaker Roles.

Returns:

  • (String)


428
429
430
431
432
433
434
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 428

class CreateModelInput < Struct.new(
  :model_name,
  :primary_container,
  :execution_role_arn,
  :tags)
  include Aws::Structure
end

#model_nameString

The name of the new model.

Returns:

  • (String)


428
429
430
431
432
433
434
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 428

class CreateModelInput < Struct.new(
  :model_name,
  :primary_container,
  :execution_role_arn,
  :tags)
  include Aws::Structure
end

#primary_containerTypes::ContainerDefinition

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 into production.



428
429
430
431
432
433
434
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 428

class CreateModelInput < Struct.new(
  :model_name,
  :primary_container,
  :execution_role_arn,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

Returns:



428
429
430
431
432
433
434
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 428

class CreateModelInput < Struct.new(
  :model_name,
  :primary_container,
  :execution_role_arn,
  :tags)
  include Aws::Structure
end