We recommend new projects start with resources from the AWS provider.
published on Monday, Jul 27, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Jul 27, 2026 by Pulumi
Resource Type definition for AWS::SageMaker::Algorithm
Create Algorithm Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Algorithm(name: string, args: AlgorithmArgs, opts?: CustomResourceOptions);@overload
def Algorithm(resource_name: str,
args: AlgorithmArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Algorithm(resource_name: str,
opts: Optional[ResourceOptions] = None,
training_specification: Optional[AlgorithmTrainingSpecificationArgs] = None,
algorithm_description: Optional[str] = None,
algorithm_name: Optional[str] = None,
certify_for_marketplace: Optional[bool] = None,
inference_specification: Optional[AlgorithmInferenceSpecificationArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewAlgorithm(ctx *Context, name string, args AlgorithmArgs, opts ...ResourceOption) (*Algorithm, error)public Algorithm(string name, AlgorithmArgs args, CustomResourceOptions? opts = null)
public Algorithm(String name, AlgorithmArgs args)
public Algorithm(String name, AlgorithmArgs args, CustomResourceOptions options)
type: aws-native:sagemaker:Algorithm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_sagemaker_algorithm" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlgorithmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlgorithmArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlgorithmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlgorithmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlgorithmArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Algorithm Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Algorithm resource accepts the following input properties:
- Training
Specification Pulumi.Aws Native. Sage Maker. Inputs. Algorithm Training Specification - Algorithm
Description string - A description of the algorithm.
- Algorithm
Name string - The name of the algorithm.
- Certify
For boolMarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- Inference
Specification Pulumi.Aws Native. Sage Maker. Inputs. Algorithm Inference Specification -
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Training
Specification AlgorithmTraining Specification Args - Algorithm
Description string - A description of the algorithm.
- Algorithm
Name string - The name of the algorithm.
- Certify
For boolMarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- Inference
Specification AlgorithmInference Specification Args -
Tag
Args - An array of key-value pairs to apply to this resource.
- training_
specification object - algorithm_
description string - A description of the algorithm.
- algorithm_
name string - The name of the algorithm.
- certify_
for_ boolmarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- inference_
specification object - list(object)
- An array of key-value pairs to apply to this resource.
- training
Specification AlgorithmTraining Specification - algorithm
Description String - A description of the algorithm.
- algorithm
Name String - The name of the algorithm.
- certify
For BooleanMarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- inference
Specification AlgorithmInference Specification - List<Tag>
- An array of key-value pairs to apply to this resource.
- training
Specification AlgorithmTraining Specification - algorithm
Description string - A description of the algorithm.
- algorithm
Name string - The name of the algorithm.
- certify
For booleanMarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- inference
Specification AlgorithmInference Specification - Tag[]
- An array of key-value pairs to apply to this resource.
- training_
specification AlgorithmTraining Specification Args - algorithm_
description str - A description of the algorithm.
- algorithm_
name str - The name of the algorithm.
- certify_
for_ boolmarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- inference_
specification AlgorithmInference Specification Args -
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- training
Specification Property Map - algorithm
Description String - A description of the algorithm.
- algorithm
Name String - The name of the algorithm.
- certify
For BooleanMarketplace - Whether to certify the algorithm so that it can be listed in AWS Marketplace.
- inference
Specification Property Map - List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Algorithm resource produces the following output properties:
- Algorithm
Arn string - The Amazon Resource Name (ARN) of the algorithm.
- Creation
Time string - A timestamp specifying when the algorithm was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Algorithm
Arn string - The Amazon Resource Name (ARN) of the algorithm.
- Creation
Time string - A timestamp specifying when the algorithm was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- algorithm_
arn string - The Amazon Resource Name (ARN) of the algorithm.
- creation_
time string - A timestamp specifying when the algorithm was created.
- id string
- The provider-assigned unique ID for this managed resource.
- algorithm
Arn String - The Amazon Resource Name (ARN) of the algorithm.
- creation
Time String - A timestamp specifying when the algorithm was created.
- id String
- The provider-assigned unique ID for this managed resource.
- algorithm
Arn string - The Amazon Resource Name (ARN) of the algorithm.
- creation
Time string - A timestamp specifying when the algorithm was created.
- id string
- The provider-assigned unique ID for this managed resource.
- algorithm_
arn str - The Amazon Resource Name (ARN) of the algorithm.
- creation_
time str - A timestamp specifying when the algorithm was created.
- id str
- The provider-assigned unique ID for this managed resource.
- algorithm
Arn String - The Amazon Resource Name (ARN) of the algorithm.
- creation
Time String - A timestamp specifying when the algorithm was created.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
AlgorithmCategoricalParameterRangeSpecification, AlgorithmCategoricalParameterRangeSpecificationArgs
- Values List<string>
- Values []string
- values list(string)
- values List<String>
- values string[]
- values Sequence[str]
- values List<String>
AlgorithmChannelSpecification, AlgorithmChannelSpecificationArgs
- Name string
- Supported
Content List<string>Types - Supported
Input List<Pulumi.Modes Aws Native. Sage Maker. Algorithm Channel Specification Supported Input Modes Item> - Description string
- Is
Required bool - Supported
Compression List<Pulumi.Types Aws Native. Sage Maker. Algorithm Channel Specification Supported Compression Types Item>
- name String
- supported
Content List<String>Types - supported
Input List<"Pipe" | "File" | "FastModes File"> - description String
- is
Required Boolean - supported
Compression List<"None" | "Gzip">Types
AlgorithmChannelSpecificationSupportedCompressionTypesItem, AlgorithmChannelSpecificationSupportedCompressionTypesItemArgs
- None
None- Gzip
Gzip
- Algorithm
Channel Specification Supported Compression Types Item None None- Algorithm
Channel Specification Supported Compression Types Item Gzip Gzip
- "None"
None- "Gzip"
Gzip
- None
None- Gzip
Gzip
- None
None- Gzip
Gzip
- NONE
None- GZIP
Gzip
- "None"
None- "Gzip"
Gzip
AlgorithmChannelSpecificationSupportedInputModesItem, AlgorithmChannelSpecificationSupportedInputModesItemArgs
- Pipe
Pipe- File
File- Fast
File FastFile
- Algorithm
Channel Specification Supported Input Modes Item Pipe Pipe- Algorithm
Channel Specification Supported Input Modes Item File File- Algorithm
Channel Specification Supported Input Modes Item Fast File FastFile
- "Pipe"
Pipe- "File"
File- "Fast
File" FastFile
- Pipe
Pipe- File
File- Fast
File FastFile
- Pipe
Pipe- File
File- Fast
File FastFile
- PIPE
Pipe- FILE
File- FAST_FILE
FastFile
- "Pipe"
Pipe- "File"
File- "Fast
File" FastFile
AlgorithmContinuousParameterRangeSpecification, AlgorithmContinuousParameterRangeSpecificationArgs
AlgorithmHyperParameterSpecification, AlgorithmHyperParameterSpecificationArgs
- Name string
- Type
Algorithm
Hyper Parameter Specification Type - Default
Value string - Description string
- Is
Required bool - Is
Tunable bool - Range
Algorithm
Parameter Range
- name string
- type
"Integer" | "Continuous" | "Categorical" | "Free
Text" - default_
value string - description string
- is_
required bool - is_
tunable bool - range object
- name String
- type
Algorithm
Hyper Parameter Specification Type - default
Value String - description String
- is
Required Boolean - is
Tunable Boolean - range
Algorithm
Parameter Range
- name string
- type
Algorithm
Hyper Parameter Specification Type - default
Value string - description string
- is
Required boolean - is
Tunable boolean - range
Algorithm
Parameter Range
- name String
- type
"Integer" | "Continuous" | "Categorical" | "Free
Text" - default
Value String - description String
- is
Required Boolean - is
Tunable Boolean - range Property Map
AlgorithmHyperParameterSpecificationType, AlgorithmHyperParameterSpecificationTypeArgs
- Integer
Integer- Continuous
Continuous- Categorical
Categorical- Free
Text FreeText
- Algorithm
Hyper Parameter Specification Type Integer Integer- Algorithm
Hyper Parameter Specification Type Continuous Continuous- Algorithm
Hyper Parameter Specification Type Categorical Categorical- Algorithm
Hyper Parameter Specification Type Free Text FreeText
- "Integer"
Integer- "Continuous"
Continuous- "Categorical"
Categorical- "Free
Text" FreeText
- Integer
Integer- Continuous
Continuous- Categorical
Categorical- Free
Text FreeText
- Integer
Integer- Continuous
Continuous- Categorical
Categorical- Free
Text FreeText
- INTEGER
Integer- CONTINUOUS
Continuous- CATEGORICAL
Categorical- FREE_TEXT
FreeText
- "Integer"
Integer- "Continuous"
Continuous- "Categorical"
Categorical- "Free
Text" FreeText
AlgorithmHyperParameterTuningJobObjective, AlgorithmHyperParameterTuningJobObjectiveArgs
AlgorithmHyperParameterTuningJobObjectiveType, AlgorithmHyperParameterTuningJobObjectiveTypeArgs
- Maximize
Maximize- Minimize
Minimize
- Algorithm
Hyper Parameter Tuning Job Objective Type Maximize Maximize- Algorithm
Hyper Parameter Tuning Job Objective Type Minimize Minimize
- "Maximize"
Maximize- "Minimize"
Minimize
- Maximize
Maximize- Minimize
Minimize
- Maximize
Maximize- Minimize
Minimize
- MAXIMIZE
Maximize- MINIMIZE
Minimize
- "Maximize"
Maximize- "Minimize"
Minimize
AlgorithmInferenceSpecification, AlgorithmInferenceSpecificationArgs
- Containers
List<Pulumi.
Aws Native. Sage Maker. Inputs. Algorithm Model Package Container Definition> - Supported
Content List<string>Types - Supported
Realtime List<string>Inference Instance Types - Supported
Response List<string>Mime Types - Supported
Transform List<string>Instance Types
- containers list(object)
- supported_
content_ list(string)types - supported_
realtime_ list(string)inference_ instance_ types - supported_
response_ list(string)mime_ types - supported_
transform_ list(string)instance_ types
- containers
List<Algorithm
Model Package Container Definition> - supported
Content List<String>Types - supported
Realtime List<String>Inference Instance Types - supported
Response List<String>Mime Types - supported
Transform List<String>Instance Types
- containers
Sequence[Algorithm
Model Package Container Definition] - supported_
content_ Sequence[str]types - supported_
realtime_ Sequence[str]inference_ instance_ types - supported_
response_ Sequence[str]mime_ types - supported_
transform_ Sequence[str]instance_ types
- containers List<Property Map>
- supported
Content List<String>Types - supported
Realtime List<String>Inference Instance Types - supported
Response List<String>Mime Types - supported
Transform List<String>Instance Types
AlgorithmIntegerParameterRangeSpecification, AlgorithmIntegerParameterRangeSpecificationArgs
AlgorithmMetricDefinition, AlgorithmMetricDefinitionArgs
AlgorithmModelInput, AlgorithmModelInputArgs
- Data
Input stringConfig
- Data
Input stringConfig
- data_
input_ stringconfig
- data
Input StringConfig
- data
Input stringConfig
- data
Input StringConfig
AlgorithmModelPackageContainerDefinition, AlgorithmModelPackageContainerDefinitionArgs
- Image string
- Container
Hostname string - Environment Dictionary<string, string>
- Framework string
- Framework
Version string - Image
Digest string - Is
Checkpoint bool - Model
Input Pulumi.Aws Native. Sage Maker. Inputs. Algorithm Model Input - Nearest
Model stringName
- Image string
- Container
Hostname string - Environment map[string]string
- Framework string
- Framework
Version string - Image
Digest string - Is
Checkpoint bool - Model
Input AlgorithmModel Input - Nearest
Model stringName
- image string
- container_
hostname string - environment map(string)
- framework string
- framework_
version string - image_
digest string - is_
checkpoint bool - model_
input object - nearest_
model_ stringname
- image String
- container
Hostname String - environment Map<String,String>
- framework String
- framework
Version String - image
Digest String - is
Checkpoint Boolean - model
Input AlgorithmModel Input - nearest
Model StringName
- image string
- container
Hostname string - environment {[key: string]: string}
- framework string
- framework
Version string - image
Digest string - is
Checkpoint boolean - model
Input AlgorithmModel Input - nearest
Model stringName
- image str
- container_
hostname str - environment Mapping[str, str]
- framework str
- framework_
version str - image_
digest str - is_
checkpoint bool - model_
input AlgorithmModel Input - nearest_
model_ strname
- image String
- container
Hostname String - environment Map<String>
- framework String
- framework
Version String - image
Digest String - is
Checkpoint Boolean - model
Input Property Map - nearest
Model StringName
AlgorithmParameterRange, AlgorithmParameterRangeArgs
- Categorical
Parameter Pulumi.Range Specification Aws Native. Sage Maker. Inputs. Algorithm Categorical Parameter Range Specification - Continuous
Parameter Pulumi.Range Specification Aws Native. Sage Maker. Inputs. Algorithm Continuous Parameter Range Specification - Integer
Parameter Pulumi.Range Specification Aws Native. Sage Maker. Inputs. Algorithm Integer Parameter Range Specification
AlgorithmTrainingSpecification, AlgorithmTrainingSpecificationArgs
- Supported
Training List<string>Instance Types - Training
Channels List<Pulumi.Aws Native. Sage Maker. Inputs. Algorithm Channel Specification> - Training
Image string - Metric
Definitions List<Pulumi.Aws Native. Sage Maker. Inputs. Algorithm Metric Definition> - Supported
Hyper List<Pulumi.Parameters Aws Native. Sage Maker. Inputs. Algorithm Hyper Parameter Specification> - Supported
Tuning List<Pulumi.Job Objective Metrics Aws Native. Sage Maker. Inputs. Algorithm Hyper Parameter Tuning Job Objective> - Supports
Distributed boolTraining - Training
Image stringDigest
- Supported
Training []stringInstance Types - Training
Channels []AlgorithmChannel Specification - Training
Image string - Metric
Definitions []AlgorithmMetric Definition - Supported
Hyper []AlgorithmParameters Hyper Parameter Specification - Supported
Tuning []AlgorithmJob Objective Metrics Hyper Parameter Tuning Job Objective - Supports
Distributed boolTraining - Training
Image stringDigest
- supported
Training List<String>Instance Types - training
Channels List<AlgorithmChannel Specification> - training
Image String - metric
Definitions List<AlgorithmMetric Definition> - supported
Hyper List<AlgorithmParameters Hyper Parameter Specification> - supported
Tuning List<AlgorithmJob Objective Metrics Hyper Parameter Tuning Job Objective> - supports
Distributed BooleanTraining - training
Image StringDigest
- supported
Training string[]Instance Types - training
Channels AlgorithmChannel Specification[] - training
Image string - metric
Definitions AlgorithmMetric Definition[] - supported
Hyper AlgorithmParameters Hyper Parameter Specification[] - supported
Tuning AlgorithmJob Objective Metrics Hyper Parameter Tuning Job Objective[] - supports
Distributed booleanTraining - training
Image stringDigest
- supported_
training_ Sequence[str]instance_ types - training_
channels Sequence[AlgorithmChannel Specification] - training_
image str - metric_
definitions Sequence[AlgorithmMetric Definition] - supported_
hyper_ Sequence[Algorithmparameters Hyper Parameter Specification] - supported_
tuning_ Sequence[Algorithmjob_ objective_ metrics Hyper Parameter Tuning Job Objective] - supports_
distributed_ booltraining - training_
image_ strdigest
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Jul 27, 2026 by Pulumi