import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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 * * ```typescript * 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); * ``` * * ### Private Hub Model Reference * * ```typescript * 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", * }); * ``` */ export declare function getHubContent(args: GetHubContentArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getHubContent. */ export interface GetHubContentArgs { /** * Name of the hub content. */ hubContentName: string; /** * Type of the hub content. Valid values: `Model`, `Notebook`, `ModelReference`, `DataSet`, `JsonDoc`. */ hubContentType: string; /** * Version of the hub content. Defaults to the latest version. */ hubContentVersion?: string; /** * Name of the hub that contains the content. * * The following arguments are optional: */ hubName: string; /** * Region where this data source will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getHubContent. */ export interface GetHubContentResult { /** * Date and time the hub content was created. */ readonly creationTime: string; /** * Version of the hub content document schema. */ readonly documentSchemaVersion: string; /** * Failure reason if importing the hub content failed. */ readonly failureReason: string; /** * ARN of the hub that contains the content. */ readonly hubArn: string; /** * ARN of the hub content, without the version suffix. */ readonly hubContentArn: string; /** * List of hub content dependencies. See `hubContentDependency`. */ readonly hubContentDependencies: outputs.sagemaker.GetHubContentHubContentDependency[]; /** * Description of the hub content. */ readonly hubContentDescription: string; /** * Display name of the hub content. */ readonly hubContentDisplayName: string; /** * JSON hub content document, including details such as the hosting image and artifact URIs. */ readonly hubContentDocument: string; /** * Markdown content of the hub content. */ readonly hubContentMarkdown: string; readonly hubContentName: string; /** * List of searchable keywords for the hub content. */ readonly hubContentSearchKeywords: string[]; /** * Status of the hub content. */ readonly hubContentStatus: string; readonly hubContentType: string; readonly hubContentVersion: string; readonly hubName: string; /** * Date and time the hub content was last modified. */ readonly lastModifiedTime: string; /** * Minimum version of the referenced public hub content, for `ModelReference` hub content. */ readonly referenceMinVersion: string; readonly region: string; /** * ARN of the referenced public hub content, without the version suffix, for `ModelReference` hub content. */ readonly sagemakerPublicHubContentArn: string; /** * Support status of the hub content. */ readonly supportStatus: string; /** * ARN of the hub content, including the version suffix. */ readonly versionedHubContentArn: string; } /** * 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 * * ```typescript * 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); * ``` * * ### Private Hub Model Reference * * ```typescript * 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", * }); * ``` */ export declare function getHubContentOutput(args: GetHubContentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getHubContent. */ export interface GetHubContentOutputArgs { /** * Name of the hub content. */ hubContentName: pulumi.Input; /** * Type of the hub content. Valid values: `Model`, `Notebook`, `ModelReference`, `DataSet`, `JsonDoc`. */ hubContentType: pulumi.Input; /** * Version of the hub content. Defaults to the latest version. */ hubContentVersion?: pulumi.Input; /** * Name of the hub that contains the content. * * The following arguments are optional: */ hubName: pulumi.Input; /** * Region where this data source will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } //# sourceMappingURL=getHubContent.d.ts.map