@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
99 lines (98 loc) • 2.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* ## 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,
* });
* ```
*/
export declare function getVpcNatGateway(args?: GetVpcNatGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcNatGatewayResult>;
/**
* A collection of arguments for invoking getVpcNatGateway.
*/
export interface GetVpcNatGatewayArgs {
/**
* The ID of VPC NAT Gateway.
*/
id?: string;
/**
* The name of VPC NAT Gateway.
*/
name?: string;
}
/**
* A collection of values returned by getVpcNatGateway.
*/
export interface GetVpcNatGatewayResult {
readonly createdAt: string;
readonly egresses: outputs.GetVpcNatGatewayEgress[];
readonly icmpTimeoutSeconds: number;
readonly id?: string;
readonly name?: string;
readonly region: string;
readonly size: number;
readonly state: string;
readonly tcpTimeoutSeconds: number;
readonly type: string;
readonly udpTimeoutSeconds: number;
readonly updatedAt: string;
readonly vpcs: outputs.GetVpcNatGatewayVpc[];
}
/**
* ## 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,
* });
* ```
*/
export declare function getVpcNatGatewayOutput(args?: GetVpcNatGatewayOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcNatGatewayResult>;
/**
* A collection of arguments for invoking getVpcNatGateway.
*/
export interface GetVpcNatGatewayOutputArgs {
/**
* The ID of VPC NAT Gateway.
*/
id?: pulumi.Input<string>;
/**
* The name of VPC NAT Gateway.
*/
name?: pulumi.Input<string>;
}