@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
240 lines (239 loc) • 6.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Resource for managing a Harness Chaos Hub
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = new harness.chaos.Hub("example", {
* orgId: "<org_id>",
* projectId: "<project_id>",
* name: "<name>",
* description: "<description>",
* connectorId: "<connector_id>",
* repoBranch: "<repo_branch>",
* repoName: "<repo_name>",
* isDefault: false,
* tags: [
* "<tag1>",
* "<tag2>",
* ],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Import Project level Chaos Hub
*
* ```sh
* $ pulumi import harness:chaos/hub:Hub example <org_id>/<project_id>/<hub_id>
* ```
*/
export declare class Hub extends pulumi.CustomResource {
/**
* Get an existing Hub 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?: HubState, opts?: pulumi.CustomResourceOptions): Hub;
/**
* Returns true if the given object is an instance of Hub. 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 Hub;
/**
* ID of the Git connector
*/
readonly connectorId: pulumi.Output<string>;
/**
* Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
*/
readonly connectorScope: pulumi.Output<string | undefined>;
/**
* Creation timestamp
*/
readonly createdAt: pulumi.Output<string>;
/**
* Description of the chaos hub
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Whether the chaos hub is available
*/
readonly isAvailable: pulumi.Output<boolean>;
/**
* Whether this is the default chaos hub
*/
readonly isDefault: pulumi.Output<boolean | undefined>;
/**
* Timestamp of the last sync
*/
readonly lastSyncedAt: pulumi.Output<string>;
/**
* Name of the chaos hub
*/
readonly name: pulumi.Output<string>;
/**
* The organization ID of the chaos hub
*/
readonly orgId: pulumi.Output<string | undefined>;
/**
* The project ID of the chaos hub
*/
readonly projectId: pulumi.Output<string | undefined>;
/**
* Git repository branch
*/
readonly repoBranch: pulumi.Output<string>;
/**
* Name of the Git repository (required for account-level connectors)
*/
readonly repoName: pulumi.Output<string | undefined>;
/**
* Tags to associate with the chaos hub
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* Total number of experiments in the hub
*/
readonly totalExperiments: pulumi.Output<number>;
/**
* Total number of faults in the hub
*/
readonly totalFaults: pulumi.Output<number>;
/**
* Last update timestamp
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a Hub 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: HubArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Hub resources.
*/
export interface HubState {
/**
* ID of the Git connector
*/
connectorId?: pulumi.Input<string>;
/**
* Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
*/
connectorScope?: pulumi.Input<string>;
/**
* Creation timestamp
*/
createdAt?: pulumi.Input<string>;
/**
* Description of the chaos hub
*/
description?: pulumi.Input<string>;
/**
* Whether the chaos hub is available
*/
isAvailable?: pulumi.Input<boolean>;
/**
* Whether this is the default chaos hub
*/
isDefault?: pulumi.Input<boolean>;
/**
* Timestamp of the last sync
*/
lastSyncedAt?: pulumi.Input<string>;
/**
* Name of the chaos hub
*/
name?: pulumi.Input<string>;
/**
* The organization ID of the chaos hub
*/
orgId?: pulumi.Input<string>;
/**
* The project ID of the chaos hub
*/
projectId?: pulumi.Input<string>;
/**
* Git repository branch
*/
repoBranch?: pulumi.Input<string>;
/**
* Name of the Git repository (required for account-level connectors)
*/
repoName?: pulumi.Input<string>;
/**
* Tags to associate with the chaos hub
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Total number of experiments in the hub
*/
totalExperiments?: pulumi.Input<number>;
/**
* Total number of faults in the hub
*/
totalFaults?: pulumi.Input<number>;
/**
* Last update timestamp
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Hub resource.
*/
export interface HubArgs {
/**
* ID of the Git connector
*/
connectorId: pulumi.Input<string>;
/**
* Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
*/
connectorScope?: pulumi.Input<string>;
/**
* Description of the chaos hub
*/
description?: pulumi.Input<string>;
/**
* Whether this is the default chaos hub
*/
isDefault?: pulumi.Input<boolean>;
/**
* Name of the chaos hub
*/
name?: pulumi.Input<string>;
/**
* The organization ID of the chaos hub
*/
orgId?: pulumi.Input<string>;
/**
* The project ID of the chaos hub
*/
projectId?: pulumi.Input<string>;
/**
* Git repository branch
*/
repoBranch: pulumi.Input<string>;
/**
* Name of the Git repository (required for account-level connectors)
*/
repoName?: pulumi.Input<string>;
/**
* Tags to associate with the chaos hub
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}