@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [;
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