"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.DeploymentGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Resource type definition for AWS::CodeDeploy::DeploymentGroup
 */
class DeploymentGroup extends pulumi.CustomResource {
    /**
     * Get an existing DeploymentGroup 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 DeploymentGroup(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of DeploymentGroup.  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'] === DeploymentGroup.__pulumiType;
    }
    /**
     * Create a DeploymentGroup 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) {
            if (args?.applicationName === undefined && !opts.urn) {
                throw new Error("Missing required property 'applicationName'");
            }
            if (args?.serviceRoleArn === undefined && !opts.urn) {
                throw new Error("Missing required property 'serviceRoleArn'");
            }
            resourceInputs["alarmConfiguration"] = args?.alarmConfiguration;
            resourceInputs["applicationName"] = args?.applicationName;
            resourceInputs["autoRollbackConfiguration"] = args?.autoRollbackConfiguration;
            resourceInputs["autoScalingGroups"] = args?.autoScalingGroups;
            resourceInputs["blueGreenDeploymentConfiguration"] = args?.blueGreenDeploymentConfiguration;
            resourceInputs["deployment"] = args?.deployment;
            resourceInputs["deploymentConfigName"] = args?.deploymentConfigName;
            resourceInputs["deploymentGroupName"] = args?.deploymentGroupName;
            resourceInputs["deploymentStyle"] = args?.deploymentStyle;
            resourceInputs["ec2TagFilters"] = args?.ec2TagFilters;
            resourceInputs["ec2TagSet"] = args?.ec2TagSet;
            resourceInputs["ecsServices"] = args?.ecsServices;
            resourceInputs["loadBalancerInfo"] = args?.loadBalancerInfo;
            resourceInputs["onPremisesInstanceTagFilters"] = args?.onPremisesInstanceTagFilters;
            resourceInputs["onPremisesTagSet"] = args?.onPremisesTagSet;
            resourceInputs["outdatedInstancesStrategy"] = args?.outdatedInstancesStrategy;
            resourceInputs["serviceRoleArn"] = args?.serviceRoleArn;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["terminationHookEnabled"] = args?.terminationHookEnabled;
            resourceInputs["triggerConfigurations"] = args?.triggerConfigurations;
        }
        else {
            resourceInputs["alarmConfiguration"] = undefined /*out*/;
            resourceInputs["applicationName"] = undefined /*out*/;
            resourceInputs["autoRollbackConfiguration"] = undefined /*out*/;
            resourceInputs["autoScalingGroups"] = undefined /*out*/;
            resourceInputs["blueGreenDeploymentConfiguration"] = undefined /*out*/;
            resourceInputs["deployment"] = undefined /*out*/;
            resourceInputs["deploymentConfigName"] = undefined /*out*/;
            resourceInputs["deploymentGroupName"] = undefined /*out*/;
            resourceInputs["deploymentStyle"] = undefined /*out*/;
            resourceInputs["ec2TagFilters"] = undefined /*out*/;
            resourceInputs["ec2TagSet"] = undefined /*out*/;
            resourceInputs["ecsServices"] = undefined /*out*/;
            resourceInputs["loadBalancerInfo"] = undefined /*out*/;
            resourceInputs["onPremisesInstanceTagFilters"] = undefined /*out*/;
            resourceInputs["onPremisesTagSet"] = undefined /*out*/;
            resourceInputs["outdatedInstancesStrategy"] = undefined /*out*/;
            resourceInputs["serviceRoleArn"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["terminationHookEnabled"] = undefined /*out*/;
            resourceInputs["triggerConfigurations"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["applicationName", "deploymentGroupName"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(DeploymentGroup.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DeploymentGroup = DeploymentGroup;
/** @internal */
DeploymentGroup.__pulumiType = 'aws-native:codedeploy:DeploymentGroup';
//# sourceMappingURL=deploymentGroup.js.map