import * as pulumi from "@pulumi/pulumi"; /** * Provides a Workers KV Pair. *NOTE:* This resource uses the Cloudflare account APIs. This requires setting the `CLOUDFLARE_ACCOUNT_ID` environment variable or `accountId` provider argument. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi_cloudflare from "@mapped/pulumi-cloudflare"; * * const exampleNs = new cloudflare.WorkersKvNamespace("exampleNs", {title: "test-namespace"}); * const example = new cloudflare.WorkersKv("example", { * namespaceId: exampleNs.id, * key: "test-key", * value: "test value", * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/workersKv:WorkersKv example beaeb6716c9443eaa4deef11763ccca6/test-key * ``` * * where- `beaeb6716c9443eaa4deef11763ccca6` is the ID of the namespace and `test-key` is the key */ export declare class WorkersKv extends pulumi.CustomResource { /** * Get an existing WorkersKv 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?: WorkersKvState, opts?: pulumi.CustomResourceOptions): WorkersKv; /** * Returns true if the given object is an instance of WorkersKv. 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 WorkersKv; /** * The key name */ readonly key: pulumi.Output; /** * The ID of the Workers KV namespace in which you want to create the KV pair */ readonly namespaceId: pulumi.Output; /** * The string value to be stored in the key */ readonly value: pulumi.Output; /** * Create a WorkersKv 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: WorkersKvArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkersKv resources. */ export interface WorkersKvState { /** * The key name */ key?: pulumi.Input; /** * The ID of the Workers KV namespace in which you want to create the KV pair */ namespaceId?: pulumi.Input; /** * The string value to be stored in the key */ value?: pulumi.Input; } /** * The set of arguments for constructing a WorkersKv resource. */ export interface WorkersKvArgs { /** * The key name */ key: pulumi.Input; /** * The ID of the Workers KV namespace in which you want to create the KV pair */ namespaceId: pulumi.Input; /** * The string value to be stored in the key */ value: pulumi.Input; }