import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Build Pipeline Stage resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/BuildPipelineStage * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a new stage. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBuildPipelineStage = new oci.devops.BuildPipelineStage("test_build_pipeline_stage", { * buildPipelineId: testBuildPipeline.id, * buildPipelineStagePredecessorCollection: { * items: [{ * id: buildPipelineStageBuildPipelineStagePredecessorCollectionItemsId, * }], * }, * buildPipelineStageType: buildPipelineStageBuildPipelineStageType, * buildRunnerShapeConfig: { * buildRunnerType: buildPipelineStageBuildRunnerShapeConfigBuildRunnerType, * memoryInGbs: Number(buildPipelineStageBuildRunnerShapeConfigMemoryInGbs), * ocpus: Number(buildPipelineStageBuildRunnerShapeConfigOcpus), * }, * buildSourceCollection: { * items: [{ * connectionType: buildPipelineStageBuildSourceCollectionItemsConnectionType, * branch: buildPipelineStageBuildSourceCollectionItemsBranch, * connectionId: testConnection.id, * name: buildPipelineStageBuildSourceCollectionItemsName, * repositoryId: testRepository.id, * repositoryUrl: buildPipelineStageBuildSourceCollectionItemsRepositoryUrl, * }], * }, * buildSpecFile: buildPipelineStageBuildSpecFile, * definedTags: { * "foo-namespace.bar-key": "value", * }, * deliverArtifactCollection: { * items: [{ * artifactId: testArtifact.id, * artifactName: buildPipelineStageDeliverArtifactCollectionItemsArtifactName, * }], * }, * deployPipelineId: testDeployPipeline.id, * description: buildPipelineStageDescription, * displayName: buildPipelineStageDisplayName, * freeformTags: { * "bar-key": "value", * }, * image: buildPipelineStageImage, * isPassAllParametersEnabled: buildPipelineStageIsPassAllParametersEnabled === "true", * primaryBuildSource: buildPipelineStagePrimaryBuildSource, * privateAccessConfig: { * networkChannelType: buildPipelineStagePrivateAccessConfigNetworkChannelType, * subnetId: testSubnet.id, * nsgIds: buildPipelineStagePrivateAccessConfigNsgIds, * }, * stageExecutionTimeoutInSeconds: Number(buildPipelineStageStageExecutionTimeoutInSeconds), * waitCriteria: { * waitDuration: buildPipelineStageWaitCriteriaWaitDuration, * waitType: buildPipelineStageWaitCriteriaWaitType, * }, * }); * ``` * * ## Import * * BuildPipelineStages can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/buildPipelineStage:BuildPipelineStage test_build_pipeline_stage "id" * ``` */ export declare class BuildPipelineStage extends pulumi.CustomResource { /** * Get an existing BuildPipelineStage 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?: BuildPipelineStageState, opts?: pulumi.CustomResourceOptions): BuildPipelineStage; /** * Returns true if the given object is an instance of BuildPipelineStage. 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 BuildPipelineStage; /** * The OCID of the build pipeline. */ readonly buildPipelineId: pulumi.Output; /** * (Updatable) The collection containing the predecessors of a stage. */ readonly buildPipelineStagePredecessorCollection: pulumi.Output; /** * (Updatable) Defines the stage type, which is one of the following: BUILD, DELIVER_ARTIFACT, WAIT, and TRIGGER_DEPLOYMENT_PIPELINE. */ readonly buildPipelineStageType: pulumi.Output; /** * (Updatable) The information about build runner. */ readonly buildRunnerShapeConfig: pulumi.Output; /** * (Updatable) Collection of build sources. */ readonly buildSourceCollection: pulumi.Output; /** * (Updatable) The path to the build specification file for this environment. The default location of the file if not specified is build_spec.yaml. */ readonly buildSpecFile: pulumi.Output; /** * The OCID of the compartment where the pipeline is created. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Specifies an array of artifacts that need to be pushed to the artifactory stores. */ readonly deliverArtifactCollection: pulumi.Output; /** * (Updatable) A target deployment pipeline OCID that will run in this stage. */ readonly deployPipelineId: pulumi.Output; /** * (Updatable) Optional description about the stage. */ readonly description: pulumi.Output; /** * (Updatable) Stage display name, which can be renamed and is not necessarily unique. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Image name for the build environment */ readonly image: pulumi.Output; /** * (Updatable) A boolean flag that specifies whether all the parameters must be passed when the deployment is triggered. */ readonly isPassAllParametersEnabled: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) Name of the build source where the build_spec.yml file is located. If not specified, the first entry in the build source collection is chosen as primary build source. */ readonly primaryBuildSource: pulumi.Output; /** * (Updatable) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ readonly privateAccessConfig: pulumi.Output; /** * The OCID of the DevOps project. */ readonly projectId: pulumi.Output; /** * (Updatable) Timeout for the build stage execution. Specify value in seconds. */ readonly stageExecutionTimeoutInSeconds: pulumi.Output; /** * The current state of the stage. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the stage was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * The time the stage was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * (Updatable) Specifies wait criteria for the Wait stage. */ readonly waitCriteria: pulumi.Output; /** * Create a BuildPipelineStage 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: BuildPipelineStageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BuildPipelineStage resources. */ export interface BuildPipelineStageState { /** * The OCID of the build pipeline. */ buildPipelineId?: pulumi.Input; /** * (Updatable) The collection containing the predecessors of a stage. */ buildPipelineStagePredecessorCollection?: pulumi.Input; /** * (Updatable) Defines the stage type, which is one of the following: BUILD, DELIVER_ARTIFACT, WAIT, and TRIGGER_DEPLOYMENT_PIPELINE. */ buildPipelineStageType?: pulumi.Input; /** * (Updatable) The information about build runner. */ buildRunnerShapeConfig?: pulumi.Input; /** * (Updatable) Collection of build sources. */ buildSourceCollection?: pulumi.Input; /** * (Updatable) The path to the build specification file for this environment. The default location of the file if not specified is build_spec.yaml. */ buildSpecFile?: pulumi.Input; /** * The OCID of the compartment where the pipeline is created. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Specifies an array of artifacts that need to be pushed to the artifactory stores. */ deliverArtifactCollection?: pulumi.Input; /** * (Updatable) A target deployment pipeline OCID that will run in this stage. */ deployPipelineId?: pulumi.Input; /** * (Updatable) Optional description about the stage. */ description?: pulumi.Input; /** * (Updatable) Stage display name, which can be renamed and is not necessarily unique. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Image name for the build environment */ image?: pulumi.Input; /** * (Updatable) A boolean flag that specifies whether all the parameters must be passed when the deployment is triggered. */ isPassAllParametersEnabled?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) Name of the build source where the build_spec.yml file is located. If not specified, the first entry in the build source collection is chosen as primary build source. */ primaryBuildSource?: pulumi.Input; /** * (Updatable) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ privateAccessConfig?: pulumi.Input; /** * The OCID of the DevOps project. */ projectId?: pulumi.Input; /** * (Updatable) Timeout for the build stage execution. Specify value in seconds. */ stageExecutionTimeoutInSeconds?: pulumi.Input; /** * The current state of the stage. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the stage was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreated?: pulumi.Input; /** * The time the stage was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeUpdated?: pulumi.Input; /** * (Updatable) Specifies wait criteria for the Wait stage. */ waitCriteria?: pulumi.Input; } /** * The set of arguments for constructing a BuildPipelineStage resource. */ export interface BuildPipelineStageArgs { /** * The OCID of the build pipeline. */ buildPipelineId: pulumi.Input; /** * (Updatable) The collection containing the predecessors of a stage. */ buildPipelineStagePredecessorCollection: pulumi.Input; /** * (Updatable) Defines the stage type, which is one of the following: BUILD, DELIVER_ARTIFACT, WAIT, and TRIGGER_DEPLOYMENT_PIPELINE. */ buildPipelineStageType: pulumi.Input; /** * (Updatable) The information about build runner. */ buildRunnerShapeConfig?: pulumi.Input; /** * (Updatable) Collection of build sources. */ buildSourceCollection?: pulumi.Input; /** * (Updatable) The path to the build specification file for this environment. The default location of the file if not specified is build_spec.yaml. */ buildSpecFile?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Specifies an array of artifacts that need to be pushed to the artifactory stores. */ deliverArtifactCollection?: pulumi.Input; /** * (Updatable) A target deployment pipeline OCID that will run in this stage. */ deployPipelineId?: pulumi.Input; /** * (Updatable) Optional description about the stage. */ description?: pulumi.Input; /** * (Updatable) Stage display name, which can be renamed and is not necessarily unique. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Image name for the build environment */ image?: pulumi.Input; /** * (Updatable) A boolean flag that specifies whether all the parameters must be passed when the deployment is triggered. */ isPassAllParametersEnabled?: pulumi.Input; /** * (Updatable) Name of the build source where the build_spec.yml file is located. If not specified, the first entry in the build source collection is chosen as primary build source. */ primaryBuildSource?: pulumi.Input; /** * (Updatable) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ privateAccessConfig?: pulumi.Input; /** * (Updatable) Timeout for the build stage execution. Specify value in seconds. */ stageExecutionTimeoutInSeconds?: pulumi.Input; /** * (Updatable) Specifies wait criteria for the Wait stage. */ waitCriteria?: pulumi.Input; } //# sourceMappingURL=buildPipelineStage.d.ts.map