scaleway.VpcPublicGatewayIp
Explore with Pulumi AI
Creates and manages Scaleway VPC Public Gateway public (flexible) IP addresses. For more information, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.VpcPublicGatewayIp("main", {reverse: "tf.example.com"});
const tfA = new scaleway.DomainRecord("tf_A", {
dnsZone: "example.com",
name: "tf",
type: "A",
data: main.address,
ttl: 3600,
priority: 1,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.VpcPublicGatewayIp("main", reverse="tf.example.com")
tf_a = scaleway.DomainRecord("tf_A",
dns_zone="example.com",
name="tf",
type="A",
data=main.address,
ttl=3600,
priority=1)
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 {
main, err := scaleway.NewVpcPublicGatewayIp(ctx, "main", &scaleway.VpcPublicGatewayIpArgs{
Reverse: pulumi.String("tf.example.com"),
})
if err != nil {
return err
}
_, err = scaleway.NewDomainRecord(ctx, "tf_A", &scaleway.DomainRecordArgs{
DnsZone: pulumi.String("example.com"),
Name: pulumi.String("tf"),
Type: pulumi.String("A"),
Data: main.Address,
Ttl: pulumi.Int(3600),
Priority: pulumi.Int(1),
})
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.VpcPublicGatewayIp("main", new()
{
Reverse = "tf.example.com",
});
var tfA = new Scaleway.DomainRecord("tf_A", new()
{
DnsZone = "example.com",
Name = "tf",
Type = "A",
Data = main.Address,
Ttl = 3600,
Priority = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.VpcPublicGatewayIp;
import com.pulumi.scaleway.VpcPublicGatewayIpArgs;
import com.pulumi.scaleway.DomainRecord;
import com.pulumi.scaleway.DomainRecordArgs;
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 VpcPublicGatewayIp("main", VpcPublicGatewayIpArgs.builder()
.reverse("tf.example.com")
.build());
var tfA = new DomainRecord("tfA", DomainRecordArgs.builder()
.dnsZone("example.com")
.name("tf")
.type("A")
.data(main.address())
.ttl(3600)
.priority(1)
.build());
}
}
resources:
tfA:
type: scaleway:DomainRecord
name: tf_A
properties:
dnsZone: example.com
name: tf
type: A
data: ${main.address}
ttl: 3600
priority: 1
main:
type: scaleway:VpcPublicGatewayIp
properties:
reverse: tf.example.com
Create VpcPublicGatewayIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPublicGatewayIp(name: string, args?: VpcPublicGatewayIpArgs, opts?: CustomResourceOptions);
@overload
def VpcPublicGatewayIp(resource_name: str,
args: Optional[VpcPublicGatewayIpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPublicGatewayIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
reverse: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None)
func NewVpcPublicGatewayIp(ctx *Context, name string, args *VpcPublicGatewayIpArgs, opts ...ResourceOption) (*VpcPublicGatewayIp, error)
public VpcPublicGatewayIp(string name, VpcPublicGatewayIpArgs? args = null, CustomResourceOptions? opts = null)
public VpcPublicGatewayIp(String name, VpcPublicGatewayIpArgs args)
public VpcPublicGatewayIp(String name, VpcPublicGatewayIpArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGatewayIp
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 VpcPublicGatewayIpArgs
- 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 VpcPublicGatewayIpArgs
- 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 VpcPublicGatewayIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPublicGatewayIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPublicGatewayIpArgs
- 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 vpcPublicGatewayIpResource = new Scaleway.VpcPublicGatewayIp("vpcPublicGatewayIpResource", new()
{
ProjectId = "string",
Reverse = "string",
Tags = new[]
{
"string",
},
Zone = "string",
});
example, err := scaleway.NewVpcPublicGatewayIp(ctx, "vpcPublicGatewayIpResource", &scaleway.VpcPublicGatewayIpArgs{
ProjectId: pulumi.String("string"),
Reverse: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Zone: pulumi.String("string"),
})
var vpcPublicGatewayIpResource = new VpcPublicGatewayIp("vpcPublicGatewayIpResource", VpcPublicGatewayIpArgs.builder()
.projectId("string")
.reverse("string")
.tags("string")
.zone("string")
.build());
vpc_public_gateway_ip_resource = scaleway.VpcPublicGatewayIp("vpcPublicGatewayIpResource",
project_id="string",
reverse="string",
tags=["string"],
zone="string")
const vpcPublicGatewayIpResource = new scaleway.VpcPublicGatewayIp("vpcPublicGatewayIpResource", {
projectId: "string",
reverse: "string",
tags: ["string"],
zone: "string",
});
type: scaleway:VpcPublicGatewayIp
properties:
projectId: string
reverse: string
tags:
- string
zone: string
VpcPublicGatewayIp 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 VpcPublicGatewayIp resource accepts the following input properties:
- project_
id str project_id
) The ID of the Project the Public Gateway IP is associated with.- reverse str
- The reverse domain name for the IP address
- Sequence[str]
- The tags associated with the Public Gateway IP.
- zone str
zone
) The zone in which the Public Gateway IP should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPublicGatewayIp resource produces the following output properties:
- Address string
- The IP address itself.
- Created
At string - The date and time of the creation of the Public Gateway IP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the Public Gateway IP is associated with.
- Updated
At string - The date and time of the last update of the Public Gateway IP.
- Address string
- The IP address itself.
- Created
At string - The date and time of the creation of the Public Gateway IP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the Public Gateway IP is associated with.
- Updated
At string - The date and time of the last update of the Public Gateway IP.
- address String
- The IP address itself.
- created
At String - The date and time of the creation of the Public Gateway IP.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the Public Gateway IP is associated with.
- updated
At String - The date and time of the last update of the Public Gateway IP.
- address string
- The IP address itself.
- created
At string - The date and time of the creation of the Public Gateway IP.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The Organization ID the Public Gateway IP is associated with.
- updated
At string - The date and time of the last update of the Public Gateway IP.
- address str
- The IP address itself.
- created_
at str - The date and time of the creation of the Public Gateway IP.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The Organization ID the Public Gateway IP is associated with.
- updated_
at str - The date and time of the last update of the Public Gateway IP.
- address String
- The IP address itself.
- created
At String - The date and time of the creation of the Public Gateway IP.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the Public Gateway IP is associated with.
- updated
At String - The date and time of the last update of the Public Gateway IP.
Look up Existing VpcPublicGatewayIp Resource
Get an existing VpcPublicGatewayIp 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?: VpcPublicGatewayIpState, opts?: CustomResourceOptions): VpcPublicGatewayIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
created_at: Optional[str] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
reverse: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
zone: Optional[str] = None) -> VpcPublicGatewayIp
func GetVpcPublicGatewayIp(ctx *Context, name string, id IDInput, state *VpcPublicGatewayIpState, opts ...ResourceOption) (*VpcPublicGatewayIp, error)
public static VpcPublicGatewayIp Get(string name, Input<string> id, VpcPublicGatewayIpState? state, CustomResourceOptions? opts = null)
public static VpcPublicGatewayIp get(String name, Output<String> id, VpcPublicGatewayIpState 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.
- Address string
- The IP address itself.
- Created
At string - The date and time of the creation of the Public Gateway IP.
- Organization
Id string - The Organization ID the Public Gateway IP is associated with.
- Project
Id string project_id
) The ID of the Project the Public Gateway IP is associated with.- Reverse string
- The reverse domain name for the IP address
- List<string>
- The tags associated with the Public Gateway IP.
- Updated
At string - The date and time of the last update of the Public Gateway IP.
- Zone string
zone
) The zone in which the Public Gateway IP should be created.
- Address string
- The IP address itself.
- Created
At string - The date and time of the creation of the Public Gateway IP.
- Organization
Id string - The Organization ID the Public Gateway IP is associated with.
- Project
Id string project_id
) The ID of the Project the Public Gateway IP is associated with.- Reverse string
- The reverse domain name for the IP address
- []string
- The tags associated with the Public Gateway IP.
- Updated
At string - The date and time of the last update of the Public Gateway IP.
- Zone string
zone
) The zone in which the Public Gateway IP should be created.
- address String
- The IP address itself.
- created
At String - The date and time of the creation of the Public Gateway IP.
- organization
Id String - The Organization ID the Public Gateway IP is associated with.
- project
Id String project_id
) The ID of the Project the Public Gateway IP is associated with.- reverse String
- The reverse domain name for the IP address
- List<String>
- The tags associated with the Public Gateway IP.
- updated
At String - The date and time of the last update of the Public Gateway IP.
- zone String
zone
) The zone in which the Public Gateway IP should be created.
- address string
- The IP address itself.
- created
At string - The date and time of the creation of the Public Gateway IP.
- organization
Id string - The Organization ID the Public Gateway IP is associated with.
- project
Id string project_id
) The ID of the Project the Public Gateway IP is associated with.- reverse string
- The reverse domain name for the IP address
- string[]
- The tags associated with the Public Gateway IP.
- updated
At string - The date and time of the last update of the Public Gateway IP.
- zone string
zone
) The zone in which the Public Gateway IP should be created.
- address str
- The IP address itself.
- created_
at str - The date and time of the creation of the Public Gateway IP.
- organization_
id str - The Organization ID the Public Gateway IP is associated with.
- project_
id str project_id
) The ID of the Project the Public Gateway IP is associated with.- reverse str
- The reverse domain name for the IP address
- Sequence[str]
- The tags associated with the Public Gateway IP.
- updated_
at str - The date and time of the last update of the Public Gateway IP.
- zone str
zone
) The zone in which the Public Gateway IP should be created.
- address String
- The IP address itself.
- created
At String - The date and time of the creation of the Public Gateway IP.
- organization
Id String - The Organization ID the Public Gateway IP is associated with.
- project
Id String project_id
) The ID of the Project the Public Gateway IP is associated with.- reverse String
- The reverse domain name for the IP address
- List<String>
- The tags associated with the Public Gateway IP.
- updated
At String - The date and time of the last update of the Public Gateway IP.
- zone String
zone
) The zone in which the Public Gateway IP should be created.
Import
Public Gateway IPs can be imported using {zone}/{id}
, e.g.
bash
$ pulumi import scaleway:index/vpcPublicGatewayIp:VpcPublicGatewayIp 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.