scaleway.VpcPublicGatewayIpReverseDns
Explore with Pulumi AI
Manages Scaleway VPC Public Gateways IPs reverse DNS. For more information, see the documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const mainVpcPublicGatewayIp = new scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp", {});
const tfA = new scaleway.DomainRecord("tfA", {
dnsZone: "example.com",
type: "A",
data: mainVpcPublicGatewayIp.address,
ttl: 3600,
priority: 1,
});
const mainVpcPublicGatewayIpReverseDns = new scaleway.VpcPublicGatewayIpReverseDns("mainVpcPublicGatewayIpReverseDns", {
gatewayIpId: mainVpcPublicGatewayIp.id,
reverse: "tf.example.com",
});
import pulumi
import pulumiverse_scaleway as scaleway
main_vpc_public_gateway_ip = scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp")
tf_a = scaleway.DomainRecord("tfA",
dns_zone="example.com",
type="A",
data=main_vpc_public_gateway_ip.address,
ttl=3600,
priority=1)
main_vpc_public_gateway_ip_reverse_dns = scaleway.VpcPublicGatewayIpReverseDns("mainVpcPublicGatewayIpReverseDns",
gateway_ip_id=main_vpc_public_gateway_ip.id,
reverse="tf.example.com")
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 {
mainVpcPublicGatewayIp, err := scaleway.NewVpcPublicGatewayIp(ctx, "mainVpcPublicGatewayIp", nil)
if err != nil {
return err
}
_, err = scaleway.NewDomainRecord(ctx, "tfA", &scaleway.DomainRecordArgs{
DnsZone: pulumi.String("example.com"),
Type: pulumi.String("A"),
Data: mainVpcPublicGatewayIp.Address,
Ttl: pulumi.Int(3600),
Priority: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = scaleway.NewVpcPublicGatewayIpReverseDns(ctx, "mainVpcPublicGatewayIpReverseDns", &scaleway.VpcPublicGatewayIpReverseDnsArgs{
GatewayIpId: mainVpcPublicGatewayIp.ID(),
Reverse: pulumi.String("tf.example.com"),
})
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 mainVpcPublicGatewayIp = new Scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp");
var tfA = new Scaleway.DomainRecord("tfA", new()
{
DnsZone = "example.com",
Type = "A",
Data = mainVpcPublicGatewayIp.Address,
Ttl = 3600,
Priority = 1,
});
var mainVpcPublicGatewayIpReverseDns = new Scaleway.VpcPublicGatewayIpReverseDns("mainVpcPublicGatewayIpReverseDns", new()
{
GatewayIpId = mainVpcPublicGatewayIp.Id,
Reverse = "tf.example.com",
});
});
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.DomainRecord;
import com.pulumi.scaleway.DomainRecordArgs;
import com.pulumi.scaleway.VpcPublicGatewayIpReverseDns;
import com.pulumi.scaleway.VpcPublicGatewayIpReverseDnsArgs;
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 mainVpcPublicGatewayIp = new VpcPublicGatewayIp("mainVpcPublicGatewayIp");
var tfA = new DomainRecord("tfA", DomainRecordArgs.builder()
.dnsZone("example.com")
.type("A")
.data(mainVpcPublicGatewayIp.address())
.ttl(3600)
.priority(1)
.build());
var mainVpcPublicGatewayIpReverseDns = new VpcPublicGatewayIpReverseDns("mainVpcPublicGatewayIpReverseDns", VpcPublicGatewayIpReverseDnsArgs.builder()
.gatewayIpId(mainVpcPublicGatewayIp.id())
.reverse("tf.example.com")
.build());
}
}
resources:
mainVpcPublicGatewayIp:
type: scaleway:VpcPublicGatewayIp
tfA:
type: scaleway:DomainRecord
properties:
dnsZone: example.com
type: A
data: ${mainVpcPublicGatewayIp.address}
ttl: 3600
priority: 1
mainVpcPublicGatewayIpReverseDns:
type: scaleway:VpcPublicGatewayIpReverseDns
properties:
gatewayIpId: ${mainVpcPublicGatewayIp.id}
reverse: tf.example.com
Create VpcPublicGatewayIpReverseDns Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPublicGatewayIpReverseDns(name: string, args: VpcPublicGatewayIpReverseDnsArgs, opts?: CustomResourceOptions);
@overload
def VpcPublicGatewayIpReverseDns(resource_name: str,
args: VpcPublicGatewayIpReverseDnsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPublicGatewayIpReverseDns(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_ip_id: Optional[str] = None,
reverse: Optional[str] = None,
zone: Optional[str] = None)
func NewVpcPublicGatewayIpReverseDns(ctx *Context, name string, args VpcPublicGatewayIpReverseDnsArgs, opts ...ResourceOption) (*VpcPublicGatewayIpReverseDns, error)
public VpcPublicGatewayIpReverseDns(string name, VpcPublicGatewayIpReverseDnsArgs args, CustomResourceOptions? opts = null)
public VpcPublicGatewayIpReverseDns(String name, VpcPublicGatewayIpReverseDnsArgs args)
public VpcPublicGatewayIpReverseDns(String name, VpcPublicGatewayIpReverseDnsArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGatewayIpReverseDns
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 VpcPublicGatewayIpReverseDnsArgs
- 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 VpcPublicGatewayIpReverseDnsArgs
- 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 VpcPublicGatewayIpReverseDnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPublicGatewayIpReverseDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPublicGatewayIpReverseDnsArgs
- 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 vpcPublicGatewayIpReverseDnsResource = new Scaleway.VpcPublicGatewayIpReverseDns("vpcPublicGatewayIpReverseDnsResource", new()
{
GatewayIpId = "string",
Reverse = "string",
Zone = "string",
});
example, err := scaleway.NewVpcPublicGatewayIpReverseDns(ctx, "vpcPublicGatewayIpReverseDnsResource", &scaleway.VpcPublicGatewayIpReverseDnsArgs{
GatewayIpId: pulumi.String("string"),
Reverse: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var vpcPublicGatewayIpReverseDnsResource = new VpcPublicGatewayIpReverseDns("vpcPublicGatewayIpReverseDnsResource", VpcPublicGatewayIpReverseDnsArgs.builder()
.gatewayIpId("string")
.reverse("string")
.zone("string")
.build());
vpc_public_gateway_ip_reverse_dns_resource = scaleway.VpcPublicGatewayIpReverseDns("vpcPublicGatewayIpReverseDnsResource",
gateway_ip_id="string",
reverse="string",
zone="string")
const vpcPublicGatewayIpReverseDnsResource = new scaleway.VpcPublicGatewayIpReverseDns("vpcPublicGatewayIpReverseDnsResource", {
gatewayIpId: "string",
reverse: "string",
zone: "string",
});
type: scaleway:VpcPublicGatewayIpReverseDns
properties:
gatewayIpId: string
reverse: string
zone: string
VpcPublicGatewayIpReverseDns 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 VpcPublicGatewayIpReverseDns resource accepts the following input properties:
- Gateway
Ip stringId - The public gateway IP ID
- Reverse string
- The reverse domain name for this IP address
- Zone string
zone
) The zone in which the IP should be reserved.
- Gateway
Ip stringId - The public gateway IP ID
- Reverse string
- The reverse domain name for this IP address
- Zone string
zone
) The zone in which the IP should be reserved.
- gateway
Ip StringId - The public gateway IP ID
- reverse String
- The reverse domain name for this IP address
- zone String
zone
) The zone in which the IP should be reserved.
- gateway
Ip stringId - The public gateway IP ID
- reverse string
- The reverse domain name for this IP address
- zone string
zone
) The zone in which the IP should be reserved.
- gateway_
ip_ strid - The public gateway IP ID
- reverse str
- The reverse domain name for this IP address
- zone str
zone
) The zone in which the IP should be reserved.
- gateway
Ip StringId - The public gateway IP ID
- reverse String
- The reverse domain name for this IP address
- zone String
zone
) The zone in which the IP should be reserved.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcPublicGatewayIpReverseDns resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcPublicGatewayIpReverseDns Resource
Get an existing VpcPublicGatewayIpReverseDns 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?: VpcPublicGatewayIpReverseDnsState, opts?: CustomResourceOptions): VpcPublicGatewayIpReverseDns
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
gateway_ip_id: Optional[str] = None,
reverse: Optional[str] = None,
zone: Optional[str] = None) -> VpcPublicGatewayIpReverseDns
func GetVpcPublicGatewayIpReverseDns(ctx *Context, name string, id IDInput, state *VpcPublicGatewayIpReverseDnsState, opts ...ResourceOption) (*VpcPublicGatewayIpReverseDns, error)
public static VpcPublicGatewayIpReverseDns Get(string name, Input<string> id, VpcPublicGatewayIpReverseDnsState? state, CustomResourceOptions? opts = null)
public static VpcPublicGatewayIpReverseDns get(String name, Output<String> id, VpcPublicGatewayIpReverseDnsState 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.
- Gateway
Ip stringId - The public gateway IP ID
- Reverse string
- The reverse domain name for this IP address
- Zone string
zone
) The zone in which the IP should be reserved.
- Gateway
Ip stringId - The public gateway IP ID
- Reverse string
- The reverse domain name for this IP address
- Zone string
zone
) The zone in which the IP should be reserved.
- gateway
Ip StringId - The public gateway IP ID
- reverse String
- The reverse domain name for this IP address
- zone String
zone
) The zone in which the IP should be reserved.
- gateway
Ip stringId - The public gateway IP ID
- reverse string
- The reverse domain name for this IP address
- zone string
zone
) The zone in which the IP should be reserved.
- gateway_
ip_ strid - The public gateway IP ID
- reverse str
- The reverse domain name for this IP address
- zone str
zone
) The zone in which the IP should be reserved.
- gateway
Ip StringId - The public gateway IP ID
- reverse String
- The reverse domain name for this IP address
- zone String
zone
) The zone in which the IP should be reserved.
Import
Public gateway IPs reverse DNS can be imported using the {zone}/{id}
, e.g.
bash
$ pulumi import scaleway:index/vpcPublicGatewayIpReverseDns:VpcPublicGatewayIpReverseDns reverse 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.