import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a GCP Secret Manager connector. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const gcpSmManual = new harness.platform.GcpSecretManagerConnector("gcp_sm_manual", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * delegateSelectors: ["harness-delegate"], * credentialsRef: `account.${test.id}`, * }); * const gcpSmInherit = new harness.platform.GcpSecretManagerConnector("gcp_sm_inherit", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * delegateSelectors: ["harness-delegate"], * inheritFromDelegate: true, * }); * const gcpSmOidcPlatform = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * executeOnDelegate: false, * oidcAuthentications: [{ * workloadPoolId: "harness-pool-test", * providerId: "harness", * gcpProjectId: "1234567", * serviceAccountEmail: "harness.sample@iam.gserviceaccount.com", * }], * }); * const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * "default": true, * delegateSelectors: ["harness-delegate"], * oidcAuthentications: [{ * workloadPoolId: "harness-pool-test", * providerId: "harness", * gcpProjectId: "1234567", * serviceAccountEmail: "harness.sample@iam.gserviceaccount.com", * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level gcp secret manager connector * * ```sh * $ pulumi import harness:platform/gcpSecretManagerConnector:GcpSecretManagerConnector example * ``` * * Import org level gcp secret manager connector * * ```sh * $ pulumi import harness:platform/gcpSecretManagerConnector:GcpSecretManagerConnector example / * ``` * * Import project level gcp secret manager connector * * ```sh * $ pulumi import harness:platform/gcpSecretManagerConnector:GcpSecretManagerConnector example // * ``` */ export declare class GcpSecretManagerConnector extends pulumi.CustomResource { /** * Get an existing GcpSecretManagerConnector 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, state?: GcpSecretManagerConnectorState, opts?: pulumi.CustomResourceOptions): GcpSecretManagerConnector; /** * Returns true if the given object is an instance of GcpSecretManagerConnector. 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 GcpSecretManagerConnector; /** * Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. */ readonly credentialsRef: pulumi.Output; /** * The delegates to inherit the credentials from. */ readonly delegateSelectors: pulumi.Output; /** * Description of the resource. */ readonly description: pulumi.Output; /** * Execute on delegate or not. */ readonly executeOnDelegate: pulumi.Output; /** * Unique identifier of the resource. */ readonly identifier: pulumi.Output; /** * Inherit configuration from delegate. */ readonly inheritFromDelegate: pulumi.Output; /** * Set this flag to set this secret manager as default secret manager. */ readonly isDefault: pulumi.Output; /** * Name of the resource. */ readonly name: pulumi.Output; /** * Authentication using harness oidc. */ readonly oidcAuthentications: pulumi.Output; /** * Unique identifier of the organization. */ readonly orgId: pulumi.Output; /** * Unique identifier of the project. */ readonly projectId: pulumi.Output; /** * Tags to associate with the resource. */ readonly tags: pulumi.Output; /** * Create a GcpSecretManagerConnector 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: GcpSecretManagerConnectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GcpSecretManagerConnector resources. */ export interface GcpSecretManagerConnectorState { /** * Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. */ credentialsRef?: pulumi.Input; /** * The delegates to inherit the credentials from. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Description of the resource. */ description?: pulumi.Input; /** * Execute on delegate or not. */ executeOnDelegate?: pulumi.Input; /** * Unique identifier of the resource. */ identifier?: pulumi.Input; /** * Inherit configuration from delegate. */ inheritFromDelegate?: pulumi.Input; /** * Set this flag to set this secret manager as default secret manager. */ isDefault?: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * Authentication using harness oidc. */ oidcAuthentications?: pulumi.Input[] | undefined>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input; /** * Unique identifier of the project. */ projectId?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a GcpSecretManagerConnector resource. */ export interface GcpSecretManagerConnectorArgs { /** * Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. */ credentialsRef?: pulumi.Input; /** * The delegates to inherit the credentials from. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Description of the resource. */ description?: pulumi.Input; /** * Execute on delegate or not. */ executeOnDelegate?: pulumi.Input; /** * Unique identifier of the resource. */ identifier: pulumi.Input; /** * Inherit configuration from delegate. */ inheritFromDelegate?: pulumi.Input; /** * Set this flag to set this secret manager as default secret manager. */ isDefault?: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * Authentication using harness oidc. */ oidcAuthentications?: pulumi.Input[] | undefined>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input; /** * Unique identifier of the project. */ projectId?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; } //# sourceMappingURL=gcpSecretManagerConnector.d.ts.map