UNPKG

@pulumi/awsx

Version:

[![Actions Status](https://github.com/pulumi/pulumi-awsx/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-awsx/actions) [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fur

49 lines 2.14 kB
"use strict"; // *** WARNING: this file was generated by pulumi-gen-awsx. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultVpc = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Pseudo resource representing the default VPC and associated subnets for an account and region. This does not create any resources. This will be replaced with `getDefaultVpc` in the future. */ class DefaultVpc extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of DefaultVpc. 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'] === DefaultVpc.__pulumiType; } /** * Create a DefaultVpc 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["privateSubnetIds"] = undefined /*out*/; resourceInputs["publicSubnetIds"] = undefined /*out*/; resourceInputs["vpcId"] = undefined /*out*/; } else { resourceInputs["privateSubnetIds"] = undefined /*out*/; resourceInputs["publicSubnetIds"] = undefined /*out*/; resourceInputs["vpcId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DefaultVpc.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.DefaultVpc = DefaultVpc; /** @internal */ DefaultVpc.__pulumiType = 'awsx:ec2:DefaultVpc'; //# sourceMappingURL=defaultVpc.js.map