scaleway.VpcPublicGatewayIp
Explore with Pulumi AI
Creates and manages Scaleway VPC Public Gateway IP. For more information, see the documentation.
Example
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const main = new scaleway.VpcPublicGatewayIp("main", {reverse: "tf.example.com"});
const tfA = new scaleway.DomainRecord("tfA", {
data: main.address,
dnsZone: "example.com",
priority: 1,
ttl: 3600,
type: "A",
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
main = scaleway.VpcPublicGatewayIp("main", reverse="tf.example.com")
tf_a = scaleway.DomainRecord("tfA",
data=main.address,
dns_zone="example.com",
priority=1,
ttl=3600,
type="A")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.VpcPublicGatewayIp("main", new()
{
Reverse = "tf.example.com",
});
var tfA = new Scaleway.DomainRecord("tfA", new()
{
Data = main.Address,
DnsZone = "example.com",
Priority = 1,
Ttl = 3600,
Type = "A",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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, "tfA", &scaleway.DomainRecordArgs{
Data: main.Address,
DnsZone: pulumi.String("example.com"),
Priority: pulumi.Int(1),
Ttl: pulumi.Int(3600),
Type: pulumi.String("A"),
})
if err != nil {
return err
}
return nil
})
}
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()
.data(main.address())
.dnsZone("example.com")
.priority(1)
.ttl(3600)
.type("A")
.build());
}
}
resources:
tfA:
type: scaleway:DomainRecord
properties:
data: ${main.address}
dnsZone: example.com
priority: 1
ttl: 3600
type: A
main:
type: scaleway:VpcPublicGatewayIp
properties:
reverse: tf.example.com
Create VpcPublicGatewayIp Resource
new VpcPublicGatewayIp(name: string, args?: VpcPublicGatewayIpArgs, opts?: CustomResourceOptions);
@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)
@overload
def VpcPublicGatewayIp(resource_name: str,
args: Optional[VpcPublicGatewayIpArgs] = None,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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 can be imported using the {zone}/{id}
, e.g. bash
$ pulumi import scaleway:index/vpcPublicGatewayIp:VpcPublicGatewayIp main fr-par-1/11111111-1111-1111-1111-111111111111
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.