@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
131 lines (130 loc) • 4.22 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Resource for mapping environment with Harness Clusters.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@lbrlabs/pulumi-harness";
*
* const example = new harness.platform.EnvironmentClustersMapping("example", {
* identifier: "identifier",
* orgId: "orgIdentifer",
* projectId: "projectIdentifier",
* });
* ```
*
* ## Import
*
* Import using the cluster.
*
* ```sh
* $ pulumi import harness:platform/environmentClustersMapping:EnvironmentClustersMapping example <cluster_id>
* ```
*/
export declare class EnvironmentClustersMapping extends pulumi.CustomResource {
/**
* Get an existing EnvironmentClustersMapping 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<pulumi.ID>, state?: EnvironmentClustersMappingState, opts?: pulumi.CustomResourceOptions): EnvironmentClustersMapping;
/**
* Returns true if the given object is an instance of EnvironmentClustersMapping. 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 EnvironmentClustersMapping;
/**
* list of cluster identifiers and names
*/
readonly clusters: pulumi.Output<outputs.platform.EnvironmentClustersMappingCluster[] | undefined>;
/**
* environment identifier.
*/
readonly envId: pulumi.Output<string>;
/**
* identifier of the cluster.
*/
readonly identifier: pulumi.Output<string>;
/**
* org_id of the cluster.
*/
readonly orgId: pulumi.Output<string | undefined>;
/**
* project_id of the cluster.
*/
readonly projectId: pulumi.Output<string | undefined>;
/**
* scope at which the cluster exists in harness gitops
*/
readonly scope: pulumi.Output<string>;
/**
* Create a EnvironmentClustersMapping 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: EnvironmentClustersMappingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering EnvironmentClustersMapping resources.
*/
export interface EnvironmentClustersMappingState {
/**
* list of cluster identifiers and names
*/
clusters?: pulumi.Input<pulumi.Input<inputs.platform.EnvironmentClustersMappingCluster>[]>;
/**
* environment identifier.
*/
envId?: pulumi.Input<string>;
/**
* identifier of the cluster.
*/
identifier?: pulumi.Input<string>;
/**
* org_id of the cluster.
*/
orgId?: pulumi.Input<string>;
/**
* project_id of the cluster.
*/
projectId?: pulumi.Input<string>;
/**
* scope at which the cluster exists in harness gitops
*/
scope?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a EnvironmentClustersMapping resource.
*/
export interface EnvironmentClustersMappingArgs {
/**
* list of cluster identifiers and names
*/
clusters?: pulumi.Input<pulumi.Input<inputs.platform.EnvironmentClustersMappingCluster>[]>;
/**
* environment identifier.
*/
envId: pulumi.Input<string>;
/**
* identifier of the cluster.
*/
identifier: pulumi.Input<string>;
/**
* org_id of the cluster.
*/
orgId?: pulumi.Input<string>;
/**
* project_id of the cluster.
*/
projectId?: pulumi.Input<string>;
}