import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Deploy Environment resource in Oracle Cloud Infrastructure Devops service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/DeployEnvironment * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops * * Creates a new deployment environment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDeployEnvironment = new oci.devops.DeployEnvironment("test_deploy_environment", { * deployEnvironmentType: deployEnvironmentDeployEnvironmentType, * projectId: testProject.id, * clusterId: testCluster.id, * computeInstanceGroupSelectors: { * items: [{ * selectorType: deployEnvironmentComputeInstanceGroupSelectorsItemsSelectorType, * computeInstanceIds: deployEnvironmentComputeInstanceGroupSelectorsItemsComputeInstanceIds, * query: deployEnvironmentComputeInstanceGroupSelectorsItemsQuery, * region: deployEnvironmentComputeInstanceGroupSelectorsItemsRegion, * }], * }, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: deployEnvironmentDescription, * displayName: deployEnvironmentDisplayName, * freeformTags: { * "bar-key": "value", * }, * functionId: testFunction.id, * networkChannel: { * networkChannelType: deployEnvironmentNetworkChannelNetworkChannelType, * subnetId: testSubnet.id, * nsgIds: deployEnvironmentNetworkChannelNsgIds, * }, * securityAttributes: deployEnvironmentSecurityAttributes, * }); * ``` * * ## Import * * DeployEnvironments can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DevOps/deployEnvironment:DeployEnvironment test_deploy_environment "id" * ``` */ export declare class DeployEnvironment extends pulumi.CustomResource { /** * Get an existing DeployEnvironment 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?: DeployEnvironmentState, opts?: pulumi.CustomResourceOptions): DeployEnvironment; /** * Returns true if the given object is an instance of DeployEnvironment. 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 DeployEnvironment; /** * (Updatable) The OCID of the Kubernetes cluster. */ readonly clusterId: pulumi.Output; /** * The OCID of a compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) A collection of selectors. The combination of instances matching the selectors are included in the instance group. */ readonly computeInstanceGroupSelectors: 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) Deployment environment type. */ readonly deployEnvironmentType: pulumi.Output; /** * (Updatable) Optional description about the deployment environment. */ readonly description: pulumi.Output; /** * (Updatable) Deployment environment display name. 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) The OCID of the Function. */ readonly functionId: 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) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ readonly networkChannel: pulumi.Output; /** * The OCID of a project. */ readonly projectId: pulumi.Output; /** * (Updatable) Security attributes to be added in to the deployment environment * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly securityAttributes: pulumi.Output<{ [key: string]: string; }>; /** * The current state of the deployment environment. */ 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; }>; /** * Time the deployment environment was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * Time the deployment environment was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * Create a DeployEnvironment 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: DeployEnvironmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DeployEnvironment resources. */ export interface DeployEnvironmentState { /** * (Updatable) The OCID of the Kubernetes cluster. */ clusterId?: pulumi.Input; /** * The OCID of a compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) A collection of selectors. The combination of instances matching the selectors are included in the instance group. */ computeInstanceGroupSelectors?: 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) Deployment environment type. */ deployEnvironmentType?: pulumi.Input; /** * (Updatable) Optional description about the deployment environment. */ description?: pulumi.Input; /** * (Updatable) Deployment environment display name. 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) The OCID of the Function. */ functionId?: 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) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ networkChannel?: pulumi.Input; /** * The OCID of a project. */ projectId?: pulumi.Input; /** * (Updatable) Security attributes to be added in to the deployment environment * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ securityAttributes?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The current state of the deployment environment. */ 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>; /** * Time the deployment environment was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreated?: pulumi.Input; /** * Time the deployment environment was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a DeployEnvironment resource. */ export interface DeployEnvironmentArgs { /** * (Updatable) The OCID of the Kubernetes cluster. */ clusterId?: pulumi.Input; /** * (Updatable) A collection of selectors. The combination of instances matching the selectors are included in the instance group. */ computeInstanceGroupSelectors?: 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) Deployment environment type. */ deployEnvironmentType: pulumi.Input; /** * (Updatable) Optional description about the deployment environment. */ description?: pulumi.Input; /** * (Updatable) Deployment environment display name. 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) The OCID of the Function. */ functionId?: pulumi.Input; /** * (Updatable) Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network. */ networkChannel?: pulumi.Input; /** * The OCID of a project. */ projectId: pulumi.Input; /** * (Updatable) Security attributes to be added in to the deployment environment * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ securityAttributes?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=deployEnvironment.d.ts.map