import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a GCP KMS connector. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = new harness.platform.SecretText("test", { * identifier: "%[1]s", * name: "%[2]s", * description: "test", * tags: ["foo:bar"], * secretManagerIdentifier: "harnessSecretManager", * valueType: "Reference", * value: "secret", * }); * const gcpKmsManual = new harness.platform.ConnectorGcpKms("gcp_kms_manual", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * region: "us-west1", * gcpProjectId: "1234567", * keyRing: "key_ring", * keyName: "key_name", * manual: { * credentials: pulumi.interpolate`account.${test.id}`, * delegateSelectors: ["harness-delegate"], * }, * }); * const gcpKmsOidcPlatform = new harness.platform.ConnectorGcpKms("gcp_kms_oidc_platform", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * region: "us-west1", * gcpProjectId: "1234567", * keyRing: "key_ring", * keyName: "key_name", * executeOnDelegate: false, * oidcAuthentications: [{ * workloadPoolId: "harness-pool-test", * providerId: "harness", * gcpProjectId: "1234567", * serviceAccountEmail: "harness.sample@iam.gserviceaccount.com", * }], * }); * const gcpKmsOidcDelegate = new harness.platform.ConnectorGcpKms("gcp_kms_oidc_delegate", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * region: "us-west1", * gcpProjectId: "1234567", * keyRing: "key_ring", * keyName: "key_name", * oidcAuthentications: [{ * workloadPoolId: "harness-pool-test", * providerId: "harness", * gcpProjectId: "1234567", * serviceAccountEmail: "harness.sample@iam.gserviceaccount.com", * delegateSelectors: ["harness-delegate"], * }], * }); * const gcpKmsOidcDelegateDefault = new harness.platform.ConnectorGcpKms("gcp_kms_oidc_delegate_default", { * identifier: "identifier", * name: "name", * description: "test", * tags: ["foo:bar"], * region: "us-west1", * gcpProjectId: "1234567", * keyRing: "key_ring", * keyName: "key_name", * "default": true, * oidcAuthentications: [{ * workloadPoolId: "harness-pool-test", * providerId: "harness", * gcpProjectId: "1234567", * serviceAccountEmail: "harness.sample@iam.gserviceaccount.com", * delegateSelectors: ["harness-delegate"], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level gcp connector * * ```sh * $ pulumi import harness:platform/connectorGcpKms:ConnectorGcpKms example * ``` * * Import org level gcp connector * * ```sh * $ pulumi import harness:platform/connectorGcpKms:ConnectorGcpKms example / * ``` * * Import project level gcp connector * * ```sh * $ pulumi import harness:platform/connectorGcpKms:ConnectorGcpKms example // * ``` */ export declare class ConnectorGcpKms extends pulumi.CustomResource { /** * Get an existing ConnectorGcpKms 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?: ConnectorGcpKmsState, opts?: pulumi.CustomResourceOptions): ConnectorGcpKms; /** * Returns true if the given object is an instance of ConnectorGcpKms. 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 ConnectorGcpKms; /** * Set this flag to set this secret manager as default secret manager. */ readonly default: pulumi.Output; /** * Description of the resource. */ readonly description: pulumi.Output; /** * Enable this flag to execute on Delegate. */ readonly executeOnDelegate: pulumi.Output; /** * The project ID of the GCP KMS. */ readonly gcpProjectId: pulumi.Output; /** * Unique identifier of the resource. */ readonly identifier: pulumi.Output; /** * The key name of the GCP KMS. */ readonly keyName: pulumi.Output; /** * The key ring of the GCP KMS. */ readonly keyRing: pulumi.Output; /** * Manual credential configuration. */ readonly manual: 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; /** * The region of the GCP KMS. */ readonly region: pulumi.Output; /** * Tags to associate with the resource. */ readonly tags: pulumi.Output; /** * Create a ConnectorGcpKms 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: ConnectorGcpKmsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ConnectorGcpKms resources. */ export interface ConnectorGcpKmsState { /** * Set this flag to set this secret manager as default secret manager. */ default?: pulumi.Input; /** * Description of the resource. */ description?: pulumi.Input; /** * Enable this flag to execute on Delegate. */ executeOnDelegate?: pulumi.Input; /** * The project ID of the GCP KMS. */ gcpProjectId?: pulumi.Input; /** * Unique identifier of the resource. */ identifier?: pulumi.Input; /** * The key name of the GCP KMS. */ keyName?: pulumi.Input; /** * The key ring of the GCP KMS. */ keyRing?: pulumi.Input; /** * Manual credential configuration. */ manual?: 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; /** * The region of the GCP KMS. */ region?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a ConnectorGcpKms resource. */ export interface ConnectorGcpKmsArgs { /** * Set this flag to set this secret manager as default secret manager. */ default?: pulumi.Input; /** * Description of the resource. */ description?: pulumi.Input; /** * Enable this flag to execute on Delegate. */ executeOnDelegate?: pulumi.Input; /** * The project ID of the GCP KMS. */ gcpProjectId: pulumi.Input; /** * Unique identifier of the resource. */ identifier: pulumi.Input; /** * The key name of the GCP KMS. */ keyName: pulumi.Input; /** * The key ring of the GCP KMS. */ keyRing: pulumi.Input; /** * Manual credential configuration. */ manual?: 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; /** * The region of the GCP KMS. */ region: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; } //# sourceMappingURL=connectorGcpKms.d.ts.map