UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

208 lines (207 loc) 6.66 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway VPC Public Gateway. * For more information, see [the documentation](https://developers.scaleway.com/en/products/vpc-gw/api/v1). * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.VpcPublicGateway("main", { * tags: [ * "demo", * "terraform", * ], * type: "VPC-GW-S", * }); * ``` * * ## Import * * Public gateway can be imported using the `{zone}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/vpcPublicGateway:VpcPublicGateway main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class VpcPublicGateway extends pulumi.CustomResource { /** * Get an existing VpcPublicGateway resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VpcPublicGatewayState, opts?: pulumi.CustomResourceOptions): VpcPublicGateway; /** * Returns true if the given object is an instance of VpcPublicGateway. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VpcPublicGateway; /** * Enable SSH bastion on the gateway */ readonly bastionEnabled: pulumi.Output<boolean | undefined>; /** * The port on which the SSH bastion will listen. */ readonly bastionPort: pulumi.Output<number>; /** * The date and time of the creation of the public gateway. */ readonly createdAt: pulumi.Output<string>; /** * Enable SMTP on the gateway */ readonly enableSmtp: pulumi.Output<boolean>; /** * attach an existing flexible IP to the gateway */ readonly ipId: pulumi.Output<string>; /** * The name of the public gateway. If not provided it will be randomly generated. */ readonly name: pulumi.Output<string>; /** * The organization ID the public gateway is associated with. */ readonly organizationId: pulumi.Output<string>; /** * `projectId`) The ID of the project the public gateway is associated with. */ readonly projectId: pulumi.Output<string>; /** * The tags associated with the public gateway. */ readonly tags: pulumi.Output<string[] | undefined>; /** * The gateway type. */ readonly type: pulumi.Output<string>; /** * The date and time of the last update of the public gateway. */ readonly updatedAt: pulumi.Output<string>; /** * override the gateway's default recursive DNS servers, if DNS features are enabled. */ readonly upstreamDnsServers: pulumi.Output<string[] | undefined>; /** * `zone`) The zone in which the public gateway should be created. */ readonly zone: pulumi.Output<string>; /** * Create a VpcPublicGateway 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: string, args: VpcPublicGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpcPublicGateway resources. */ export interface VpcPublicGatewayState { /** * Enable SSH bastion on the gateway */ bastionEnabled?: pulumi.Input<boolean>; /** * The port on which the SSH bastion will listen. */ bastionPort?: pulumi.Input<number>; /** * The date and time of the creation of the public gateway. */ createdAt?: pulumi.Input<string>; /** * Enable SMTP on the gateway */ enableSmtp?: pulumi.Input<boolean>; /** * attach an existing flexible IP to the gateway */ ipId?: pulumi.Input<string>; /** * The name of the public gateway. If not provided it will be randomly generated. */ name?: pulumi.Input<string>; /** * The organization ID the public gateway is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the public gateway is associated with. */ projectId?: pulumi.Input<string>; /** * The tags associated with the public gateway. */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * The gateway type. */ type?: pulumi.Input<string>; /** * The date and time of the last update of the public gateway. */ updatedAt?: pulumi.Input<string>; /** * override the gateway's default recursive DNS servers, if DNS features are enabled. */ upstreamDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * `zone`) The zone in which the public gateway should be created. */ zone?: pulumi.Input<string>; } /** * The set of arguments for constructing a VpcPublicGateway resource. */ export interface VpcPublicGatewayArgs { /** * Enable SSH bastion on the gateway */ bastionEnabled?: pulumi.Input<boolean>; /** * The port on which the SSH bastion will listen. */ bastionPort?: pulumi.Input<number>; /** * Enable SMTP on the gateway */ enableSmtp?: pulumi.Input<boolean>; /** * attach an existing flexible IP to the gateway */ ipId?: pulumi.Input<string>; /** * The name of the public gateway. If not provided it will be randomly generated. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the public gateway is associated with. */ projectId?: pulumi.Input<string>; /** * The tags associated with the public gateway. */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * The gateway type. */ type: pulumi.Input<string>; /** * override the gateway's default recursive DNS servers, if DNS features are enabled. */ upstreamDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * `zone`) The zone in which the public gateway should be created. */ zone?: pulumi.Input<string>; }