import * as pulumi from "@pulumi/pulumi";
/**
 * Provides an OpenSearch Dashboards object resource. This resource interacts directly with the underlying OpenSearch index backing Dashboards, so the format must match what Dashboards the version of Dashboards is expecting. Dashboards with older versions - directly pulling the JSON from a Dashboards index of the same version of OpenSearch targeted by the provider is a workaround.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as opensearch from "@piclemx/pulumi-opensearch";
 *
 * const testVisualizationV6 = new opensearch.DashboardObject("testVisualizationV6", {body: `[
 *   {
 *     "_id": "visualization:response-time-percentile",
 *     "_type": "doc",
 *     "_source": {
 *       "type": "visualization",
 *       "visualization": {
 *         "title": "Total response time percentiles",
 *         "visState": "{\\"title\\":\\"Total response time percentiles\\",\\"type\\":\\"line\\",\\"params\\":{\\"addTooltip\\":true,\\"addLegend\\":true,\\"legendPosition\\":\\"right\\",\\"showCircles\\":true,\\"interpolate\\":\\"linear\\",\\"scale\\":\\"linear\\",\\"drawLinesBetweenPoints\\":true,\\"radiusRatio\\":9,\\"times\\":[],\\"addTimeMarker\\":false,\\"defaultYExtents\\":false,\\"setYExtents\\":false},\\"aggs\\":[{\\"id\\":\\"1\\",\\"enabled\\":true,\\"type\\":\\"percentiles\\",\\"schema\\":\\"metric\\",\\"params\\":{\\"field\\":\\"app.total_time\\",\\"percents\\":[50,90,95]}},{\\"id\\":\\"2\\",\\"enabled\\":true,\\"type\\":\\"date_histogram\\",\\"schema\\":\\"segment\\",\\"params\\":{\\"field\\":\\"@timestamp\\",\\"interval\\":\\"auto\\",\\"customInterval\\":\\"2h\\",\\"min_doc_count\\":1,\\"extended_bounds\\":{}}},{\\"id\\":\\"3\\",\\"enabled\\":true,\\"type\\":\\"terms\\",\\"schema\\":\\"group\\",\\"params\\":{\\"field\\":\\"system.syslog.program\\",\\"size\\":5,\\"order\\":\\"desc\\",\\"orderBy\\":\\"_term\\"}}],\\"listeners\\":{}}",
 *         "uiStateJSON": "{}",
 *         "description": "",
 *         "version": 1
 *       }
 *     }
 *   }
 * ]
 *
 * `});
 * const testVisualizationV7 = new opensearch.DashboardObject("testVisualizationV7", {body: `[
 *   {
 *     "_id": "response-time-percentile",
 *     "_source": {
 *       "type": "visualization",
 *       "visualization": {
 *         "title": "Total response time percentiles",
 *         "visState": "{\\"title\\":\\"Total response time percentiles\\",\\"type\\":\\"line\\",\\"params\\":{\\"addTooltip\\":true,\\"addLegend\\":true,\\"legendPosition\\":\\"right\\",\\"showCircles\\":true,\\"interpolate\\":\\"linear\\",\\"scale\\":\\"linear\\",\\"drawLinesBetweenPoints\\":true,\\"radiusRatio\\":9,\\"times\\":[],\\"addTimeMarker\\":false,\\"defaultYExtents\\":false,\\"setYExtents\\":false},\\"aggs\\":[{\\"id\\":\\"1\\",\\"enabled\\":true,\\"type\\":\\"percentiles\\",\\"schema\\":\\"metric\\",\\"params\\":{\\"field\\":\\"app.total_time\\",\\"percents\\":[50,90,95]}},{\\"id\\":\\"2\\",\\"enabled\\":true,\\"type\\":\\"date_histogram\\",\\"schema\\":\\"segment\\",\\"params\\":{\\"field\\":\\"@timestamp\\",\\"interval\\":\\"auto\\",\\"customInterval\\":\\"2h\\",\\"min_doc_count\\":1,\\"extended_bounds\\":{}}},{\\"id\\":\\"3\\",\\"enabled\\":true,\\"type\\":\\"terms\\",\\"schema\\":\\"group\\",\\"params\\":{\\"field\\":\\"system.syslog.program\\",\\"size\\":5,\\"order\\":\\"desc\\",\\"orderBy\\":\\"_term\\"}}],\\"listeners\\":{}}",
 *         "uiStateJSON": "{}",
 *         "description": "",
 *         "version": 1
 *       }
 *     }
 *   }
 * ]
 *
 * `});
 * const testIndexPatternV6 = new opensearch.DashboardObject("testIndexPatternV6", {body: `[
 *   {
 *     "_id": "index-pattern:cloudwatch",
 *     "_type": "doc",
 *     "_source": {
 *       "type": "index-pattern",
 *       "index-pattern": {
 *         "title": "cloudwatch-*",
 *         "timeFieldName": "timestamp"
 *       }
 *     }
 *   }
 * ]
 *
 * `});
 * const testIndexPatternV7 = new opensearch.DashboardObject("testIndexPatternV7", {body: `[
 *   {
 *     "_id": "index-pattern:cloudwatch",
 *     "_type": "doc",
 *     "_source": {
 *       "type": "index-pattern",
 *       "index-pattern": {
 *         "title": "cloudwatch-*",
 *         "timeFieldName": "timestamp"
 *       }
 *     }
 *   }
 * ]
 *
 * `});
 * ```
 */
export declare class DashboardObject extends pulumi.CustomResource {
    /**
     * Get an existing DashboardObject 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<pulumi.ID>, state?: DashboardObjectState, opts?: pulumi.CustomResourceOptions): DashboardObject;
    /**
     * Returns true if the given object is an instance of DashboardObject.  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 DashboardObject;
    /**
     * The JSON body of the dashboard object.
     */
    readonly body: pulumi.Output<string>;
    /**
     * The name of the index where dashboard data is stored.
     */
    readonly index: pulumi.Output<string | undefined>;
    /**
     * Create a DashboardObject 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: DashboardObjectArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering DashboardObject resources.
 */
export interface DashboardObjectState {
    /**
     * The JSON body of the dashboard object.
     */
    body?: pulumi.Input<string>;
    /**
     * The name of the index where dashboard data is stored.
     */
    index?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a DashboardObject resource.
 */
export interface DashboardObjectArgs {
    /**
     * The JSON body of the dashboard object.
     */
    body: pulumi.Input<string>;
    /**
     * The name of the index where dashboard data is stored.
     */
    index?: pulumi.Input<string>;
}
