@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
264 lines (263 loc) • 8.74 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates and manages Scaleway Public Gateways.
* For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway).
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.network.PublicGateway("main", {
* name: "public_gateway_demo",
* type: "VPC-GW-S",
* tags: [
* "demo",
* "terraform",
* ],
* });
* ```
*
* ## Import
*
* Public Gateways can be imported using `{zone}/{id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:index/vpcPublicGateway:VpcPublicGateway main fr-par-1/11111111-1111-1111-1111-111111111111
* ```
*
* @deprecated scaleway.index/vpcpublicgateway.VpcPublicGateway has been deprecated in favor of scaleway.network/publicgateway.PublicGateway
*/
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;
/**
* Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.
*/
readonly allowedIpRanges: pulumi.Output<string[]>;
/**
* The bandwidth available of the gateway
*/
readonly bandwidth: pulumi.Output<number>;
/**
* 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>;
/**
* Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2
*/
readonly moveToIpam: pulumi.Output<boolean | undefined>;
/**
* The name for 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>;
/**
* Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
*/
readonly refreshSshKeys: pulumi.Output<string | undefined>;
/**
* The status of the public gateway.
*/
readonly status: pulumi.Output<string>;
/**
* The tags to associate 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[]>;
/**
* `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.
*/
/** @deprecated scaleway.index/vpcpublicgateway.VpcPublicGateway has been deprecated in favor of scaleway.network/publicgateway.PublicGateway */
constructor(name: string, args: VpcPublicGatewayArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering VpcPublicGateway resources.
*/
export interface VpcPublicGatewayState {
/**
* Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.
*/
allowedIpRanges?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The bandwidth available of the gateway
*/
bandwidth?: pulumi.Input<number>;
/**
* 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>;
/**
* Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2
*/
moveToIpam?: pulumi.Input<boolean>;
/**
* The name for 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>;
/**
* Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
*/
refreshSshKeys?: pulumi.Input<string>;
/**
* The status of the public gateway.
*/
status?: pulumi.Input<string>;
/**
* The tags to associate 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 {
/**
* Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.
*/
allowedIpRanges?: pulumi.Input<pulumi.Input<string>[]>;
/**
* 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>;
/**
* Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2
*/
moveToIpam?: pulumi.Input<boolean>;
/**
* The name for 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>;
/**
* Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
*/
refreshSshKeys?: pulumi.Input<string>;
/**
* The tags to associate with the Public Gateway.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The gateway type.
*/
type: pulumi.Input<string>;
/**
* `zone`) The zone in which the Public Gateway should be created.
*/
zone?: pulumi.Input<string>;
}