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

scaleway.VpcPublicGatewayIp

Explore with Pulumi AI

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

    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:

    ProjectId 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
    Tags List<string>
    The tags associated with the Public Gateway IP.
    Zone string
    zone) The zone in which the Public Gateway IP should be created.
    ProjectId 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
    Tags []string
    The tags associated with the Public Gateway IP.
    Zone string
    zone) The zone in which the Public Gateway IP should be created.
    projectId 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
    tags List<String>
    The tags associated with the Public Gateway IP.
    zone String
    zone) The zone in which the Public Gateway IP should be created.
    projectId 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
    tags string[]
    The tags associated with the Public Gateway IP.
    zone string
    zone) The zone in which the Public Gateway IP should be created.
    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
    tags Sequence[str]
    The tags associated with the Public Gateway IP.
    zone str
    zone) The zone in which the Public Gateway IP should be created.
    projectId 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
    tags List<String>
    The tags associated with the Public Gateway IP.
    zone String
    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.
    CreatedAt string
    The date and time of the creation of the Public Gateway IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The Organization ID the Public Gateway IP is associated with.
    UpdatedAt string
    The date and time of the last update of the Public Gateway IP.
    Address string
    The IP address itself.
    CreatedAt string
    The date and time of the creation of the Public Gateway IP.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The Organization ID the Public Gateway IP is associated with.
    UpdatedAt string
    The date and time of the last update of the Public Gateway IP.
    address String
    The IP address itself.
    createdAt String
    The date and time of the creation of the Public Gateway IP.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The Organization ID the Public Gateway IP is associated with.
    updatedAt String
    The date and time of the last update of the Public Gateway IP.
    address string
    The IP address itself.
    createdAt string
    The date and time of the creation of the Public Gateway IP.
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The Organization ID the Public Gateway IP is associated with.
    updatedAt 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.
    createdAt String
    The date and time of the creation of the Public Gateway IP.
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The Organization ID the Public Gateway IP is associated with.
    updatedAt 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.
    The following state arguments are supported:
    Address string
    The IP address itself.
    CreatedAt string
    The date and time of the creation of the Public Gateway IP.
    OrganizationId string
    The Organization ID the Public Gateway IP is associated with.
    ProjectId 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
    Tags List<string>
    The tags associated with the Public Gateway IP.
    UpdatedAt 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.
    CreatedAt string
    The date and time of the creation of the Public Gateway IP.
    OrganizationId string
    The Organization ID the Public Gateway IP is associated with.
    ProjectId 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
    Tags []string
    The tags associated with the Public Gateway IP.
    UpdatedAt 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.
    createdAt String
    The date and time of the creation of the Public Gateway IP.
    organizationId String
    The Organization ID the Public Gateway IP is associated with.
    projectId 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
    tags List<String>
    The tags associated with the Public Gateway IP.
    updatedAt 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.
    createdAt string
    The date and time of the creation of the Public Gateway IP.
    organizationId string
    The Organization ID the Public Gateway IP is associated with.
    projectId 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
    tags string[]
    The tags associated with the Public Gateway IP.
    updatedAt 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
    tags 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.
    createdAt String
    The date and time of the creation of the Public Gateway IP.
    organizationId String
    The Organization ID the Public Gateway IP is associated with.
    projectId 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
    tags List<String>
    The tags associated with the Public Gateway IP.
    updatedAt 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.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse