@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
76 lines • 2.36 kB
JavaScript
;
// *** 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.getVpcNatGatewayOutput = exports.getVpcNatGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* Get the VPC NAT Gateway by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_vpc_nat_gateway = digitalocean.getVpcNatGateway({
* name: my_existing_vpc_nat_gateway.name,
* });
* ```
*
* Get the VPC NAT Gateway by ID:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_vpc_nat_gateway = digitalocean.getVpcNatGateway({
* id: my_existing_vpc_nat_gateway.id,
* });
* ```
*/
function getVpcNatGateway(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getVpcNatGateway:getVpcNatGateway", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getVpcNatGateway = getVpcNatGateway;
/**
* ## Example Usage
*
* Get the VPC NAT Gateway by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_vpc_nat_gateway = digitalocean.getVpcNatGateway({
* name: my_existing_vpc_nat_gateway.name,
* });
* ```
*
* Get the VPC NAT Gateway by ID:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_vpc_nat_gateway = digitalocean.getVpcNatGateway({
* id: my_existing_vpc_nat_gateway.id,
* });
* ```
*/
function getVpcNatGatewayOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getVpcNatGateway:getVpcNatGateway", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getVpcNatGatewayOutput = getVpcNatGatewayOutput;
//# sourceMappingURL=getVpcNatGateway.js.map