1. Packages
  2. Scaleway
  3. API Docs
  4. VpcPublicGatewayIpReverseDns
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.VpcPublicGatewayIpReverseDns

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Manages Scaleway Public Gateway public (flexible) IPs’ reverse DNS. 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", {});
    const tfA = new scaleway.DomainRecord("tf_A", {
        dnsZone: "example.com",
        name: "tf",
        type: "A",
        data: main.address,
        ttl: 3600,
        priority: 1,
    });
    const mainVpcPublicGatewayIpReverseDns = new scaleway.VpcPublicGatewayIpReverseDns("main", {
        gatewayIpId: main.id,
        reverse: "tf.example.com",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.VpcPublicGatewayIp("main")
    tf_a = scaleway.DomainRecord("tf_A",
        dns_zone="example.com",
        name="tf",
        type="A",
        data=main.address,
        ttl=3600,
        priority=1)
    main_vpc_public_gateway_ip_reverse_dns = scaleway.VpcPublicGatewayIpReverseDns("main",
        gateway_ip_id=main.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 {
    		main, err := scaleway.NewVpcPublicGatewayIp(ctx, "main", nil)
    		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
    		}
    		_, err = scaleway.NewVpcPublicGatewayIpReverseDns(ctx, "main", &scaleway.VpcPublicGatewayIpReverseDnsArgs{
    			GatewayIpId: main.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 main = new Scaleway.VpcPublicGatewayIp("main");
    
        var tfA = new Scaleway.DomainRecord("tf_A", new()
        {
            DnsZone = "example.com",
            Name = "tf",
            Type = "A",
            Data = main.Address,
            Ttl = 3600,
            Priority = 1,
        });
    
        var mainVpcPublicGatewayIpReverseDns = new Scaleway.VpcPublicGatewayIpReverseDns("main", new()
        {
            GatewayIpId = main.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 main = new VpcPublicGatewayIp("main");
    
            var tfA = new DomainRecord("tfA", DomainRecordArgs.builder()
                .dnsZone("example.com")
                .name("tf")
                .type("A")
                .data(main.address())
                .ttl(3600)
                .priority(1)
                .build());
    
            var mainVpcPublicGatewayIpReverseDns = new VpcPublicGatewayIpReverseDns("mainVpcPublicGatewayIpReverseDns", VpcPublicGatewayIpReverseDnsArgs.builder()
                .gatewayIpId(main.id())
                .reverse("tf.example.com")
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:VpcPublicGatewayIp
      tfA:
        type: scaleway:DomainRecord
        name: tf_A
        properties:
          dnsZone: example.com
          name: tf
          type: A
          data: ${main.address}
          ttl: 3600
          priority: 1
      mainVpcPublicGatewayIpReverseDns:
        type: scaleway:VpcPublicGatewayIpReverseDns
        name: main
        properties:
          gatewayIpId: ${main.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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcPublicGatewayIpReverseDns resource accepts the following input properties:

    GatewayIpId string
    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.
    GatewayIpId string
    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.
    gatewayIpId String
    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.
    gatewayIpId string
    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_id str
    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.
    gatewayIpId String
    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.
    The following state arguments are supported:
    GatewayIpId string
    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.
    GatewayIpId string
    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.
    gatewayIpId String
    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.
    gatewayIpId string
    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_id str
    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.
    gatewayIpId String
    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 IP reverse DNS can be imported using {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.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse