"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.TransitGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Resource Type definition for AWS::EC2::TransitGateway
 */
class TransitGateway extends pulumi.CustomResource {
    /**
     * Get an existing TransitGateway 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 TransitGateway(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of TransitGateway.  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'] === TransitGateway.__pulumiType;
    }
    /**
     * Create a TransitGateway 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["amazonSideAsn"] = args?.amazonSideAsn;
            resourceInputs["associationDefaultRouteTableId"] = args?.associationDefaultRouteTableId;
            resourceInputs["autoAcceptSharedAttachments"] = args?.autoAcceptSharedAttachments;
            resourceInputs["defaultRouteTableAssociation"] = args?.defaultRouteTableAssociation;
            resourceInputs["defaultRouteTablePropagation"] = args?.defaultRouteTablePropagation;
            resourceInputs["description"] = args?.description;
            resourceInputs["dnsSupport"] = args?.dnsSupport;
            resourceInputs["encryptionSupport"] = args?.encryptionSupport;
            resourceInputs["multicastSupport"] = args?.multicastSupport;
            resourceInputs["propagationDefaultRouteTableId"] = args?.propagationDefaultRouteTableId;
            resourceInputs["securityGroupReferencingSupport"] = args?.securityGroupReferencingSupport;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["transitGatewayCidrBlocks"] = args?.transitGatewayCidrBlocks;
            resourceInputs["vpnEcmpSupport"] = args?.vpnEcmpSupport;
            resourceInputs["awsId"] = undefined /*out*/;
            resourceInputs["encryptionSupportState"] = undefined /*out*/;
            resourceInputs["transitGatewayArn"] = undefined /*out*/;
        }
        else {
            resourceInputs["amazonSideAsn"] = undefined /*out*/;
            resourceInputs["associationDefaultRouteTableId"] = undefined /*out*/;
            resourceInputs["autoAcceptSharedAttachments"] = undefined /*out*/;
            resourceInputs["awsId"] = undefined /*out*/;
            resourceInputs["defaultRouteTableAssociation"] = undefined /*out*/;
            resourceInputs["defaultRouteTablePropagation"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["dnsSupport"] = undefined /*out*/;
            resourceInputs["encryptionSupport"] = undefined /*out*/;
            resourceInputs["encryptionSupportState"] = undefined /*out*/;
            resourceInputs["multicastSupport"] = undefined /*out*/;
            resourceInputs["propagationDefaultRouteTableId"] = undefined /*out*/;
            resourceInputs["securityGroupReferencingSupport"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["transitGatewayArn"] = undefined /*out*/;
            resourceInputs["transitGatewayCidrBlocks"] = undefined /*out*/;
            resourceInputs["vpnEcmpSupport"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["amazonSideAsn", "multicastSupport"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(TransitGateway.__pulumiType, name, resourceInputs, opts);
    }
}
exports.TransitGateway = TransitGateway;
/** @internal */
TransitGateway.__pulumiType = 'aws-native:ec2:TransitGateway';
//# sourceMappingURL=transitGateway.js.map