AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateModelInput

import "github.com/aws/aws-sdk-go/service/sagemaker"

type CreateModelInput struct { Containers []*ContainerDefinition `type:"list"` EnableNetworkIsolation *bool `type:"boolean"` ExecutionRoleArn *string `min:"20" type:"string" required:"true"` ModelName *string `type:"string" required:"true"` PrimaryContainer *ContainerDefinition `type:"structure"` Tags []*Tag `type:"list"` VpcConfig *VpcConfig `type:"structure"` }

Containers

Describes the container, as part of model definition.

EnableNetworkIsolation

Type: *bool

Isolates the model container. No inbound or outbound network calls can be made to or from the model container.

The Semantic Segmentation built-in algorithm does not support network isolation.

ExecutionRoleArn

Type: *string

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 (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html).

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

ExecutionRoleArn is a required field

ModelName

Type: *string

The name of the new model.

ModelName is a required field

PrimaryContainer

Describes the container, as part of model definition.

Tags

Describes a tag.

VpcConfig

Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html).

Method

GoString

func (s CreateModelInput) GoString() string

GoString returns the string representation

SetContainers

func (s *CreateModelInput) SetContainers(v []*ContainerDefinition) *CreateModelInput

SetContainers sets the Containers field's value.

SetEnableNetworkIsolation

func (s *CreateModelInput) SetEnableNetworkIsolation(v bool) *CreateModelInput

SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value.

SetExecutionRoleArn

func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput

SetExecutionRoleArn sets the ExecutionRoleArn field's value.

SetModelName

func (s *CreateModelInput) SetModelName(v string) *CreateModelInput

SetModelName sets the ModelName field's value.

SetPrimaryContainer

func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput

SetPrimaryContainer sets the PrimaryContainer field's value.

SetTags

func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput

SetTags sets the Tags field's value.

SetVpcConfig

func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput

SetVpcConfig sets the VpcConfig field's value.

String

func (s CreateModelInput) String() string

String returns the string representation

Validate

func (s *CreateModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: