"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PipelineRun = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Pipeline Run resource in Oracle Cloud Infrastructure Data Science service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/PipelineRun
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience
 *
 * Creates a new PipelineRun.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testPipelineRun = new oci.datascience.PipelineRun("test_pipeline_run", {
 *     compartmentId: compartmentId,
 *     pipelineId: testPipeline.id,
 *     configurationOverrideDetails: {
 *         type: pipelineRunConfigurationOverrideDetailsType,
 *         commandLineArguments: pipelineRunConfigurationOverrideDetailsCommandLineArguments,
 *         environmentVariables: pipelineRunConfigurationOverrideDetailsEnvironmentVariables,
 *         maximumRuntimeInMinutes: pipelineRunConfigurationOverrideDetailsMaximumRuntimeInMinutes,
 *     },
 *     definedTags: {
 *         "Operations.CostCenter": "42",
 *     },
 *     displayName: pipelineRunDisplayName,
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     infrastructureConfigurationOverrideDetails: {
 *         blockStorageSizeInGbs: Number(pipelineRunInfrastructureConfigurationOverrideDetailsBlockStorageSizeInGbs),
 *         shapeName: testShape.name,
 *         blockStorageSizeInGbsParameterized: pipelineRunInfrastructureConfigurationOverrideDetailsBlockStorageSizeInGbsParameterized,
 *         shapeConfigDetails: {
 *             memoryInGbs: pipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsMemoryInGbs,
 *             memoryInGbsParameterized: pipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsMemoryInGbsParameterized,
 *             ocpus: pipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsOcpus,
 *             ocpusParameterized: pipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsOcpusParameterized,
 *         },
 *         subnetId: testSubnet.id,
 *     },
 *     logConfigurationOverrideDetails: {
 *         enableAutoLogCreation: pipelineRunLogConfigurationOverrideDetailsEnableAutoLogCreation === "true",
 *         enableLogging: pipelineRunLogConfigurationOverrideDetailsEnableLogging === "true",
 *         logGroupId: testLogGroup.id,
 *         logId: testLog.id,
 *     },
 *     opcParentRptUrl: pipelineRunOpcParentRptUrl,
 *     parametersOverride: pipelineRunParametersOverride,
 *     projectId: testProject.id,
 *     stepOverrideDetails: [{
 *         stepConfigurationDetails: {
 *             commandLineArguments: pipelineRunStepOverrideDetailsStepConfigurationDetailsCommandLineArguments,
 *             environmentVariables: pipelineRunStepOverrideDetailsStepConfigurationDetailsEnvironmentVariables,
 *             maximumRuntimeInMinutes: pipelineRunStepOverrideDetailsStepConfigurationDetailsMaximumRuntimeInMinutes,
 *         },
 *         stepName: pipelineRunStepOverrideDetailsStepName,
 *         stepContainerConfigurationDetails: {
 *             containerType: pipelineRunStepOverrideDetailsStepContainerConfigurationDetailsContainerType,
 *             image: pipelineRunStepOverrideDetailsStepContainerConfigurationDetailsImage,
 *             cmds: pipelineRunStepOverrideDetailsStepContainerConfigurationDetailsCmd,
 *             entrypoints: pipelineRunStepOverrideDetailsStepContainerConfigurationDetailsEntrypoint,
 *             imageDigest: pipelineRunStepOverrideDetailsStepContainerConfigurationDetailsImageDigest,
 *             imageSignatureId: testImageSignature.id,
 *         },
 *         stepDataflowConfigurationDetails: {
 *             configuration: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsConfiguration,
 *             driverShape: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShape,
 *             driverShapeConfigDetails: {
 *                 cpuBaseline: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsCpuBaseline,
 *                 memoryInGbs: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsMemoryInGbs,
 *                 memoryInGbsParameterized: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsMemoryInGbsParameterized,
 *                 ocpus: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsOcpus,
 *                 ocpusParameterized: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsOcpusParameterized,
 *             },
 *             executorShape: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShape,
 *             executorShapeConfigDetails: {
 *                 cpuBaseline: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShapeConfigDetailsCpuBaseline,
 *                 memoryInGbs: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShapeConfigDetailsMemoryInGbs,
 *                 memoryInGbsParameterized: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShapeConfigDetailsMemoryInGbsParameterized,
 *                 ocpus: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShapeConfigDetailsOcpus,
 *                 ocpusParameterized: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsExecutorShapeConfigDetailsOcpusParameterized,
 *             },
 *             logsBucketUri: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsLogsBucketUri,
 *             numExecutors: Number(pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsNumExecutors),
 *             warehouseBucketUri: pipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsWarehouseBucketUri,
 *         },
 *         stepInfrastructureConfigurationDetails: {
 *             blockStorageSizeInGbs: Number(pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsBlockStorageSizeInGbs),
 *             shapeName: testShape.name,
 *             blockStorageSizeInGbsParameterized: pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsBlockStorageSizeInGbsParameterized,
 *             shapeConfigDetails: {
 *                 memoryInGbs: pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsMemoryInGbs,
 *                 memoryInGbsParameterized: pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsMemoryInGbsParameterized,
 *                 ocpus: pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsOcpus,
 *                 ocpusParameterized: pipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsOcpusParameterized,
 *             },
 *             subnetId: testSubnet.id,
 *         },
 *         stepStorageMountConfigurationDetailsLists: [{
 *             destinationDirectoryName: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListDestinationDirectoryName,
 *             storageType: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListStorageType,
 *             bucket: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListBucket,
 *             destinationPath: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListDestinationPath,
 *             exportId: testExport.id,
 *             mountTargetId: testMountTarget.id,
 *             namespace: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListNamespace,
 *             prefix: pipelineRunStepOverrideDetailsStepStorageMountConfigurationDetailsListPrefix,
 *         }],
 *     }],
 *     storageMountConfigurationOverrideDetailsLists: [{
 *         destinationDirectoryName: pipelineRunStorageMountConfigurationOverrideDetailsListDestinationDirectoryName,
 *         storageType: pipelineRunStorageMountConfigurationOverrideDetailsListStorageType,
 *         bucket: pipelineRunStorageMountConfigurationOverrideDetailsListBucket,
 *         destinationPath: pipelineRunStorageMountConfigurationOverrideDetailsListDestinationPath,
 *         exportId: testExport.id,
 *         mountTargetId: testMountTarget.id,
 *         namespace: pipelineRunStorageMountConfigurationOverrideDetailsListNamespace,
 *         prefix: pipelineRunStorageMountConfigurationOverrideDetailsListPrefix,
 *     }],
 *     systemTags: pipelineRunSystemTags,
 * });
 * ```
 *
 * ## Import
 *
 * PipelineRuns can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:DataScience/pipelineRun:PipelineRun test_pipeline_run "id"
 * ```
 */
class PipelineRun extends pulumi.CustomResource {
    /**
     * Get an existing PipelineRun 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 PipelineRun(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:DataScience/pipelineRun:PipelineRun';
    /**
     * Returns true if the given object is an instance of PipelineRun.  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'] === PipelineRun.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["configurationDetails"] = state?.configurationDetails;
            resourceInputs["configurationOverrideDetails"] = state?.configurationOverrideDetails;
            resourceInputs["createdBy"] = state?.createdBy;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["deleteRelatedJobRuns"] = state?.deleteRelatedJobRuns;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["infrastructureConfigurationOverrideDetails"] = state?.infrastructureConfigurationOverrideDetails;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["logConfigurationOverrideDetails"] = state?.logConfigurationOverrideDetails;
            resourceInputs["logDetails"] = state?.logDetails;
            resourceInputs["opcParentRptUrl"] = state?.opcParentRptUrl;
            resourceInputs["parametersOverride"] = state?.parametersOverride;
            resourceInputs["pipelineId"] = state?.pipelineId;
            resourceInputs["projectId"] = state?.projectId;
            resourceInputs["state"] = state?.state;
            resourceInputs["stepOverrideDetails"] = state?.stepOverrideDetails;
            resourceInputs["stepRuns"] = state?.stepRuns;
            resourceInputs["storageMountConfigurationOverrideDetailsLists"] = state?.storageMountConfigurationOverrideDetailsLists;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["timeAccepted"] = state?.timeAccepted;
            resourceInputs["timeFinished"] = state?.timeFinished;
            resourceInputs["timeStarted"] = state?.timeStarted;
            resourceInputs["timeUpdated"] = state?.timeUpdated;
        }
        else {
            const args = argsOrState;
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.pipelineId === undefined && !opts.urn) {
                throw new Error("Missing required property 'pipelineId'");
            }
            if (args?.projectId === undefined && !opts.urn) {
                throw new Error("Missing required property 'projectId'");
            }
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["configurationOverrideDetails"] = args?.configurationOverrideDetails;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["deleteRelatedJobRuns"] = args?.deleteRelatedJobRuns;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["infrastructureConfigurationOverrideDetails"] = args?.infrastructureConfigurationOverrideDetails;
            resourceInputs["logConfigurationOverrideDetails"] = args?.logConfigurationOverrideDetails;
            resourceInputs["opcParentRptUrl"] = args?.opcParentRptUrl;
            resourceInputs["parametersOverride"] = args?.parametersOverride;
            resourceInputs["pipelineId"] = args?.pipelineId;
            resourceInputs["projectId"] = args?.projectId;
            resourceInputs["stepOverrideDetails"] = args?.stepOverrideDetails;
            resourceInputs["storageMountConfigurationOverrideDetailsLists"] = args?.storageMountConfigurationOverrideDetailsLists;
            resourceInputs["systemTags"] = args?.systemTags;
            resourceInputs["configurationDetails"] = undefined /*out*/;
            resourceInputs["createdBy"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["logDetails"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["stepRuns"] = undefined /*out*/;
            resourceInputs["timeAccepted"] = undefined /*out*/;
            resourceInputs["timeFinished"] = undefined /*out*/;
            resourceInputs["timeStarted"] = undefined /*out*/;
            resourceInputs["timeUpdated"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(PipelineRun.__pulumiType, name, resourceInputs, opts);
    }
}
exports.PipelineRun = PipelineRun;
//# sourceMappingURL=pipelineRun.js.map