import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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 * * ```typescript * 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", * }); * ``` * * ### With minimum version * * ```typescript * 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 * * ### 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: * * ```sh * $ pulumi import aws:sagemaker/hubContentReference:HubContentReference example my-hub,my-content-reference * ``` */ export declare class HubContentReference extends pulumi.CustomResource { /** * Get an existing HubContentReference resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HubContentReferenceState, opts?: pulumi.CustomResourceOptions): HubContentReference; /** * Returns true if the given object is an instance of HubContentReference. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is HubContentReference; /** * ARN of the private SageMaker Hub that contains the content reference. */ readonly hubArn: pulumi.Output; /** * 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. */ readonly hubContentArn: pulumi.Output; /** * Name of the hub content reference. */ readonly hubContentName: pulumi.Output; /** * Status of the hub content reference. Valid values include `Available`, `Importing`, `Deleting`, `ImportFailed`, `DeleteFailed`. */ readonly hubContentStatus: pulumi.Output; /** * Version of the hub content reference. */ readonly hubContentVersion: pulumi.Output; /** * Name of the private SageMaker Hub to add the content reference to. */ readonly hubName: pulumi.Output; /** * 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. */ readonly minVersion: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix. */ readonly sagemakerPublicHubContentArn: pulumi.Output; /** * 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. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Create a HubContentReference resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HubContentReferenceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HubContentReference resources. */ export interface HubContentReferenceState { /** * ARN of the private SageMaker Hub that contains the content reference. */ hubArn?: pulumi.Input; /** * 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. */ hubContentArn?: pulumi.Input; /** * Name of the hub content reference. */ hubContentName?: pulumi.Input; /** * Status of the hub content reference. Valid values include `Available`, `Importing`, `Deleting`, `ImportFailed`, `DeleteFailed`. */ hubContentStatus?: pulumi.Input; /** * Version of the hub content reference. */ hubContentVersion?: pulumi.Input; /** * Name of the private SageMaker Hub to add the content reference to. */ hubName?: pulumi.Input; /** * 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. */ minVersion?: pulumi.Input; /** * Region where this resource 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; /** * ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix. */ sagemakerPublicHubContentArn?: pulumi.Input; /** * 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?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a HubContentReference resource. */ export interface HubContentReferenceArgs { /** * Name of the hub content reference. */ hubContentName: pulumi.Input; /** * Name of the private SageMaker Hub to add the content reference to. */ hubName: pulumi.Input; /** * 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. */ minVersion?: pulumi.Input; /** * Region where this resource 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; /** * ARN of the public SageMaker JumpStart hub content to reference. The ARN must not include a version suffix. */ sagemakerPublicHubContentArn: pulumi.Input; /** * 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?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=hubContentReference.d.ts.map