"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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.DaemonTaskDefinition = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The details of a daemon task definition. A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.
 */
class DaemonTaskDefinition extends pulumi.CustomResource {
    /**
     * Get an existing DaemonTaskDefinition 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new DaemonTaskDefinition(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of DaemonTaskDefinition.  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'] === DaemonTaskDefinition.__pulumiType;
    }
    /**
     * Create a DaemonTaskDefinition 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, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            resourceInputs["containerDefinitions"] = args?.containerDefinitions;
            resourceInputs["cpu"] = args?.cpu;
            resourceInputs["executionRoleArn"] = args?.executionRoleArn;
            resourceInputs["family"] = args?.family;
            resourceInputs["memory"] = args?.memory;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["taskRoleArn"] = args?.taskRoleArn;
            resourceInputs["volumes"] = args?.volumes;
            resourceInputs["daemonTaskDefinitionArn"] = undefined /*out*/;
        }
        else {
            resourceInputs["containerDefinitions"] = undefined /*out*/;
            resourceInputs["cpu"] = undefined /*out*/;
            resourceInputs["daemonTaskDefinitionArn"] = undefined /*out*/;
            resourceInputs["executionRoleArn"] = undefined /*out*/;
            resourceInputs["family"] = undefined /*out*/;
            resourceInputs["memory"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["taskRoleArn"] = undefined /*out*/;
            resourceInputs["volumes"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["containerDefinitions[*]", "cpu", "executionRoleArn", "family", "memory", "taskRoleArn", "volumes[*]"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(DaemonTaskDefinition.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DaemonTaskDefinition = DaemonTaskDefinition;
/** @internal */
DaemonTaskDefinition.__pulumiType = 'aws-native:ecs:DaemonTaskDefinition';
//# sourceMappingURL=daemonTaskDefinition.js.map