import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Usage Carbon Emissions Query resource in Oracle Cloud Infrastructure Metering Computation service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/usage/latest/UsageCarbonEmissionsQuery
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/metering_computation
 *
 * Returns the created carbon emissions usage query.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testUsageCarbonEmissionsQuery = new oci.meteringcomputation.UsageCarbonEmissionsQuery("test_usage_carbon_emissions_query", {
 *     compartmentId: compartmentId,
 *     queryDefinition: {
 *         costAnalysisUi: {
 *             graph: usageCarbonEmissionsQueryQueryDefinitionCostAnalysisUiGraph,
 *             isCumulativeGraph: usageCarbonEmissionsQueryQueryDefinitionCostAnalysisUiIsCumulativeGraph === "true",
 *         },
 *         displayName: usageCarbonEmissionsQueryQueryDefinitionDisplayName,
 *         reportQuery: {
 *             tenantId: testTenant.id,
 *             compartmentDepth: Number(usageCarbonEmissionsQueryQueryDefinitionReportQueryCompartmentDepth),
 *             dateRangeName: usageCarbonEmissionsQueryQueryDefinitionReportQueryDateRangeName,
 *             emissionCalculationMethod: usageCarbonEmissionsQueryQueryDefinitionReportQueryEmissionCalculationMethod,
 *             emissionType: usageCarbonEmissionsQueryQueryDefinitionReportQueryEmissionType,
 *             granularity: usageCarbonEmissionsQueryQueryDefinitionReportQueryGranularity,
 *             groupBies: usageCarbonEmissionsQueryQueryDefinitionReportQueryGroupBy,
 *             groupByTags: [{
 *                 key: usageCarbonEmissionsQueryQueryDefinitionReportQueryGroupByTagKey,
 *                 namespace: usageCarbonEmissionsQueryQueryDefinitionReportQueryGroupByTagNamespace,
 *                 value: usageCarbonEmissionsQueryQueryDefinitionReportQueryGroupByTagValue,
 *             }],
 *             isAggregateByTime: usageCarbonEmissionsQueryQueryDefinitionReportQueryIsAggregateByTime === "true",
 *             timeUsageEnded: usageCarbonEmissionsQueryQueryDefinitionReportQueryTimeUsageEnded,
 *             timeUsageStarted: usageCarbonEmissionsQueryQueryDefinitionReportQueryTimeUsageStarted,
 *             usageCarbonEmissionsQueryFilter: usageCarbonEmissionsQueryQueryDefinitionReportQueryUsageCarbonEmissionsQueryFilter,
 *         },
 *         version: Number(usageCarbonEmissionsQueryQueryDefinitionVersion),
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * UsageCarbonEmissionsQueries can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:MeteringComputation/usageCarbonEmissionsQuery:UsageCarbonEmissionsQuery test_usage_carbon_emissions_query "id"
 * ```
 */
export declare class UsageCarbonEmissionsQuery extends pulumi.CustomResource {
    /**
     * Get an existing UsageCarbonEmissionsQuery 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?: UsageCarbonEmissionsQueryState, opts?: pulumi.CustomResourceOptions): UsageCarbonEmissionsQuery;
    /**
     * Returns true if the given object is an instance of UsageCarbonEmissionsQuery.  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 UsageCarbonEmissionsQuery;
    /**
     * The compartment OCID.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * (Updatable) The common fields for queries.
     */
    readonly queryDefinition: pulumi.Output<outputs.MeteringComputation.UsageCarbonEmissionsQueryQueryDefinition>;
    /**
     * Create a UsageCarbonEmissionsQuery 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: UsageCarbonEmissionsQueryArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering UsageCarbonEmissionsQuery resources.
 */
export interface UsageCarbonEmissionsQueryState {
    /**
     * The compartment OCID.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The common fields for queries.
     */
    queryDefinition?: pulumi.Input<inputs.MeteringComputation.UsageCarbonEmissionsQueryQueryDefinition | undefined>;
}
/**
 * The set of arguments for constructing a UsageCarbonEmissionsQuery resource.
 */
export interface UsageCarbonEmissionsQueryArgs {
    /**
     * The compartment OCID.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * (Updatable) The common fields for queries.
     */
    queryDefinition: pulumi.Input<inputs.MeteringComputation.UsageCarbonEmissionsQueryQueryDefinition>;
}
//# sourceMappingURL=usageCarbonEmissionsQuery.d.ts.map