UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

154 lines (153 loc) 5.51 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing a Harness Gitops Repository Certificate. You can only create 1 instance per agent which has all the certificates of this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = new harness.platform.GitOpsRepoCert("example", { * requests: [{ * certificates: [{ * metadatas: [{}], * items: [{ * serverName: "github.com", * certType: "ssh", * certSubType: "ecdsa-sha2-nistp256", * certData: "QUFBQUUyVmpaSE5oTFhOb1lUSXRibWx6ZEhBeU5UWUFBQUFJYm1semRIQXlOVFlBQUFCQkJFbUtTRU5qUUVlek9teGtaTXk3b3BLZ3dGQjlua3Q1WVJyWU1qTnVHNU44N3VSZ2c2Q0xyYm81d0FkVC95NnYwbUtWMFUydzBXWjJZQi8rK1Rwb2NrZz0=", * }], * }], * upsert: true, * }], * accountId: "account_id", * agentId: "agent_id", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import an Account level Gitops Repository Certificate * * ```sh * $ pulumi import harness:platform/gitOpsRepoCert:GitOpsRepoCert example <repocert_id> * ``` * * Import an Org level Gitops Repository Certificate * * ```sh * $ pulumi import harness:platform/gitOpsRepoCert:GitOpsRepoCert example <organization_id>/<repocert_id> * ``` * * Import a Project level Gitops Repository Certificate * * ```sh * $ pulumi import harness:platform/gitOpsRepoCert:GitOpsRepoCert example <organization_id>/<project_id>/<repocert_id> * ``` */ export declare class GitOpsRepoCert extends pulumi.CustomResource { /** * Get an existing GitOpsRepoCert 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?: GitOpsRepoCertState, opts?: pulumi.CustomResourceOptions): GitOpsRepoCert; /** * Returns true if the given object is an instance of GitOpsRepoCert. 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 GitOpsRepoCert; /** * Account identifier of the GitOps repository certificate. * * @deprecated This field is deprecated and will be removed in a future release. */ readonly accountId: pulumi.Output<string>; /** * Agent identifier of the GitOps repository certificate. */ readonly agentId: pulumi.Output<string>; /** * Organization identifier of the GitOps repository certificate. */ readonly orgId: pulumi.Output<string | undefined>; /** * Project identifier of the GitOps repository certificate. */ readonly projectId: pulumi.Output<string | undefined>; /** * Repository Certificate create/update request. */ readonly requests: pulumi.Output<outputs.platform.GitOpsRepoCertRequest[]>; /** * Create a GitOpsRepoCert 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: GitOpsRepoCertArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GitOpsRepoCert resources. */ export interface GitOpsRepoCertState { /** * Account identifier of the GitOps repository certificate. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input<string>; /** * Agent identifier of the GitOps repository certificate. */ agentId?: pulumi.Input<string>; /** * Organization identifier of the GitOps repository certificate. */ orgId?: pulumi.Input<string>; /** * Project identifier of the GitOps repository certificate. */ projectId?: pulumi.Input<string>; /** * Repository Certificate create/update request. */ requests?: pulumi.Input<pulumi.Input<inputs.platform.GitOpsRepoCertRequest>[]>; } /** * The set of arguments for constructing a GitOpsRepoCert resource. */ export interface GitOpsRepoCertArgs { /** * Account identifier of the GitOps repository certificate. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input<string>; /** * Agent identifier of the GitOps repository certificate. */ agentId: pulumi.Input<string>; /** * Organization identifier of the GitOps repository certificate. */ orgId?: pulumi.Input<string>; /** * Project identifier of the GitOps repository certificate. */ projectId?: pulumi.Input<string>; /** * Repository Certificate create/update request. */ requests: pulumi.Input<pulumi.Input<inputs.platform.GitOpsRepoCertRequest>[]>; }