1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. sagemaker
  6. Algorithm

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 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:

    TrainingSpecification Pulumi.AwsNative.SageMaker.Inputs.AlgorithmTrainingSpecification
    AlgorithmDescription string
    A description of the algorithm.
    AlgorithmName string
    The name of the algorithm.
    CertifyForMarketplace bool
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    InferenceSpecification Pulumi.AwsNative.SageMaker.Inputs.AlgorithmInferenceSpecification
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to this resource.
    TrainingSpecification AlgorithmTrainingSpecificationArgs
    AlgorithmDescription string
    A description of the algorithm.
    AlgorithmName string
    The name of the algorithm.
    CertifyForMarketplace bool
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    InferenceSpecification AlgorithmInferenceSpecificationArgs
    Tags TagArgs
    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_marketplace bool
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    inference_specification object
    tags list(object)
    An array of key-value pairs to apply to this resource.
    trainingSpecification AlgorithmTrainingSpecification
    algorithmDescription String
    A description of the algorithm.
    algorithmName String
    The name of the algorithm.
    certifyForMarketplace Boolean
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    inferenceSpecification AlgorithmInferenceSpecification
    tags List<Tag>
    An array of key-value pairs to apply to this resource.
    trainingSpecification AlgorithmTrainingSpecification
    algorithmDescription string
    A description of the algorithm.
    algorithmName string
    The name of the algorithm.
    certifyForMarketplace boolean
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    inferenceSpecification AlgorithmInferenceSpecification
    tags Tag[]
    An array of key-value pairs to apply to this resource.
    training_specification AlgorithmTrainingSpecificationArgs
    algorithm_description str
    A description of the algorithm.
    algorithm_name str
    The name of the algorithm.
    certify_for_marketplace bool
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    inference_specification AlgorithmInferenceSpecificationArgs
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to this resource.
    trainingSpecification Property Map
    algorithmDescription String
    A description of the algorithm.
    algorithmName String
    The name of the algorithm.
    certifyForMarketplace Boolean
    Whether to certify the algorithm so that it can be listed in AWS Marketplace.
    inferenceSpecification Property Map
    tags 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:

    AlgorithmArn string
    The Amazon Resource Name (ARN) of the algorithm.
    CreationTime string
    A timestamp specifying when the algorithm was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    AlgorithmArn string
    The Amazon Resource Name (ARN) of the algorithm.
    CreationTime 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.
    algorithmArn String
    The Amazon Resource Name (ARN) of the algorithm.
    creationTime String
    A timestamp specifying when the algorithm was created.
    id String
    The provider-assigned unique ID for this managed resource.
    algorithmArn string
    The Amazon Resource Name (ARN) of the algorithm.
    creationTime 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.
    algorithmArn String
    The Amazon Resource Name (ARN) of the algorithm.
    creationTime String
    A timestamp specifying when the algorithm was created.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Algorithm Resource

    Get an existing Algorithm resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Algorithm
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Algorithm
    func GetAlgorithm(ctx *Context, name string, id IDInput, state *AlgorithmState, opts ...ResourceOption) (*Algorithm, error)
    public static Algorithm Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Algorithm get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAlgorithm:    type: aws-native:sagemaker:Algorithm    get:      id: ${id}
    import {
      to = aws-native_sagemaker_algorithm.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AlgorithmState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    AlgorithmChannelSpecificationSupportedCompressionTypesItem

    NameValue
    NoneNone
    GzipGzip
    NameValue
    AlgorithmChannelSpecificationSupportedCompressionTypesItemNoneNone
    AlgorithmChannelSpecificationSupportedCompressionTypesItemGzipGzip
    Value
    None
    Gzip
    NameValue
    NoneNone
    GzipGzip
    NameValue
    NoneNone
    GzipGzip
    NameValue
    NONENone
    GZIPGzip
    Value
    None
    Gzip

    AlgorithmChannelSpecificationSupportedInputModesItem

    NameValue
    PipePipe
    FileFile
    FastFileFastFile
    NameValue
    AlgorithmChannelSpecificationSupportedInputModesItemPipePipe
    AlgorithmChannelSpecificationSupportedInputModesItemFileFile
    AlgorithmChannelSpecificationSupportedInputModesItemFastFileFastFile
    Value
    Pipe
    File
    FastFile
    NameValue
    PipePipe
    FileFile
    FastFileFastFile
    NameValue
    PipePipe
    FileFile
    FastFileFastFile
    NameValue
    PIPEPipe
    FILEFile
    FAST_FILEFastFile
    Value
    Pipe
    File
    FastFile

    AlgorithmContinuousParameterRangeSpecification, AlgorithmContinuousParameterRangeSpecificationArgs

    MaxValue string
    MinValue string
    MaxValue string
    MinValue string
    max_value string
    min_value string
    maxValue String
    minValue String
    maxValue string
    minValue string
    maxValue String
    minValue String

    AlgorithmHyperParameterSpecification, AlgorithmHyperParameterSpecificationArgs

    AlgorithmHyperParameterSpecificationType

    NameValue
    IntegerInteger
    ContinuousContinuous
    CategoricalCategorical
    FreeTextFreeText
    NameValue
    AlgorithmHyperParameterSpecificationTypeIntegerInteger
    AlgorithmHyperParameterSpecificationTypeContinuousContinuous
    AlgorithmHyperParameterSpecificationTypeCategoricalCategorical
    AlgorithmHyperParameterSpecificationTypeFreeTextFreeText
    Value
    Integer
    Continuous
    Categorical
    FreeText
    NameValue
    IntegerInteger
    ContinuousContinuous
    CategoricalCategorical
    FreeTextFreeText
    NameValue
    IntegerInteger
    ContinuousContinuous
    CategoricalCategorical
    FreeTextFreeText
    NameValue
    INTEGERInteger
    CONTINUOUSContinuous
    CATEGORICALCategorical
    FREE_TEXTFreeText
    Value
    Integer
    Continuous
    Categorical
    FreeText

    AlgorithmHyperParameterTuningJobObjective, AlgorithmHyperParameterTuningJobObjectiveArgs

    AlgorithmHyperParameterTuningJobObjectiveType

    NameValue
    MaximizeMaximize
    MinimizeMinimize
    NameValue
    AlgorithmHyperParameterTuningJobObjectiveTypeMaximizeMaximize
    AlgorithmHyperParameterTuningJobObjectiveTypeMinimizeMinimize
    Value
    Maximize
    Minimize
    NameValue
    MaximizeMaximize
    MinimizeMinimize
    NameValue
    MaximizeMaximize
    MinimizeMinimize
    NameValue
    MAXIMIZEMaximize
    MINIMIZEMinimize
    Value
    Maximize
    Minimize

    AlgorithmInferenceSpecification, AlgorithmInferenceSpecificationArgs

    AlgorithmIntegerParameterRangeSpecification, AlgorithmIntegerParameterRangeSpecificationArgs

    MaxValue string
    MinValue string
    MaxValue string
    MinValue string
    max_value string
    min_value string
    maxValue String
    minValue String
    maxValue string
    minValue string
    maxValue String
    minValue String

    AlgorithmMetricDefinition, AlgorithmMetricDefinitionArgs

    Name string
    Regex string
    Name string
    Regex string
    name string
    regex string
    name String
    regex String
    name string
    regex string
    name str
    regex str
    name String
    regex String

    AlgorithmModelInput, AlgorithmModelInputArgs

    AlgorithmModelPackageContainerDefinition, AlgorithmModelPackageContainerDefinitionArgs

    AlgorithmParameterRange, AlgorithmParameterRangeArgs

    AlgorithmTrainingSpecification, AlgorithmTrainingSpecificationArgs

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial