UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

86 lines 4.83 kB
"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, Object.assign(Object.assign({}, 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 ? args.amazonSideAsn : undefined; resourceInputs["associationDefaultRouteTableId"] = args ? args.associationDefaultRouteTableId : undefined; resourceInputs["autoAcceptSharedAttachments"] = args ? args.autoAcceptSharedAttachments : undefined; resourceInputs["defaultRouteTableAssociation"] = args ? args.defaultRouteTableAssociation : undefined; resourceInputs["defaultRouteTablePropagation"] = args ? args.defaultRouteTablePropagation : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dnsSupport"] = args ? args.dnsSupport : undefined; resourceInputs["multicastSupport"] = args ? args.multicastSupport : undefined; resourceInputs["propagationDefaultRouteTableId"] = args ? args.propagationDefaultRouteTableId : undefined; resourceInputs["securityGroupReferencingSupport"] = args ? args.securityGroupReferencingSupport : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["transitGatewayCidrBlocks"] = args ? args.transitGatewayCidrBlocks : undefined; resourceInputs["vpnEcmpSupport"] = args ? args.vpnEcmpSupport : undefined; resourceInputs["awsId"] = 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["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