@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
103 lines (102 loc) • 2.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about a public gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.VpcPublicGateway("main", {
* type: "VPC-GW-S",
* zone: "nl-ams-1",
* });
* const pgTestByName = scaleway.getVpcPublicGatewayOutput({
* name: main.name,
* zone: "nl-ams-1",
* });
* const pgTestById = scaleway.getVpcPublicGatewayOutput({
* publicGatewayId: main.id,
* });
* ```
*/
export declare function getVpcPublicGateway(args?: GetVpcPublicGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcPublicGatewayResult>;
/**
* A collection of arguments for invoking getVpcPublicGateway.
*/
export interface GetVpcPublicGatewayArgs {
/**
* Exact name of the public gateway.
*/
name?: string;
publicGatewayId?: string;
/**
* `zone`) The zone in which
* the public gateway should be created.
*/
zone?: string;
}
/**
* A collection of values returned by getVpcPublicGateway.
*/
export interface GetVpcPublicGatewayResult {
readonly bastionEnabled: boolean;
readonly bastionPort: number;
readonly createdAt: string;
readonly enableSmtp: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ipId: string;
readonly name?: string;
readonly organizationId: string;
readonly projectId: string;
readonly publicGatewayId?: string;
readonly tags: string[];
readonly type: string;
readonly updatedAt: string;
readonly upstreamDnsServers: string[];
readonly zone?: string;
}
/**
* Gets information about a public gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const main = new scaleway.VpcPublicGateway("main", {
* type: "VPC-GW-S",
* zone: "nl-ams-1",
* });
* const pgTestByName = scaleway.getVpcPublicGatewayOutput({
* name: main.name,
* zone: "nl-ams-1",
* });
* const pgTestById = scaleway.getVpcPublicGatewayOutput({
* publicGatewayId: main.id,
* });
* ```
*/
export declare function getVpcPublicGatewayOutput(args?: GetVpcPublicGatewayOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcPublicGatewayResult>;
/**
* A collection of arguments for invoking getVpcPublicGateway.
*/
export interface GetVpcPublicGatewayOutputArgs {
/**
* Exact name of the public gateway.
*/
name?: pulumi.Input<string>;
publicGatewayId?: pulumi.Input<string>;
/**
* `zone`) The zone in which
* the public gateway should be created.
*/
zone?: pulumi.Input<string>;
}