NAME
Paws::SageMaker::CreateModel - Arguments for method CreateModel on Paws::SageMaker
DESCRIPTION
This class represents the parameters used for calling the method CreateModel on the Amazon SageMaker Service service. Use the attributes of this class as arguments to method CreateModel.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateModel.
SYNOPSIS
my $api.sagemaker = Paws->service('SageMaker');
my $CreateModelOutput = $api . sagemaker->CreateModel(
ExecutionRoleArn => 'MyRoleArn',
ModelName => 'MyModelName',
Containers => [
{
ContainerHostname => 'MyContainerHostname', # max: 63; OPTIONAL
Environment => {
'MyEnvironmentKey' =>
'MyEnvironmentValue', # key: max: 1024, value: max: 1024
}, # max: 16; OPTIONAL
Image => 'MyContainerImage', # max: 255; OPTIONAL
ImageConfig => {
RepositoryAccessMode => 'Platform', # values: Platform, Vpc
RepositoryAuthConfig => {
RepositoryCredentialsProviderArn =>
'MyRepositoryCredentialsProviderArn', # min: 1, max: 2048
}, # OPTIONAL
}, # OPTIONAL
Mode => 'SingleModel', # values: SingleModel, MultiModel; OPTIONAL
ModelDataUrl => 'MyUrl', # max: 1024; OPTIONAL
ModelPackageName =>
'MyVersionedArnOrName', # min: 1, max: 176; OPTIONAL
MultiModelConfig => {
ModelCacheSetting =>
'Enabled', # values: Enabled, Disabled; OPTIONAL
}, # OPTIONAL
},
...
], # OPTIONAL
EnableNetworkIsolation => 1, # OPTIONAL
InferenceExecutionConfig => {
Mode => 'Serial', # values: Serial, Direct
}, # OPTIONAL
PrimaryContainer => {
ContainerHostname => 'MyContainerHostname', # max: 63; OPTIONAL
Environment => {
'MyEnvironmentKey' =>
'MyEnvironmentValue', # key: max: 1024, value: max: 1024
}, # max: 16; OPTIONAL
Image => 'MyContainerImage', # max: 255; OPTIONAL
ImageConfig => {
RepositoryAccessMode => 'Platform', # values: Platform, Vpc
RepositoryAuthConfig => {
RepositoryCredentialsProviderArn =>
'MyRepositoryCredentialsProviderArn', # min: 1, max: 2048
}, # OPTIONAL
}, # OPTIONAL
Mode => 'SingleModel', # values: SingleModel, MultiModel; OPTIONAL
ModelDataUrl => 'MyUrl', # max: 1024; OPTIONAL
ModelPackageName => 'MyVersionedArnOrName', # min: 1, max: 176; OPTIONAL
MultiModelConfig => {
ModelCacheSetting => 'Enabled', # values: Enabled, Disabled; OPTIONAL
}, # OPTIONAL
}, # OPTIONAL
Tags => [
{
Key => 'MyTagKey', # min: 1, max: 128
Value => 'MyTagValue', # max: 256
},
...
], # OPTIONAL
VpcConfig => {
SecurityGroupIds => [
'MySecurityGroupId', ... # max: 32
], # min: 1, max: 5
Subnets => [
'MySubnetId', ... # max: 32
], # min: 1, max: 16
}, # OPTIONAL
);
# Results:
my $ModelArn = $CreateModelOutput->ModelArn;
# Returns a L<Paws::SageMaker::CreateModelOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateModel
ATTRIBUTES
Containers => ArrayRef[Paws::SageMaker::ContainerDefinition]
Specifies the containers in the inference pipeline.
EnableNetworkIsolation => Bool
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
REQUIRED ExecutionRoleArn => Str
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.
InferenceExecutionConfig => Paws::SageMaker::InferenceExecutionConfig
Specifies details of how containers in a multi-container endpoint are called.
REQUIRED ModelName => Str
The name of the new model.
PrimaryContainer => Paws::SageMaker::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 for predictions.
Tags => ArrayRef[Paws::SageMaker::Tag]
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 (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
VpcConfig => Paws::SageMaker::VpcConfig
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 (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html).
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateModel in Paws::SageMaker
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues