@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
235 lines (234 loc) • 7.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Resource for managing a Harness GitOps Agent.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = new harness.platform.GitOpsAgent("example", {
* identifier: "identifier",
* accountId: "account_id",
* projectId: "project_id",
* orgId: "org_id",
* name: "name",
* type: "MANAGED_ARGO_PROVIDER",
* metadatas: [{
* namespace: "namespace",
* highAvailability: true,
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Import an Account level Gitops Agent
*
* ```sh
* $ pulumi import harness:platform/gitOpsAgent:GitOpsAgent example <agent_id>
* ```
*
* Import an Org level Gitops Agent
*
* ```sh
* $ pulumi import harness:platform/gitOpsAgent:GitOpsAgent example <organization_id>/<agent_id>
* ```
*
* Import a Project level Gitops Agent
*
* ```sh
* $ pulumi import harness:platform/gitOpsAgent:GitOpsAgent example <organization_id>/<project_id>/<agent_id>
* ```
*/
export declare class GitOpsAgent extends pulumi.CustomResource {
/**
* Get an existing GitOpsAgent 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?: GitOpsAgentState, opts?: pulumi.CustomResourceOptions): GitOpsAgent;
/**
* Returns true if the given object is an instance of GitOpsAgent. 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 GitOpsAgent;
/**
* Account identifier of the GitOps agent.
*
* @deprecated This field is deprecated and will be removed in a future release.
*/
readonly accountId: pulumi.Output<string>;
/**
* Agent token to be used for authentication of the agent with Harness.
*/
readonly agentToken: pulumi.Output<string>;
/**
* Description of the GitOps agent.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Identifier of the GitOps agent.
*/
readonly identifier: pulumi.Output<string>;
/**
* Metadata of the agent.
*/
readonly metadatas: pulumi.Output<outputs.platform.GitOpsAgentMetadata[] | undefined>;
/**
* Name of the GitOps agent.
*/
readonly name: pulumi.Output<string>;
/**
* The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
*/
readonly operator: pulumi.Output<string | undefined>;
/**
* Organization identifier of the GitOps agent.
*/
readonly orgId: pulumi.Output<string | undefined>;
/**
* Prefixed identifier of the GitOps agent. Agent identifier prefixed with scope of the agent
*/
readonly prefixedIdentifier: pulumi.Output<string>;
/**
* Project identifier of the GitOps agent.
*/
readonly projectId: pulumi.Output<string | undefined>;
/**
* Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Default: "AGENT*TYPE*UNSET"
* Enum: "AGENT*TYPE*UNSET" "CONNECTED*ARGO*PROVIDER" "MANAGED*ARGO*PROVIDER"
*/
readonly type: pulumi.Output<string>;
/**
* Create a GitOpsAgent 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: GitOpsAgentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GitOpsAgent resources.
*/
export interface GitOpsAgentState {
/**
* Account identifier of the GitOps agent.
*
* @deprecated This field is deprecated and will be removed in a future release.
*/
accountId?: pulumi.Input<string>;
/**
* Agent token to be used for authentication of the agent with Harness.
*/
agentToken?: pulumi.Input<string>;
/**
* Description of the GitOps agent.
*/
description?: pulumi.Input<string>;
/**
* Identifier of the GitOps agent.
*/
identifier?: pulumi.Input<string>;
/**
* Metadata of the agent.
*/
metadatas?: pulumi.Input<pulumi.Input<inputs.platform.GitOpsAgentMetadata>[]>;
/**
* Name of the GitOps agent.
*/
name?: pulumi.Input<string>;
/**
* The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
*/
operator?: pulumi.Input<string>;
/**
* Organization identifier of the GitOps agent.
*/
orgId?: pulumi.Input<string>;
/**
* Prefixed identifier of the GitOps agent. Agent identifier prefixed with scope of the agent
*/
prefixedIdentifier?: pulumi.Input<string>;
/**
* Project identifier of the GitOps agent.
*/
projectId?: pulumi.Input<string>;
/**
* Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Default: "AGENT*TYPE*UNSET"
* Enum: "AGENT*TYPE*UNSET" "CONNECTED*ARGO*PROVIDER" "MANAGED*ARGO*PROVIDER"
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a GitOpsAgent resource.
*/
export interface GitOpsAgentArgs {
/**
* Account identifier of the GitOps agent.
*
* @deprecated This field is deprecated and will be removed in a future release.
*/
accountId?: pulumi.Input<string>;
/**
* Description of the GitOps agent.
*/
description?: pulumi.Input<string>;
/**
* Identifier of the GitOps agent.
*/
identifier: pulumi.Input<string>;
/**
* Metadata of the agent.
*/
metadatas?: pulumi.Input<pulumi.Input<inputs.platform.GitOpsAgentMetadata>[]>;
/**
* Name of the GitOps agent.
*/
name?: pulumi.Input<string>;
/**
* The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
*/
operator?: pulumi.Input<string>;
/**
* Organization identifier of the GitOps agent.
*/
orgId?: pulumi.Input<string>;
/**
* Project identifier of the GitOps agent.
*/
projectId?: pulumi.Input<string>;
/**
* Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Default: "AGENT*TYPE*UNSET"
* Enum: "AGENT*TYPE*UNSET" "CONNECTED*ARGO*PROVIDER" "MANAGED*ARGO*PROVIDER"
*/
type: pulumi.Input<string>;
}