import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog Datastore Item resource. This can be used to create and manage items in a Datadog datastore. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create a datastore and add items to it * const example = new datadog.Datastore("example", { * name: "users-datastore", * description: "Datastore for user data", * primaryColumnName: "id", * primaryKeyGenerationStrategy: "none", * }); * // Create a datastore item with the primary key specified in the value map * const user1 = new datadog.DatastoreItem("user1", { * datastoreId: example.id, * itemKey: "user-123", * value: { * id: "user-123", * username: "john_doe", * email: "john@example.com", * status: "active", * }, * }); * // Create another datastore item * const user2 = new datadog.DatastoreItem("user2", { * datastoreId: example.id, * itemKey: "user-456", * value: { * id: "user-456", * username: "jane_doe", * email: "jane@example.com", * status: "active", * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/datastoreItem:DatastoreItem foo "datastore-id:item-key" * ``` */ export declare class DatastoreItem extends pulumi.CustomResource { /** * Get an existing DatastoreItem 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?: DatastoreItemState, opts?: pulumi.CustomResourceOptions): DatastoreItem; /** * Returns true if the given object is an instance of DatastoreItem. 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 DatastoreItem; /** * The unique identifier of the datastore containing this item. */ readonly datastoreId: pulumi.Output; /** * The primary key value that identifies this item. Cannot exceed 256 characters. */ readonly itemKey: pulumi.Output; /** * The data content (as key-value pairs) of the datastore item. */ readonly value: pulumi.Output<{ [key: string]: string; }>; /** * Create a DatastoreItem 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: DatastoreItemArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DatastoreItem resources. */ export interface DatastoreItemState { /** * The unique identifier of the datastore containing this item. */ datastoreId?: pulumi.Input; /** * The primary key value that identifies this item. Cannot exceed 256 characters. */ itemKey?: pulumi.Input; /** * The data content (as key-value pairs) of the datastore item. */ value?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a DatastoreItem resource. */ export interface DatastoreItemArgs { /** * The unique identifier of the datastore containing this item. */ datastoreId: pulumi.Input; /** * The primary key value that identifies this item. Cannot exceed 256 characters. */ itemKey: pulumi.Input; /** * The data content (as key-value pairs) of the datastore item. */ value: pulumi.Input<{ [key: string]: pulumi.Input; }>; }