scaleway.VpcPublicGateway
Explore with Pulumi AI
Creates and manages Scaleway Public Gateways. For more information, see the API documentation.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.VpcPublicGateway("main", {
name: "public_gateway_demo",
type: "VPC-GW-S",
tags: [
"demo",
"terraform",
],
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.VpcPublicGateway("main",
name="public_gateway_demo",
type="VPC-GW-S",
tags=[
"demo",
"terraform",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewVpcPublicGateway(ctx, "main", &scaleway.VpcPublicGatewayArgs{
Name: pulumi.String("public_gateway_demo"),
Type: pulumi.String("VPC-GW-S"),
Tags: pulumi.StringArray{
pulumi.String("demo"),
pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.VpcPublicGateway("main", new()
{
Name = "public_gateway_demo",
Type = "VPC-GW-S",
Tags = new[]
{
"demo",
"terraform",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.VpcPublicGateway;
import com.pulumi.scaleway.VpcPublicGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new VpcPublicGateway("main", VpcPublicGatewayArgs.builder()
.name("public_gateway_demo")
.type("VPC-GW-S")
.tags(
"demo",
"terraform")
.build());
}
}
resources:
main:
type: scaleway:VpcPublicGateway
properties:
name: public_gateway_demo
type: VPC-GW-S
tags:
- demo
- terraform
Create VpcPublicGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPublicGateway(name: string, args: VpcPublicGatewayArgs, opts?: CustomResourceOptions);
@overload
def VpcPublicGateway(resource_name: str,
args: VpcPublicGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPublicGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
bastion_enabled: Optional[bool] = None,
bastion_port: Optional[int] = None,
enable_smtp: Optional[bool] = None,
ip_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
refresh_ssh_keys: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
upstream_dns_servers: Optional[Sequence[str]] = None,
zone: Optional[str] = None)
func NewVpcPublicGateway(ctx *Context, name string, args VpcPublicGatewayArgs, opts ...ResourceOption) (*VpcPublicGateway, error)
public VpcPublicGateway(string name, VpcPublicGatewayArgs args, CustomResourceOptions? opts = null)
public VpcPublicGateway(String name, VpcPublicGatewayArgs args)
public VpcPublicGateway(String name, VpcPublicGatewayArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcPublicGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcPublicGatewayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcPublicGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPublicGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPublicGatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcPublicGatewayResource = new Scaleway.VpcPublicGateway("vpcPublicGatewayResource", new()
{
Type = "string",
BastionEnabled = false,
BastionPort = 0,
EnableSmtp = false,
IpId = "string",
Name = "string",
ProjectId = "string",
RefreshSshKeys = "string",
Tags = new[]
{
"string",
},
UpstreamDnsServers = new[]
{
"string",
},
Zone = "string",
});
example, err := scaleway.NewVpcPublicGateway(ctx, "vpcPublicGatewayResource", &scaleway.VpcPublicGatewayArgs{
Type: pulumi.String("string"),
BastionEnabled: pulumi.Bool(false),
BastionPort: pulumi.Int(0),
EnableSmtp: pulumi.Bool(false),
IpId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
RefreshSshKeys: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpstreamDnsServers: pulumi.StringArray{
pulumi.String("string"),
},
Zone: pulumi.String("string"),
})
var vpcPublicGatewayResource = new VpcPublicGateway("vpcPublicGatewayResource", VpcPublicGatewayArgs.builder()
.type("string")
.bastionEnabled(false)
.bastionPort(0)
.enableSmtp(false)
.ipId("string")
.name("string")
.projectId("string")
.refreshSshKeys("string")
.tags("string")
.upstreamDnsServers("string")
.zone("string")
.build());
vpc_public_gateway_resource = scaleway.VpcPublicGateway("vpcPublicGatewayResource",
type="string",
bastion_enabled=False,
bastion_port=0,
enable_smtp=False,
ip_id="string",
name="string",
project_id="string",
refresh_ssh_keys="string",
tags=["string"],
upstream_dns_servers=["string"],
zone="string")
const vpcPublicGatewayResource = new scaleway.VpcPublicGateway("vpcPublicGatewayResource", {
type: "string",
bastionEnabled: false,
bastionPort: 0,
enableSmtp: false,
ipId: "string",
name: "string",
projectId: "string",
refreshSshKeys: "string",
tags: ["string"],
upstreamDnsServers: ["string"],
zone: "string",
});
type: scaleway:VpcPublicGateway
properties:
bastionEnabled: false
bastionPort: 0
enableSmtp: false
ipId: string
name: string
projectId: string
refreshSshKeys: string
tags:
- string
type: string
upstreamDnsServers:
- string
zone: string
VpcPublicGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcPublicGateway resource accepts the following input properties:
- Type string
- The gateway type.
- Bastion
Enabled bool - Enable SSH bastion on the gateway.
- Bastion
Port int - The port on which the SSH bastion will listen.
- Enable
Smtp bool - Enable SMTP on the gateway.
- Ip
Id string - Attach an existing flexible IP to the gateway.
- Name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- Project
Id string project_id
) The ID of the project the public gateway is associated with.- Refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- List<string>
- The tags to associate with the Public Gateway.
- Upstream
Dns List<string>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- Zone string
zone
) The zone in which the Public Gateway should be created.
- Type string
- The gateway type.
- Bastion
Enabled bool - Enable SSH bastion on the gateway.
- Bastion
Port int - The port on which the SSH bastion will listen.
- Enable
Smtp bool - Enable SMTP on the gateway.
- Ip
Id string - Attach an existing flexible IP to the gateway.
- Name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- Project
Id string project_id
) The ID of the project the public gateway is associated with.- Refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- []string
- The tags to associate with the Public Gateway.
- Upstream
Dns []stringServers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- Zone string
zone
) The zone in which the Public Gateway should be created.
- type String
- The gateway type.
- bastion
Enabled Boolean - Enable SSH bastion on the gateway.
- bastion
Port Integer - The port on which the SSH bastion will listen.
- enable
Smtp Boolean - Enable SMTP on the gateway.
- ip
Id String - Attach an existing flexible IP to the gateway.
- name String
- The name for the Public Gateway. If not provided it will be randomly generated.
- project
Id String project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh StringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- List<String>
- The tags to associate with the Public Gateway.
- upstream
Dns List<String>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone String
zone
) The zone in which the Public Gateway should be created.
- type string
- The gateway type.
- bastion
Enabled boolean - Enable SSH bastion on the gateway.
- bastion
Port number - The port on which the SSH bastion will listen.
- enable
Smtp boolean - Enable SMTP on the gateway.
- ip
Id string - Attach an existing flexible IP to the gateway.
- name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- project
Id string project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- string[]
- The tags to associate with the Public Gateway.
- upstream
Dns string[]Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone string
zone
) The zone in which the Public Gateway should be created.
- type str
- The gateway type.
- bastion_
enabled bool - Enable SSH bastion on the gateway.
- bastion_
port int - The port on which the SSH bastion will listen.
- enable_
smtp bool - Enable SMTP on the gateway.
- ip_
id str - Attach an existing flexible IP to the gateway.
- name str
- The name for the Public Gateway. If not provided it will be randomly generated.
- project_
id str project_id
) The ID of the project the public gateway is associated with.- refresh_
ssh_ strkeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- Sequence[str]
- The tags to associate with the Public Gateway.
- upstream_
dns_ Sequence[str]servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone str
zone
) The zone in which the Public Gateway should be created.
- type String
- The gateway type.
- bastion
Enabled Boolean - Enable SSH bastion on the gateway.
- bastion
Port Number - The port on which the SSH bastion will listen.
- enable
Smtp Boolean - Enable SMTP on the gateway.
- ip
Id String - Attach an existing flexible IP to the gateway.
- name String
- The name for the Public Gateway. If not provided it will be randomly generated.
- project
Id String project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh StringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- List<String>
- The tags to associate with the Public Gateway.
- upstream
Dns List<String>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone String
zone
) The zone in which the Public Gateway should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPublicGateway resource produces the following output properties:
- Created
At string - The date and time of the creation of the Public Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the Public Gateway is associated with.
- Status string
- The status of the public gateway.
- Updated
At string - The date and time of the last update of the Public Gateway.
- Created
At string - The date and time of the creation of the Public Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the Public Gateway is associated with.
- Status string
- The status of the public gateway.
- Updated
At string - The date and time of the last update of the Public Gateway.
- created
At String - The date and time of the creation of the Public Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the Public Gateway is associated with.
- status String
- The status of the public gateway.
- updated
At String - The date and time of the last update of the Public Gateway.
- created
At string - The date and time of the creation of the Public Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The Organization ID the Public Gateway is associated with.
- status string
- The status of the public gateway.
- updated
At string - The date and time of the last update of the Public Gateway.
- created_
at str - The date and time of the creation of the Public Gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The Organization ID the Public Gateway is associated with.
- status str
- The status of the public gateway.
- updated_
at str - The date and time of the last update of the Public Gateway.
- created
At String - The date and time of the creation of the Public Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the Public Gateway is associated with.
- status String
- The status of the public gateway.
- updated
At String - The date and time of the last update of the Public Gateway.
Look up Existing VpcPublicGateway Resource
Get an existing VpcPublicGateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcPublicGatewayState, opts?: CustomResourceOptions): VpcPublicGateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bastion_enabled: Optional[bool] = None,
bastion_port: Optional[int] = None,
created_at: Optional[str] = None,
enable_smtp: Optional[bool] = None,
ip_id: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
refresh_ssh_keys: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
upstream_dns_servers: Optional[Sequence[str]] = None,
zone: Optional[str] = None) -> VpcPublicGateway
func GetVpcPublicGateway(ctx *Context, name string, id IDInput, state *VpcPublicGatewayState, opts ...ResourceOption) (*VpcPublicGateway, error)
public static VpcPublicGateway Get(string name, Input<string> id, VpcPublicGatewayState? state, CustomResourceOptions? opts = null)
public static VpcPublicGateway get(String name, Output<String> id, VpcPublicGatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bastion
Enabled bool - Enable SSH bastion on the gateway.
- Bastion
Port int - The port on which the SSH bastion will listen.
- Created
At string - The date and time of the creation of the Public Gateway.
- Enable
Smtp bool - Enable SMTP on the gateway.
- Ip
Id string - Attach an existing flexible IP to the gateway.
- Name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- Organization
Id string - The Organization ID the Public Gateway is associated with.
- Project
Id string project_id
) The ID of the project the public gateway is associated with.- Refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- Status string
- The status of the public gateway.
- List<string>
- The tags to associate with the Public Gateway.
- Type string
- The gateway type.
- Updated
At string - The date and time of the last update of the Public Gateway.
- Upstream
Dns List<string>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- Zone string
zone
) The zone in which the Public Gateway should be created.
- Bastion
Enabled bool - Enable SSH bastion on the gateway.
- Bastion
Port int - The port on which the SSH bastion will listen.
- Created
At string - The date and time of the creation of the Public Gateway.
- Enable
Smtp bool - Enable SMTP on the gateway.
- Ip
Id string - Attach an existing flexible IP to the gateway.
- Name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- Organization
Id string - The Organization ID the Public Gateway is associated with.
- Project
Id string project_id
) The ID of the project the public gateway is associated with.- Refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- Status string
- The status of the public gateway.
- []string
- The tags to associate with the Public Gateway.
- Type string
- The gateway type.
- Updated
At string - The date and time of the last update of the Public Gateway.
- Upstream
Dns []stringServers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- Zone string
zone
) The zone in which the Public Gateway should be created.
- bastion
Enabled Boolean - Enable SSH bastion on the gateway.
- bastion
Port Integer - The port on which the SSH bastion will listen.
- created
At String - The date and time of the creation of the Public Gateway.
- enable
Smtp Boolean - Enable SMTP on the gateway.
- ip
Id String - Attach an existing flexible IP to the gateway.
- name String
- The name for the Public Gateway. If not provided it will be randomly generated.
- organization
Id String - The Organization ID the Public Gateway is associated with.
- project
Id String project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh StringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- status String
- The status of the public gateway.
- List<String>
- The tags to associate with the Public Gateway.
- type String
- The gateway type.
- updated
At String - The date and time of the last update of the Public Gateway.
- upstream
Dns List<String>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone String
zone
) The zone in which the Public Gateway should be created.
- bastion
Enabled boolean - Enable SSH bastion on the gateway.
- bastion
Port number - The port on which the SSH bastion will listen.
- created
At string - The date and time of the creation of the Public Gateway.
- enable
Smtp boolean - Enable SMTP on the gateway.
- ip
Id string - Attach an existing flexible IP to the gateway.
- name string
- The name for the Public Gateway. If not provided it will be randomly generated.
- organization
Id string - The Organization ID the Public Gateway is associated with.
- project
Id string project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh stringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- status string
- The status of the public gateway.
- string[]
- The tags to associate with the Public Gateway.
- type string
- The gateway type.
- updated
At string - The date and time of the last update of the Public Gateway.
- upstream
Dns string[]Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone string
zone
) The zone in which the Public Gateway should be created.
- bastion_
enabled bool - Enable SSH bastion on the gateway.
- bastion_
port int - The port on which the SSH bastion will listen.
- created_
at str - The date and time of the creation of the Public Gateway.
- enable_
smtp bool - Enable SMTP on the gateway.
- ip_
id str - Attach an existing flexible IP to the gateway.
- name str
- The name for the Public Gateway. If not provided it will be randomly generated.
- organization_
id str - The Organization ID the Public Gateway is associated with.
- project_
id str project_id
) The ID of the project the public gateway is associated with.- refresh_
ssh_ strkeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- status str
- The status of the public gateway.
- Sequence[str]
- The tags to associate with the Public Gateway.
- type str
- The gateway type.
- updated_
at str - The date and time of the last update of the Public Gateway.
- upstream_
dns_ Sequence[str]servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone str
zone
) The zone in which the Public Gateway should be created.
- bastion
Enabled Boolean - Enable SSH bastion on the gateway.
- bastion
Port Number - The port on which the SSH bastion will listen.
- created
At String - The date and time of the creation of the Public Gateway.
- enable
Smtp Boolean - Enable SMTP on the gateway.
- ip
Id String - Attach an existing flexible IP to the gateway.
- name String
- The name for the Public Gateway. If not provided it will be randomly generated.
- organization
Id String - The Organization ID the Public Gateway is associated with.
- project
Id String project_id
) The ID of the project the public gateway is associated with.- refresh
Ssh StringKeys - Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
- status String
- The status of the public gateway.
- List<String>
- The tags to associate with the Public Gateway.
- type String
- The gateway type.
- updated
At String - The date and time of the last update of the Public Gateway.
- upstream
Dns List<String>Servers - Override the gateway's default recursive DNS servers, if DNS features are enabled.
- zone String
zone
) The zone in which the Public Gateway should be created.
Import
Public Gateways can be imported using {zone}/{id}
, e.g.
bash
$ pulumi import scaleway:index/vpcPublicGateway:VpcPublicGateway main fr-par-1/11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.