"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.AzureUcConfig = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
/**
 * Provides a Datadog Azure Usage Cost configuration resource. This can be used to create and manage Azure Cost Export configurations for Cloud Cost Management. Azure configurations require both actual and amortized cost export settings.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as datadog from "@pulumi/datadog";
 *
 * // Create new Azure Usage Cost configuration resource
 * const example = new datadog.AzureUcConfig("example", {
 *     accountId: "12345678-1234-abcd-1234-123456789012",
 *     clientId: "87654321-4321-dcba-4321-210987654321",
 *     scope: "/subscriptions/12345678-1234-abcd-1234-123456789012",
 *     actualBillConfig: [{
 *         exportName: "my-actual-export",
 *         exportPath: "exports/actual",
 *         storageAccount: "mystorageaccount",
 *         storageContainer: "cost-exports",
 *     }],
 *     amortizedBillConfig: [{
 *         exportName: "my-amortized-export",
 *         exportPath: "exports/amortized",
 *         storageAccount: "mystorageaccount",
 *         storageContainer: "cost-exports",
 *     }],
 * });
 * ```
 *
 * ## Import
 *
 * The `pulumi import` command can be used, for example:
 *
 * ```sh
 * $ pulumi import datadog:index/azureUcConfig:AzureUcConfig example <cloud_account_id>
 * ```
 */
class AzureUcConfig extends pulumi.CustomResource {
    /**
     * Get an existing AzureUcConfig 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 AzureUcConfig(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'datadog:index/azureUcConfig:AzureUcConfig';
    /**
     * Returns true if the given object is an instance of AzureUcConfig.  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'] === AzureUcConfig.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["accountId"] = state?.accountId;
            resourceInputs["actualBillConfig"] = state?.actualBillConfig;
            resourceInputs["amortizedBillConfig"] = state?.amortizedBillConfig;
            resourceInputs["clientId"] = state?.clientId;
            resourceInputs["createdAt"] = state?.createdAt;
            resourceInputs["errorMessages"] = state?.errorMessages;
            resourceInputs["scope"] = state?.scope;
            resourceInputs["status"] = state?.status;
            resourceInputs["statusUpdatedAt"] = state?.statusUpdatedAt;
            resourceInputs["updatedAt"] = state?.updatedAt;
        }
        else {
            const args = argsOrState;
            if (args?.accountId === undefined && !opts.urn) {
                throw new Error("Missing required property 'accountId'");
            }
            if (args?.clientId === undefined && !opts.urn) {
                throw new Error("Missing required property 'clientId'");
            }
            if (args?.scope === undefined && !opts.urn) {
                throw new Error("Missing required property 'scope'");
            }
            resourceInputs["accountId"] = args?.accountId;
            resourceInputs["actualBillConfig"] = args?.actualBillConfig;
            resourceInputs["amortizedBillConfig"] = args?.amortizedBillConfig;
            resourceInputs["clientId"] = args?.clientId;
            resourceInputs["scope"] = args?.scope;
            resourceInputs["createdAt"] = undefined /*out*/;
            resourceInputs["errorMessages"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["statusUpdatedAt"] = undefined /*out*/;
            resourceInputs["updatedAt"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(AzureUcConfig.__pulumiType, name, resourceInputs, opts);
    }
}
exports.AzureUcConfig = AzureUcConfig;
//# sourceMappingURL=azureUcConfig.js.map