published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Provides details about an AWS SageMaker AI Hub Content, such as a model in the SageMaker JumpStart public hub or a model reference in a private hub.
Example Usage
Public Hub Model
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const example = aws.sagemaker.getHubContent({
hubName: "SageMakerPublicHub",
hubContentName: "meta-textgeneration-llama-2-13b-f",
hubContentType: "Model",
});
const hostingArtifactUri = example.then(example => std.jsondecode({
input: example.hubContentDocument,
})).then(invoke => invoke.result?.HostingArtifactUri);
import pulumi
import pulumi_aws as aws
import pulumi_std as std
example = aws.sagemaker.get_hub_content(hub_name="SageMakerPublicHub",
hub_content_name="meta-textgeneration-llama-2-13b-f",
hub_content_type="Model")
hosting_artifact_uri = std.jsondecode(input=example.hub_content_document).result["HostingArtifactUri"]
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sagemaker"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := sagemaker.GetHubContent(ctx, &sagemaker.GetHubContentArgs{
HubName: "SageMakerPublicHub",
HubContentName: "meta-textgeneration-llama-2-13b-f",
HubContentType: "Model",
}, nil)
if err != nil {
return err
}
_ := std.Jsondecode(ctx, &std.JsondecodeArgs{
Input: example.HubContentDocument,
}, nil).Result.HostingArtifactUri
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var example = Aws.Sagemaker.GetHubContent.Invoke(new()
{
HubName = "SageMakerPublicHub",
HubContentName = "meta-textgeneration-llama-2-13b-f",
HubContentType = "Model",
});
var hostingArtifactUri = Std.Jsondecode.Invoke(new()
{
Input = example.Apply(getHubContentResult => getHubContentResult.HubContentDocument),
}).Apply(invoke => invoke.Result?.HostingArtifactUri);
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.SagemakerFunctions;
import com.pulumi.aws.sagemaker.inputs.GetHubContentArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.JsondecodeArgs;
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) {
final var example = SagemakerFunctions.getHubContent(GetHubContentArgs.builder()
.hubName("SageMakerPublicHub")
.hubContentName("meta-textgeneration-llama-2-13b-f")
.hubContentType("Model")
.build());
final var hostingArtifactUri = StdFunctions.jsondecode(JsondecodeArgs.builder()
.input(example.hubContentDocument())
.build()).result().HostingArtifactUri();
}
}
variables:
example:
fn::invoke:
function: aws:sagemaker:getHubContent
arguments:
hubName: SageMakerPublicHub
hubContentName: meta-textgeneration-llama-2-13b-f
hubContentType: Model
hostingArtifactUri:
fn::invoke:
function: std:jsondecode
arguments:
input: ${example.hubContentDocument}
return: result.HostingArtifactUri
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
std = {
source = "pulumi/std"
}
}
}
data "aws_sagemaker_hub_content" "example" {
hub_name = "SageMakerPublicHub"
hub_content_name = "meta-textgeneration-llama-2-13b-f"
hub_content_type = "Model"
}
locals {
hostingArtifactUri = jsondecode(data.aws_sagemaker_hub_content.example.hub_content_document).hosting_artifact_uri
}
Private Hub Model Reference
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.sagemaker.getHubContent({
hubName: exampleAwsSagemakerHubContentReference.hubName,
hubContentName: exampleAwsSagemakerHubContentReference.hubContentName,
hubContentType: "ModelReference",
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.get_hub_content(hub_name=example_aws_sagemaker_hub_content_reference["hubName"],
hub_content_name=example_aws_sagemaker_hub_content_reference["hubContentName"],
hub_content_type="ModelReference")
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.GetHubContent(ctx, &sagemaker.GetHubContentArgs{
HubName: exampleAwsSagemakerHubContentReference.HubName,
HubContentName: exampleAwsSagemakerHubContentReference.HubContentName,
HubContentType: "ModelReference",
}, nil)
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 = Aws.Sagemaker.GetHubContent.Invoke(new()
{
HubName = exampleAwsSagemakerHubContentReference.HubName,
HubContentName = exampleAwsSagemakerHubContentReference.HubContentName,
HubContentType = "ModelReference",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.SagemakerFunctions;
import com.pulumi.aws.sagemaker.inputs.GetHubContentArgs;
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) {
final var example = SagemakerFunctions.getHubContent(GetHubContentArgs.builder()
.hubName(exampleAwsSagemakerHubContentReference.get("hubName"))
.hubContentName(exampleAwsSagemakerHubContentReference.get("hubContentName"))
.hubContentType("ModelReference")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:sagemaker:getHubContent
arguments:
hubName: ${exampleAwsSagemakerHubContentReference.hubName}
hubContentName: ${exampleAwsSagemakerHubContentReference.hubContentName}
hubContentType: ModelReference
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_sagemaker_hub_content" "example" {
hub_name = exampleAwsSagemakerHubContentReference.hubName
hub_content_name = exampleAwsSagemakerHubContentReference.hubContentName
hub_content_type = "ModelReference"
}
Using getHubContent
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHubContent(args: GetHubContentArgs, opts?: InvokeOptions): Promise<GetHubContentResult>
function getHubContentOutput(args: GetHubContentOutputArgs, opts?: InvokeOutputOptions): Output<GetHubContentResult>def get_hub_content(hub_content_name: Optional[str] = None,
hub_content_type: Optional[str] = None,
hub_content_version: Optional[str] = None,
hub_name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHubContentResult
def get_hub_content_output(hub_content_name: pulumi.Input[Optional[str]] = None,
hub_content_type: pulumi.Input[Optional[str]] = None,
hub_content_version: pulumi.Input[Optional[str]] = None,
hub_name: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetHubContentResult]func GetHubContent(ctx *Context, args *GetHubContentArgs, opts ...InvokeOption) (*GetHubContentResult, error)
func GetHubContentOutput(ctx *Context, args *GetHubContentOutputArgs, opts ...InvokeOption) GetHubContentResultOutput> Note: This function is named GetHubContent in the Go SDK.
public static class GetHubContent
{
public static Task<GetHubContentResult> InvokeAsync(GetHubContentArgs args, InvokeOptions? opts = null)
public static Output<GetHubContentResult> Invoke(GetHubContentInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetHubContentResult> Invoke(GetHubContentInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetHubContentResult> getHubContent(GetHubContentArgs args, InvokeOptions options)
public static Output<GetHubContentResult> getHubContent(GetHubContentArgs args, InvokeOptions options)
public static Output<GetHubContentResult> getHubContent(GetHubContentArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:sagemaker/getHubContent:getHubContent
arguments:
# arguments dictionarydata "aws_sagemaker_get_hub_content" "name" {
# arguments
}The following arguments are supported:
- Hub
Content stringName - Name of the hub content.
- Hub
Content stringType - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - Hub
Name string Name of the hub that contains the content.
The following arguments are optional:
- Hub
Content stringVersion - Version of the hub content. Defaults to the latest version.
- Region string
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- Hub
Content stringName - Name of the hub content.
- Hub
Content stringType - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - Hub
Name string Name of the hub that contains the content.
The following arguments are optional:
- Hub
Content stringVersion - Version of the hub content. Defaults to the latest version.
- Region string
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- hub_
content_ stringname - Name of the hub content.
- hub_
content_ stringtype - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - hub_
name string Name of the hub that contains the content.
The following arguments are optional:
- hub_
content_ stringversion - Version of the hub content. Defaults to the latest version.
- region string
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- hub
Content StringName - Name of the hub content.
- hub
Content StringType - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - hub
Name String Name of the hub that contains the content.
The following arguments are optional:
- hub
Content StringVersion - Version of the hub content. Defaults to the latest version.
- region String
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- hub
Content stringName - Name of the hub content.
- hub
Content stringType - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - hub
Name string Name of the hub that contains the content.
The following arguments are optional:
- hub
Content stringVersion - Version of the hub content. Defaults to the latest version.
- region string
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- hub_
content_ strname - Name of the hub content.
- hub_
content_ strtype - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - hub_
name str Name of the hub that contains the content.
The following arguments are optional:
- hub_
content_ strversion - Version of the hub content. Defaults to the latest version.
- region str
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
- hub
Content StringName - Name of the hub content.
- hub
Content StringType - Type of the hub content. Valid values:
Model,Notebook,ModelReference,DataSet,JsonDoc. - hub
Name String Name of the hub that contains the content.
The following arguments are optional:
- hub
Content StringVersion - Version of the hub content. Defaults to the latest version.
- region String
- Region where this data source will be managed. Defaults to the Region set in the provider configuration.
getHubContent Result
The following output properties are available:
- Creation
Time string - Date and time the hub content was created.
- Document
Schema stringVersion - Version of the hub content document schema.
- Failure
Reason string - Failure reason if importing the hub content failed.
- Hub
Arn string - ARN of the hub that contains the content.
- Hub
Content stringArn - ARN of the hub content, without the version suffix.
- Hub
Content List<GetDependencies Hub Content Hub Content Dependency> - List of hub content dependencies. See
hubContentDependency. - Hub
Content stringDescription - Description of the hub content.
- Hub
Content stringDisplay Name - Display name of the hub content.
- Hub
Content stringDocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- Hub
Content stringMarkdown - Markdown content of the hub content.
- Hub
Content stringName - Hub
Content List<string>Search Keywords - List of searchable keywords for the hub content.
- Hub
Content stringStatus - Status of the hub content.
- Hub
Content stringType - Hub
Content stringVersion - Hub
Name string - Last
Modified stringTime - Date and time the hub content was last modified.
- Reference
Min stringVersion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - Region string
- Sagemaker
Public stringHub Content Arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - Support
Status string - Support status of the hub content.
- Versioned
Hub stringContent Arn - ARN of the hub content, including the version suffix.
- Creation
Time string - Date and time the hub content was created.
- Document
Schema stringVersion - Version of the hub content document schema.
- Failure
Reason string - Failure reason if importing the hub content failed.
- Hub
Arn string - ARN of the hub that contains the content.
- Hub
Content stringArn - ARN of the hub content, without the version suffix.
- Hub
Content []GetDependencies Hub Content Hub Content Dependency - List of hub content dependencies. See
hubContentDependency. - Hub
Content stringDescription - Description of the hub content.
- Hub
Content stringDisplay Name - Display name of the hub content.
- Hub
Content stringDocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- Hub
Content stringMarkdown - Markdown content of the hub content.
- Hub
Content stringName - Hub
Content []stringSearch Keywords - List of searchable keywords for the hub content.
- Hub
Content stringStatus - Status of the hub content.
- Hub
Content stringType - Hub
Content stringVersion - Hub
Name string - Last
Modified stringTime - Date and time the hub content was last modified.
- Reference
Min stringVersion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - Region string
- Sagemaker
Public stringHub Content Arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - Support
Status string - Support status of the hub content.
- Versioned
Hub stringContent Arn - ARN of the hub content, including the version suffix.
- creation_
time string - Date and time the hub content was created.
- document_
schema_ stringversion - Version of the hub content document schema.
- failure_
reason string - Failure reason if importing the hub content failed.
- hub_
arn string - ARN of the hub that contains the content.
- hub_
content_ stringarn - ARN of the hub content, without the version suffix.
- hub_
content_ list(object)dependencies - List of hub content dependencies. See
hubContentDependency. - hub_
content_ stringdescription - Description of the hub content.
- hub_
content_ stringdisplay_ name - Display name of the hub content.
- hub_
content_ stringdocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- hub_
content_ stringmarkdown - Markdown content of the hub content.
- hub_
content_ stringname - hub_
content_ list(string)search_ keywords - List of searchable keywords for the hub content.
- hub_
content_ stringstatus - Status of the hub content.
- hub_
content_ stringtype - hub_
content_ stringversion - hub_
name string - last_
modified_ stringtime - Date and time the hub content was last modified.
- reference_
min_ stringversion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - region string
- sagemaker_
public_ stringhub_ content_ arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - support_
status string - Support status of the hub content.
- versioned_
hub_ stringcontent_ arn - ARN of the hub content, including the version suffix.
- creation
Time String - Date and time the hub content was created.
- document
Schema StringVersion - Version of the hub content document schema.
- failure
Reason String - Failure reason if importing the hub content failed.
- hub
Arn String - ARN of the hub that contains the content.
- hub
Content StringArn - ARN of the hub content, without the version suffix.
- hub
Content List<GetDependencies Hub Content Hub Content Dependency> - List of hub content dependencies. See
hubContentDependency. - hub
Content StringDescription - Description of the hub content.
- hub
Content StringDisplay Name - Display name of the hub content.
- hub
Content StringDocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- hub
Content StringMarkdown - Markdown content of the hub content.
- hub
Content StringName - hub
Content List<String>Search Keywords - List of searchable keywords for the hub content.
- hub
Content StringStatus - Status of the hub content.
- hub
Content StringType - hub
Content StringVersion - hub
Name String - last
Modified StringTime - Date and time the hub content was last modified.
- reference
Min StringVersion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - region String
- sagemaker
Public StringHub Content Arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - support
Status String - Support status of the hub content.
- versioned
Hub StringContent Arn - ARN of the hub content, including the version suffix.
- creation
Time string - Date and time the hub content was created.
- document
Schema stringVersion - Version of the hub content document schema.
- failure
Reason string - Failure reason if importing the hub content failed.
- hub
Arn string - ARN of the hub that contains the content.
- hub
Content stringArn - ARN of the hub content, without the version suffix.
- hub
Content GetDependencies Hub Content Hub Content Dependency[] - List of hub content dependencies. See
hubContentDependency. - hub
Content stringDescription - Description of the hub content.
- hub
Content stringDisplay Name - Display name of the hub content.
- hub
Content stringDocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- hub
Content stringMarkdown - Markdown content of the hub content.
- hub
Content stringName - hub
Content string[]Search Keywords - List of searchable keywords for the hub content.
- hub
Content stringStatus - Status of the hub content.
- hub
Content stringType - hub
Content stringVersion - hub
Name string - last
Modified stringTime - Date and time the hub content was last modified.
- reference
Min stringVersion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - region string
- sagemaker
Public stringHub Content Arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - support
Status string - Support status of the hub content.
- versioned
Hub stringContent Arn - ARN of the hub content, including the version suffix.
- creation_
time str - Date and time the hub content was created.
- document_
schema_ strversion - Version of the hub content document schema.
- failure_
reason str - Failure reason if importing the hub content failed.
- hub_
arn str - ARN of the hub that contains the content.
- hub_
content_ strarn - ARN of the hub content, without the version suffix.
- hub_
content_ Sequence[Getdependencies Hub Content Hub Content Dependency] - List of hub content dependencies. See
hubContentDependency. - hub_
content_ strdescription - Description of the hub content.
- hub_
content_ strdisplay_ name - Display name of the hub content.
- hub_
content_ strdocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- hub_
content_ strmarkdown - Markdown content of the hub content.
- hub_
content_ strname - hub_
content_ Sequence[str]search_ keywords - List of searchable keywords for the hub content.
- hub_
content_ strstatus - Status of the hub content.
- hub_
content_ strtype - hub_
content_ strversion - hub_
name str - last_
modified_ strtime - Date and time the hub content was last modified.
- reference_
min_ strversion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - region str
- sagemaker_
public_ strhub_ content_ arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - support_
status str - Support status of the hub content.
- versioned_
hub_ strcontent_ arn - ARN of the hub content, including the version suffix.
- creation
Time String - Date and time the hub content was created.
- document
Schema StringVersion - Version of the hub content document schema.
- failure
Reason String - Failure reason if importing the hub content failed.
- hub
Arn String - ARN of the hub that contains the content.
- hub
Content StringArn - ARN of the hub content, without the version suffix.
- hub
Content List<Property Map>Dependencies - List of hub content dependencies. See
hubContentDependency. - hub
Content StringDescription - Description of the hub content.
- hub
Content StringDisplay Name - Display name of the hub content.
- hub
Content StringDocument - JSON hub content document, including details such as the hosting image and artifact URIs.
- hub
Content StringMarkdown - Markdown content of the hub content.
- hub
Content StringName - hub
Content List<String>Search Keywords - List of searchable keywords for the hub content.
- hub
Content StringStatus - Status of the hub content.
- hub
Content StringType - hub
Content StringVersion - hub
Name String - last
Modified StringTime - Date and time the hub content was last modified.
- reference
Min StringVersion - Minimum version of the referenced public hub content, for
ModelReferencehub content. - region String
- sagemaker
Public StringHub Content Arn - ARN of the referenced public hub content, without the version suffix, for
ModelReferencehub content. - support
Status String - Support status of the hub content.
- versioned
Hub StringContent Arn - ARN of the hub content, including the version suffix.
Supporting Types
GetHubContentHubContentDependency
- Dependency
Copy stringPath - Hub content dependency copy path.
- Dependency
Origin stringPath - Hub content dependency origin path.
- Dependency
Copy stringPath - Hub content dependency copy path.
- Dependency
Origin stringPath - Hub content dependency origin path.
- dependency_
copy_ stringpath - Hub content dependency copy path.
- dependency_
origin_ stringpath - Hub content dependency origin path.
- dependency
Copy StringPath - Hub content dependency copy path.
- dependency
Origin StringPath - Hub content dependency origin path.
- dependency
Copy stringPath - Hub content dependency copy path.
- dependency
Origin stringPath - Hub content dependency origin path.
- dependency_
copy_ strpath - Hub content dependency copy path.
- dependency_
origin_ strpath - Hub content dependency origin path.
- dependency
Copy StringPath - Hub content dependency copy path.
- dependency
Origin StringPath - Hub content dependency origin path.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi