1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. sagemaker
  6. HubContentReference
Viewing docs for AWS v7.35.0
published on Monday, Jun 22, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.35.0
published on Monday, Jun 22, 2026 by Pulumi

    Manages a SageMaker AI Hub Content Reference resource. A hub content reference copies a model from the SageMaker JumpStart public hub into a private hub so that it is accessible to users in that hub.

    Example Usage

    Basic usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.sagemaker.Hub("example", {
        hubName: "example",
        hubDescription: "example",
    });
    const exampleHubContentReference = new aws.sagemaker.HubContentReference("example", {
        hubName: example.hubName,
        hubContentName: "example-llama",
        sagemakerPublicHubContentArn: "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.sagemaker.Hub("example",
        hub_name="example",
        hub_description="example")
    example_hub_content_reference = aws.sagemaker.HubContentReference("example",
        hub_name=example.hub_name,
        hub_content_name="example-llama",
        sagemaker_public_hub_content_arn="arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sagemaker"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := sagemaker.NewHub(ctx, "example", &sagemaker.HubArgs{
    			HubName:        pulumi.String("example"),
    			HubDescription: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sagemaker.NewHubContentReference(ctx, "example", &sagemaker.HubContentReferenceArgs{
    			HubName:                      example.HubName,
    			HubContentName:               pulumi.String("example-llama"),
    			SagemakerPublicHubContentArn: pulumi.String("arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Sagemaker.Hub("example", new()
        {
            HubName = "example",
            HubDescription = "example",
        });
    
        var exampleHubContentReference = new Aws.Sagemaker.HubContentReference("example", new()
        {
            HubName = example.HubName,
            HubContentName = "example-llama",
            SagemakerPublicHubContentArn = "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sagemaker.Hub;
    import com.pulumi.aws.sagemaker.HubArgs;
    import com.pulumi.aws.sagemaker.HubContentReference;
    import com.pulumi.aws.sagemaker.HubContentReferenceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Hub("example", HubArgs.builder()
                .hubName("example")
                .hubDescription("example")
                .build());
    
            var exampleHubContentReference = new HubContentReference("exampleHubContentReference", HubContentReferenceArgs.builder()
                .hubName(example.hubName())
                .hubContentName("example-llama")
                .sagemakerPublicHubContentArn("arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:sagemaker:Hub
        properties:
          hubName: example
          hubDescription: example
      exampleHubContentReference:
        type: aws:sagemaker:HubContentReference
        name: example
        properties:
          hubName: ${example.hubName}
          hubContentName: example-llama
          sagemakerPublicHubContentArn: arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_sagemaker_hub" "example" {
      hub_name        = "example"
      hub_description = "example"
    }
    resource "aws_sagemaker_hubcontentreference" "example" {
      hub_name                         = aws_sagemaker_hub.example.hub_name
      hub_content_name                 = "example-llama"
      sagemaker_public_hub_content_arn = "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct"
    }
    

    With minimum version

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.sagemaker.HubContentReference("example", {
        hubName: exampleAwsSagemakerHub.hubName,
        hubContentName: "example-llama",
        sagemakerPublicHubContentArn: "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct",
        minVersion: "1.0.0",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.sagemaker.HubContentReference("example",
        hub_name=example_aws_sagemaker_hub["hubName"],
        hub_content_name="example-llama",
        sagemaker_public_hub_content_arn="arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct",
        min_version="1.0.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sagemaker"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sagemaker.NewHubContentReference(ctx, "example", &sagemaker.HubContentReferenceArgs{
    			HubName:                      pulumi.Any(exampleAwsSagemakerHub.HubName),
    			HubContentName:               pulumi.String("example-llama"),
    			SagemakerPublicHubContentArn: pulumi.String("arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct"),
    			MinVersion:                   pulumi.String("1.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Sagemaker.HubContentReference("example", new()
        {
            HubName = exampleAwsSagemakerHub.HubName,
            HubContentName = "example-llama",
            SagemakerPublicHubContentArn = "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct",
            MinVersion = "1.0.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sagemaker.HubContentReference;
    import com.pulumi.aws.sagemaker.HubContentReferenceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new HubContentReference("example", HubContentReferenceArgs.builder()
                .hubName(exampleAwsSagemakerHub.hubName())
                .hubContentName("example-llama")
                .sagemakerPublicHubContentArn("arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct")
                .minVersion("1.0.0")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:sagemaker:HubContentReference
        properties:
          hubName: ${exampleAwsSagemakerHub.hubName}
          hubContentName: example-llama
          sagemakerPublicHubContentArn: arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct
          minVersion: 1.0.0
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_sagemaker_hubcontentreference" "example" {
      hub_name                         = exampleAwsSagemakerHub.hubName
      hub_content_name                 = "example-llama"
      sagemaker_public_hub_content_arn = "arn:aws:sagemaker:us-east-1:aws:hub-content/SageMakerPublicHub/Model/meta-textgeneration-llama-3-1-8b-instruct"
      min_version                      = "1.0.0"
    }
    

    Create HubContentReference Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HubContentReference(name: string, args: HubContentReferenceArgs, opts?: CustomResourceOptions);
    @overload
    def HubContentReference(resource_name: str,
                            args: HubContentReferenceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def HubContentReference(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            hub_content_name: Optional[str] = None,
                            hub_name: Optional[str] = None,
                            sagemaker_public_hub_content_arn: Optional[str] = None,
                            min_version: Optional[str] = None,
                            region: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None,
                            timeouts: Optional[HubContentReferenceTimeoutsArgs] = None)
    func NewHubContentReference(ctx *Context, name string, args HubContentReferenceArgs, opts ...ResourceOption) (*HubContentReference, error)
    public HubContentReference(string name, HubContentReferenceArgs args, CustomResourceOptions? opts = null)
    public HubContentReference(String name, HubContentReferenceArgs args)
    public HubContentReference(String name, HubContentReferenceArgs args, CustomResourceOptions options)
    
    type: aws:sagemaker:HubContentReference
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_sagemaker_hubcontentreference" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args HubContentReferenceArgs
    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 HubContentReferenceArgs
    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 HubContentReferenceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubContentReferenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubContentReferenceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hubContentReferenceResource = new Aws.Sagemaker.HubContentReference("hubContentReferenceResource", new()
    {
        HubContentName = "string",
        HubName = "string",
        SagemakerPublicHubContentArn = "string",
        MinVersion = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Sagemaker.Inputs.HubContentReferenceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := sagemaker.NewHubContentReference(ctx, "hubContentReferenceResource", &sagemaker.HubContentReferenceArgs{
    	HubContentName:               pulumi.String("string"),
    	HubName:                      pulumi.String("string"),
    	SagemakerPublicHubContentArn: pulumi.String("string"),
    	MinVersion:                   pulumi.String("string"),
    	Region:                       pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &sagemaker.HubContentReferenceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "aws_sagemaker_hubcontentreference" "hubContentReferenceResource" {
      hub_content_name                 = "string"
      hub_name                         = "string"
      sagemaker_public_hub_content_arn = "string"
      min_version                      = "string"
      region                           = "string"
      tags = {
        "string" = "string"
      }
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
    }
    
    var hubContentReferenceResource = new HubContentReference("hubContentReferenceResource", HubContentReferenceArgs.builder()
        .hubContentName("string")
        .hubName("string")
        .sagemakerPublicHubContentArn("string")
        .minVersion("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(HubContentReferenceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    hub_content_reference_resource = aws.sagemaker.HubContentReference("hubContentReferenceResource",
        hub_content_name="string",
        hub_name="string",
        sagemaker_public_hub_content_arn="string",
        min_version="string",
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const hubContentReferenceResource = new aws.sagemaker.HubContentReference("hubContentReferenceResource", {
        hubContentName: "string",
        hubName: "string",
        sagemakerPublicHubContentArn: "string",
        minVersion: "string",
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:sagemaker:HubContentReference
    properties:
        hubContentName: string
        hubName: string
        minVersion: string
        region: string
        sagemakerPublicHubContentArn: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    HubContentReference 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 HubContentReference resource accepts the following input properties:

    HubContentName string
    Name of the hub content reference.
    HubName string
    Name of the private SageMaker Hub to add the content reference to.
    SagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    MinVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts HubContentReferenceTimeouts
    HubContentName string
    Name of the hub content reference.
    HubName string
    Name of the private SageMaker Hub to add the content reference to.
    SagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    MinVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts HubContentReferenceTimeoutsArgs
    hub_content_name string
    Name of the hub content reference.
    hub_name string
    Name of the private SageMaker Hub to add the content reference to.
    sagemaker_public_hub_content_arn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    min_version string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts object
    hubContentName String
    Name of the hub content reference.
    hubName String
    Name of the private SageMaker Hub to add the content reference to.
    sagemakerPublicHubContentArn String
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    minVersion String
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts HubContentReferenceTimeouts
    hubContentName string
    Name of the hub content reference.
    hubName string
    Name of the private SageMaker Hub to add the content reference to.
    sagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    minVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts HubContentReferenceTimeouts
    hub_content_name str
    Name of the hub content reference.
    hub_name str
    Name of the private SageMaker Hub to add the content reference to.
    sagemaker_public_hub_content_arn str
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    min_version str
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts HubContentReferenceTimeoutsArgs
    hubContentName String
    Name of the hub content reference.
    hubName String
    Name of the private SageMaker Hub to add the content reference to.
    sagemakerPublicHubContentArn String
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    minVersion String
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HubContentReference resource produces the following output properties:

    HubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    HubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    HubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    HubContentVersion string
    Version of the hub content reference.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    HubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    HubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    HubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    HubContentVersion string
    Version of the hub content reference.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    hub_arn string
    ARN of the private SageMaker Hub that contains the content reference.
    hub_content_arn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hub_content_status string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hub_content_version string
    Version of the hub content reference.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    hubArn String
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn String
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentStatus String
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion String
    Version of the hub content reference.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    hubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion string
    Version of the hub content reference.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    hub_arn str
    ARN of the private SageMaker Hub that contains the content reference.
    hub_content_arn str
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hub_content_status str
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hub_content_version str
    Version of the hub content reference.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    hubArn String
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn String
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentStatus String
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion String
    Version of the hub content reference.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing HubContentReference Resource

    Get an existing HubContentReference 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>, state?: HubContentReferenceState, opts?: CustomResourceOptions): HubContentReference
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            hub_arn: Optional[str] = None,
            hub_content_arn: Optional[str] = None,
            hub_content_name: Optional[str] = None,
            hub_content_status: Optional[str] = None,
            hub_content_version: Optional[str] = None,
            hub_name: Optional[str] = None,
            min_version: Optional[str] = None,
            region: Optional[str] = None,
            sagemaker_public_hub_content_arn: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[HubContentReferenceTimeoutsArgs] = None) -> HubContentReference
    func GetHubContentReference(ctx *Context, name string, id IDInput, state *HubContentReferenceState, opts ...ResourceOption) (*HubContentReference, error)
    public static HubContentReference Get(string name, Input<string> id, HubContentReferenceState? state, CustomResourceOptions? opts = null)
    public static HubContentReference get(String name, Output<String> id, HubContentReferenceState state, CustomResourceOptions options)
    resources:  _:    type: aws:sagemaker:HubContentReference    get:      id: ${id}
    import {
      to = aws_sagemaker_hubcontentreference.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    HubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    HubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    HubContentName string
    Name of the hub content reference.
    HubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    HubContentVersion string
    Version of the hub content reference.
    HubName string
    Name of the private SageMaker Hub to add the content reference to.
    MinVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Timeouts HubContentReferenceTimeouts
    HubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    HubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    HubContentName string
    Name of the hub content reference.
    HubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    HubContentVersion string
    Version of the hub content reference.
    HubName string
    Name of the private SageMaker Hub to add the content reference to.
    MinVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Timeouts HubContentReferenceTimeoutsArgs
    hub_arn string
    ARN of the private SageMaker Hub that contains the content reference.
    hub_content_arn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hub_content_name string
    Name of the hub content reference.
    hub_content_status string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hub_content_version string
    Version of the hub content reference.
    hub_name string
    Name of the private SageMaker Hub to add the content reference to.
    min_version string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sagemaker_public_hub_content_arn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts object
    hubArn String
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn String
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentName String
    Name of the hub content reference.
    hubContentStatus String
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion String
    Version of the hub content reference.
    hubName String
    Name of the private SageMaker Hub to add the content reference to.
    minVersion String
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sagemakerPublicHubContentArn String
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts HubContentReferenceTimeouts
    hubArn string
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn string
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentName string
    Name of the hub content reference.
    hubContentStatus string
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion string
    Version of the hub content reference.
    hubName string
    Name of the private SageMaker Hub to add the content reference to.
    minVersion string
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sagemakerPublicHubContentArn string
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts HubContentReferenceTimeouts
    hub_arn str
    ARN of the private SageMaker Hub that contains the content reference.
    hub_content_arn str
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hub_content_name str
    Name of the hub content reference.
    hub_content_status str
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hub_content_version str
    Version of the hub content reference.
    hub_name str
    Name of the private SageMaker Hub to add the content reference to.
    min_version str
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sagemaker_public_hub_content_arn str
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts HubContentReferenceTimeoutsArgs
    hubArn String
    ARN of the private SageMaker Hub that contains the content reference.
    hubContentArn String
    ARN of the hub content reference (without version suffix). The minVersion is stripped off from the end of this ARN to make it usable to list tags.
    hubContentName String
    Name of the hub content reference.
    hubContentStatus String
    Status of the hub content reference. Valid values include Available, Importing, Deleting, ImportFailed, DeleteFailed.
    hubContentVersion String
    Version of the hub content reference.
    hubName String
    Name of the private SageMaker Hub to add the content reference to.
    minVersion String
    Minimum version of the hub content to reference. Use "1.0.0" to support all versions. Changing this value to an empty string forces replacement of the resource.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sagemakerPublicHubContentArn String
    ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts Property Map

    Supporting Types

    HubContentReferenceTimeouts, HubContentReferenceTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • hubContentName - (String) Name of the hub content reference.
    • hubName - (String) Name of the private SageMaker Hub.

    Optional

    • accountId - (String) AWS account where this resource is managed.
    • region - (String) Region where this resource is managed.

    Using pulumi import, import SageMaker AI Hub Content References using hub_name,hub_content_name. For example:

    $ pulumi import aws:sagemaker/hubContentReference:HubContentReference example my-hub,my-content-reference
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.35.0
    published on Monday, Jun 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial