import * as pulumi from "@pulumi/pulumi"; /** * Create and delete a Harness FME (Split) API key. Only `serverSide` and `clientSide` keys are supported. The raw key value is only available immediately after create. Split may omit `id` on create and only return `key`; the provider then uses that value as `id` and for delete. Import id format: `org_id/project_id/` when the Admin API returns key metadata on GET, or `org_id/project_id/environment_id/api_key_type/name/key_id` (six segments; `name` must not contain `/`). */ export declare class ApiKey extends pulumi.CustomResource { /** * Get an existing ApiKey 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?: ApiKeyState, opts?: pulumi.CustomResourceOptions): ApiKey; /** * Returns true if the given object is an instance of ApiKey. 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 ApiKey; /** * The secret API key value (only set on initial create). */ readonly apiKey: pulumi.Output; /** * Split API key type. Must be `serverSide` or `clientSide`. */ readonly apiKeyType: pulumi.Output; /** * Split environment ID the key is scoped to. */ readonly environmentId: pulumi.Output; /** * Identifier used with the Split delete API (same as `id`). When the create response includes `id`, that is used; otherwise the returned `key` value. */ readonly keyId: pulumi.Output; /** * API key display name. */ readonly name: pulumi.Output; /** * Harness organization identifier. */ readonly orgId: pulumi.Output; /** * Harness project identifier. */ readonly projectId: pulumi.Output; /** * Create a ApiKey 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: ApiKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiKey resources. */ export interface ApiKeyState { /** * The secret API key value (only set on initial create). */ apiKey?: pulumi.Input; /** * Split API key type. Must be `serverSide` or `clientSide`. */ apiKeyType?: pulumi.Input; /** * Split environment ID the key is scoped to. */ environmentId?: pulumi.Input; /** * Identifier used with the Split delete API (same as `id`). When the create response includes `id`, that is used; otherwise the returned `key` value. */ keyId?: pulumi.Input; /** * API key display name. */ name?: pulumi.Input; /** * Harness organization identifier. */ orgId?: pulumi.Input; /** * Harness project identifier. */ projectId?: pulumi.Input; } /** * The set of arguments for constructing a ApiKey resource. */ export interface ApiKeyArgs { /** * Split API key type. Must be `serverSide` or `clientSide`. */ apiKeyType: pulumi.Input; /** * Split environment ID the key is scoped to. */ environmentId: pulumi.Input; /** * API key display name. */ name?: pulumi.Input; /** * Harness organization identifier. */ orgId: pulumi.Input; /** * Harness project identifier. */ projectId: pulumi.Input; } //# sourceMappingURL=apiKey.d.ts.map