UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

112 lines 3.63 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get information on a VPC NAT Gateway for use with other managed resources This datasource provides all the VPC * NAT Gateway properties as configured on the DigitalOcean account. This is useful if the VPC NAT Gateway in question * is not managed by Terraform, or any of the relevant data would need to be referenced in other managed resources. * * NOTE: VPC NAT Gateway is currently in Private Preview. * * ## 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 projectId: 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[]; } /** * Get information on a VPC NAT Gateway for use with other managed resources This datasource provides all the VPC * NAT Gateway properties as configured on the DigitalOcean account. This is useful if the VPC NAT Gateway in question * is not managed by Terraform, or any of the relevant data would need to be referenced in other managed resources. * * NOTE: VPC NAT Gateway is currently in Private Preview. * * ## 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 | undefined>; /** * The name of VPC NAT Gateway. */ name?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getVpcNatGateway.d.ts.map