"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GcpUcConfig = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
/**
 * Provides a Datadog GcpUcConfig resource. This can be used to create and manage Datadog gcp_uc_config.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as datadog from "@pulumi/datadog";
 *
 * // Create new GCP Usage Cost configuration resource
 * const example = new datadog.GcpUcConfig("example", {
 *     billingAccountId: "123456_ABCDEF_123456",
 *     bucketName: "my-gcp-cost-bucket",
 *     exportDatasetName: "billing_export",
 *     exportPrefix: "datadog_cloud_cost_detailed_usage_export",
 *     exportProjectName: "my-gcp-project",
 *     serviceAccount: "datadog-cost-management@my-gcp-project.iam.gserviceaccount.com",
 * });
 * ```
 *
 * ## Import
 *
 * The `pulumi import` command can be used, for example:
 *
 * ```sh
 * $ pulumi import datadog:index/gcpUcConfig:GcpUcConfig example <cloud_account_id>
 * ```
 */
class GcpUcConfig extends pulumi.CustomResource {
    /**
     * Get an existing GcpUcConfig 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, id, state, opts) {
        return new GcpUcConfig(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'datadog:index/gcpUcConfig:GcpUcConfig';
    /**
     * Returns true if the given object is an instance of GcpUcConfig.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === GcpUcConfig.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["billingAccountId"] = state?.billingAccountId;
            resourceInputs["bucketName"] = state?.bucketName;
            resourceInputs["createdAt"] = state?.createdAt;
            resourceInputs["dataset"] = state?.dataset;
            resourceInputs["errorMessages"] = state?.errorMessages;
            resourceInputs["exportDatasetName"] = state?.exportDatasetName;
            resourceInputs["exportPrefix"] = state?.exportPrefix;
            resourceInputs["exportProjectName"] = state?.exportProjectName;
            resourceInputs["months"] = state?.months;
            resourceInputs["serviceAccount"] = state?.serviceAccount;
            resourceInputs["status"] = state?.status;
            resourceInputs["statusUpdatedAt"] = state?.statusUpdatedAt;
            resourceInputs["updatedAt"] = state?.updatedAt;
        }
        else {
            const args = argsOrState;
            if (args?.billingAccountId === undefined && !opts.urn) {
                throw new Error("Missing required property 'billingAccountId'");
            }
            if (args?.bucketName === undefined && !opts.urn) {
                throw new Error("Missing required property 'bucketName'");
            }
            if (args?.exportDatasetName === undefined && !opts.urn) {
                throw new Error("Missing required property 'exportDatasetName'");
            }
            if (args?.exportProjectName === undefined && !opts.urn) {
                throw new Error("Missing required property 'exportProjectName'");
            }
            if (args?.serviceAccount === undefined && !opts.urn) {
                throw new Error("Missing required property 'serviceAccount'");
            }
            resourceInputs["billingAccountId"] = args?.billingAccountId;
            resourceInputs["bucketName"] = args?.bucketName;
            resourceInputs["exportDatasetName"] = args?.exportDatasetName;
            resourceInputs["exportPrefix"] = args?.exportPrefix;
            resourceInputs["exportProjectName"] = args?.exportProjectName;
            resourceInputs["serviceAccount"] = args?.serviceAccount;
            resourceInputs["createdAt"] = undefined /*out*/;
            resourceInputs["dataset"] = undefined /*out*/;
            resourceInputs["errorMessages"] = undefined /*out*/;
            resourceInputs["months"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["statusUpdatedAt"] = undefined /*out*/;
            resourceInputs["updatedAt"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(GcpUcConfig.__pulumiType, name, resourceInputs, opts);
    }
}
exports.GcpUcConfig = GcpUcConfig;
//# sourceMappingURL=gcpUcConfig.js.map