UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

106 lines 4.83 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.MlflowTrackingServer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a SageMaker AI MLFlow Tracking Server resource. * * ## Example Usage * * ### Cognito Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.sagemaker.MlflowTrackingServer("example", { * trackingServerName: "example", * roleArn: exampleAwsIamRole.arn, * artifactStoreUri: `s3://${exampleAwsS3Bucket.bucket}/path`, * }); * ``` * * ## Import * * Using `pulumi import`, import SageMaker AI MLFlow Tracking Servers using the `workteam_name`. For example: * * ```sh * $ pulumi import aws:sagemaker/mlflowTrackingServer:MlflowTrackingServer example example * ``` */ class MlflowTrackingServer extends pulumi.CustomResource { /** * Get an existing MlflowTrackingServer 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, id, state, opts) { return new MlflowTrackingServer(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of MlflowTrackingServer. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === MlflowTrackingServer.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["artifactStoreUri"] = state?.artifactStoreUri; resourceInputs["automaticModelRegistration"] = state?.automaticModelRegistration; resourceInputs["mlflowVersion"] = state?.mlflowVersion; resourceInputs["region"] = state?.region; resourceInputs["roleArn"] = state?.roleArn; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["trackingServerName"] = state?.trackingServerName; resourceInputs["trackingServerSize"] = state?.trackingServerSize; resourceInputs["trackingServerUrl"] = state?.trackingServerUrl; resourceInputs["weeklyMaintenanceWindowStart"] = state?.weeklyMaintenanceWindowStart; } else { const args = argsOrState; if (args?.artifactStoreUri === undefined && !opts.urn) { throw new Error("Missing required property 'artifactStoreUri'"); } if (args?.roleArn === undefined && !opts.urn) { throw new Error("Missing required property 'roleArn'"); } if (args?.trackingServerName === undefined && !opts.urn) { throw new Error("Missing required property 'trackingServerName'"); } resourceInputs["artifactStoreUri"] = args?.artifactStoreUri; resourceInputs["automaticModelRegistration"] = args?.automaticModelRegistration; resourceInputs["mlflowVersion"] = args?.mlflowVersion; resourceInputs["region"] = args?.region; resourceInputs["roleArn"] = args?.roleArn; resourceInputs["tags"] = args?.tags; resourceInputs["trackingServerName"] = args?.trackingServerName; resourceInputs["trackingServerSize"] = args?.trackingServerSize; resourceInputs["weeklyMaintenanceWindowStart"] = args?.weeklyMaintenanceWindowStart; resourceInputs["arn"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["trackingServerUrl"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(MlflowTrackingServer.__pulumiType, name, resourceInputs, opts); } } exports.MlflowTrackingServer = MlflowTrackingServer; /** @internal */ MlflowTrackingServer.__pulumiType = 'aws:sagemaker/mlflowTrackingServer:MlflowTrackingServer'; //# sourceMappingURL=mlflowTrackingServer.js.map