UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

156 lines (155 loc) 4.99 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing Harness GitOps GPG public key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = new harness.platform.GitOpsGnupg("example", { * accountId: "account_id", * agentId: "agent_id", * requests: [{ * upsert: true, * publickeys: [{ * keyData: "-----BEGIN PGP PUBLIC KEY BLOCK-----XXXXXX-----END PGP PUBLIC KEY BLOCK-----", * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import an Account level Gitops GnuPG Key * * ```sh * $ pulumi import harness:platform/gitOpsGnupg:GitOpsGnupg example <agent_id>/<key_id> * ``` * * Import an Org level Gitops GnuPG Key * * ```sh * $ pulumi import harness:platform/gitOpsGnupg:GitOpsGnupg example <organization_id>/<agent_id>/<key_id> * ``` * * Import a Project level Gitops GnuPG Key * * ```sh * $ pulumi import harness:platform/gitOpsGnupg:GitOpsGnupg example <organization_id>/<project_id>/<agent_id>/<key_id> * ``` */ export declare class GitOpsGnupg extends pulumi.CustomResource { /** * Get an existing GitOpsGnupg 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?: GitOpsGnupgState, opts?: pulumi.CustomResourceOptions): GitOpsGnupg; /** * Returns true if the given object is an instance of GitOpsGnupg. 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 GitOpsGnupg; /** * Account Identifier for the GnuPG Key. * * @deprecated This field is deprecated and will be removed in a future release. */ readonly accountId: pulumi.Output<string>; /** * Agent identifier for the GnuPG Key. */ readonly agentId: pulumi.Output<string>; /** * Identifier for the GnuPG Key. */ readonly identifier: pulumi.Output<string>; /** * Organization Identifier for the GnuPG Key. */ readonly orgId: pulumi.Output<string | undefined>; /** * Project Identifier for the GnuPG Key. */ readonly projectId: pulumi.Output<string | undefined>; /** * GnuPGPublicKey is a representation of a GnuPG public key */ readonly requests: pulumi.Output<outputs.platform.GitOpsGnupgRequest[]>; /** * Create a GitOpsGnupg 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: GitOpsGnupgArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GitOpsGnupg resources. */ export interface GitOpsGnupgState { /** * Account Identifier for the GnuPG Key. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input<string>; /** * Agent identifier for the GnuPG Key. */ agentId?: pulumi.Input<string>; /** * Identifier for the GnuPG Key. */ identifier?: pulumi.Input<string>; /** * Organization Identifier for the GnuPG Key. */ orgId?: pulumi.Input<string>; /** * Project Identifier for the GnuPG Key. */ projectId?: pulumi.Input<string>; /** * GnuPGPublicKey is a representation of a GnuPG public key */ requests?: pulumi.Input<pulumi.Input<inputs.platform.GitOpsGnupgRequest>[]>; } /** * The set of arguments for constructing a GitOpsGnupg resource. */ export interface GitOpsGnupgArgs { /** * Account Identifier for the GnuPG Key. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input<string>; /** * Agent identifier for the GnuPG Key. */ agentId: pulumi.Input<string>; /** * Organization Identifier for the GnuPG Key. */ orgId?: pulumi.Input<string>; /** * Project Identifier for the GnuPG Key. */ projectId?: pulumi.Input<string>; /** * GnuPGPublicKey is a representation of a GnuPG public key */ requests: pulumi.Input<pulumi.Input<inputs.platform.GitOpsGnupgRequest>[]>; }