@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
139 lines (138 loc) • 3.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for retrieving a Harness Infrastructure.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getInfrastructure({
* envId: "env_id",
* identifier: "identifier",
* name: "name",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getInfrastructure(args: GetInfrastructureArgs, opts?: pulumi.InvokeOptions): Promise<GetInfrastructureResult>;
/**
* A collection of arguments for invoking getInfrastructure.
*/
export interface GetInfrastructureArgs {
/**
* environment identifier.
*/
envId: string;
/**
* Unique identifier of the resource.
*/
identifier: string;
/**
* Name of the resource.
*/
name?: string;
/**
* Unique identifier of the organization.
*/
orgId?: string;
/**
* Unique identifier of the project.
*/
projectId?: string;
}
/**
* A collection of values returned by getInfrastructure.
*/
export interface GetInfrastructureResult {
/**
* Infrastructure deployment type. Valid values are Kubernetes, NativeHelm, Ssh, WinRm, ServerlessAwsLambda, AzureWebApp, Custom, ECS.
*/
readonly deploymentType: string;
/**
* Description of the resource.
*/
readonly description: string;
/**
* environment identifier.
*/
readonly envId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Unique identifier of the resource.
*/
readonly identifier: string;
/**
* Name of the resource.
*/
readonly name?: string;
/**
* Unique identifier of the organization.
*/
readonly orgId?: string;
/**
* Unique identifier of the project.
*/
readonly projectId?: string;
/**
* Tags to associate with the resource.
*/
readonly tags: string[];
/**
* Type of Infrastructure. Valid values are KubernetesDirect, KubernetesGcp, ServerlessAwsLambda, Pdc, KubernetesAzure, SshWinRmAzure, SshWinRmAws, AzureWebApp, ECS, GitOps, CustomDeployment, TAS.
*/
readonly type: string;
/**
* Infrastructure YAML
*/
readonly yaml: string;
}
/**
* Data source for retrieving a Harness Infrastructure.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getInfrastructure({
* envId: "env_id",
* identifier: "identifier",
* name: "name",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getInfrastructureOutput(args: GetInfrastructureOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInfrastructureResult>;
/**
* A collection of arguments for invoking getInfrastructure.
*/
export interface GetInfrastructureOutputArgs {
/**
* environment identifier.
*/
envId: pulumi.Input<string>;
/**
* Unique identifier of the resource.
*/
identifier: pulumi.Input<string>;
/**
* Name of the resource.
*/
name?: pulumi.Input<string>;
/**
* Unique identifier of the organization.
*/
orgId?: pulumi.Input<string>;
/**
* Unique identifier of the project.
*/
projectId?: pulumi.Input<string>;
}