outscale.NatService
Explore with Pulumi AI
Manages a NAT service.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
Required resources
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const net01 = new outscale.Net("net01", {ipRange: "10.0.0.0/16"});
const subnet01 = new outscale.Subnet("subnet01", {
    netId: net01.netId,
    ipRange: "10.0.0.0/18",
});
const routeTable01 = new outscale.RouteTable("routeTable01", {netId: net01.netId});
const outscaleRouteTableLink01 = new outscale.RouteTableLink("outscaleRouteTableLink01", {
    subnetId: subnet01.subnetId,
    routeTableId: routeTable01.routeTableId,
});
const internetService01 = new outscale.InternetService("internetService01", {});
const internetServiceLink01 = new outscale.InternetServiceLink("internetServiceLink01", {
    netId: net01.netId,
    internetServiceId: internetService01.internetServiceId,
});
const route01 = new outscale.Route("route01", {
    destinationIpRange: "0.0.0.0/0",
    gatewayId: internetService01.internetServiceId,
    routeTableId: routeTable01.routeTableId,
}, {
    dependsOn: [internetServiceLink01],
});
const publicIp01 = new outscale.PublicIp("publicIp01", {});
import pulumi
import pulumi_outscale as outscale
net01 = outscale.Net("net01", ip_range="10.0.0.0/16")
subnet01 = outscale.Subnet("subnet01",
    net_id=net01.net_id,
    ip_range="10.0.0.0/18")
route_table01 = outscale.RouteTable("routeTable01", net_id=net01.net_id)
outscale_route_table_link01 = outscale.RouteTableLink("outscaleRouteTableLink01",
    subnet_id=subnet01.subnet_id,
    route_table_id=route_table01.route_table_id)
internet_service01 = outscale.InternetService("internetService01")
internet_service_link01 = outscale.InternetServiceLink("internetServiceLink01",
    net_id=net01.net_id,
    internet_service_id=internet_service01.internet_service_id)
route01 = outscale.Route("route01",
    destination_ip_range="0.0.0.0/0",
    gateway_id=internet_service01.internet_service_id,
    route_table_id=route_table01.route_table_id,
    opts = pulumi.ResourceOptions(depends_on=[internet_service_link01]))
public_ip01 = outscale.PublicIp("publicIp01")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		net01, err := outscale.NewNet(ctx, "net01", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		subnet01, err := outscale.NewSubnet(ctx, "subnet01", &outscale.SubnetArgs{
			NetId:   net01.NetId,
			IpRange: pulumi.String("10.0.0.0/18"),
		})
		if err != nil {
			return err
		}
		routeTable01, err := outscale.NewRouteTable(ctx, "routeTable01", &outscale.RouteTableArgs{
			NetId: net01.NetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewRouteTableLink(ctx, "outscaleRouteTableLink01", &outscale.RouteTableLinkArgs{
			SubnetId:     subnet01.SubnetId,
			RouteTableId: routeTable01.RouteTableId,
		})
		if err != nil {
			return err
		}
		internetService01, err := outscale.NewInternetService(ctx, "internetService01", nil)
		if err != nil {
			return err
		}
		internetServiceLink01, err := outscale.NewInternetServiceLink(ctx, "internetServiceLink01", &outscale.InternetServiceLinkArgs{
			NetId:             net01.NetId,
			InternetServiceId: internetService01.InternetServiceId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewRoute(ctx, "route01", &outscale.RouteArgs{
			DestinationIpRange: pulumi.String("0.0.0.0/0"),
			GatewayId:          internetService01.InternetServiceId,
			RouteTableId:       routeTable01.RouteTableId,
		}, pulumi.DependsOn([]pulumi.Resource{
			internetServiceLink01,
		}))
		if err != nil {
			return err
		}
		_, err = outscale.NewPublicIp(ctx, "publicIp01", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var net01 = new Outscale.Net("net01", new()
    {
        IpRange = "10.0.0.0/16",
    });
    var subnet01 = new Outscale.Subnet("subnet01", new()
    {
        NetId = net01.NetId,
        IpRange = "10.0.0.0/18",
    });
    var routeTable01 = new Outscale.RouteTable("routeTable01", new()
    {
        NetId = net01.NetId,
    });
    var outscaleRouteTableLink01 = new Outscale.RouteTableLink("outscaleRouteTableLink01", new()
    {
        SubnetId = subnet01.SubnetId,
        RouteTableId = routeTable01.RouteTableId,
    });
    var internetService01 = new Outscale.InternetService("internetService01");
    var internetServiceLink01 = new Outscale.InternetServiceLink("internetServiceLink01", new()
    {
        NetId = net01.NetId,
        InternetServiceId = internetService01.InternetServiceId,
    });
    var route01 = new Outscale.Route("route01", new()
    {
        DestinationIpRange = "0.0.0.0/0",
        GatewayId = internetService01.InternetServiceId,
        RouteTableId = routeTable01.RouteTableId,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            internetServiceLink01,
        },
    });
    var publicIp01 = new Outscale.PublicIp("publicIp01");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.RouteTable;
import com.pulumi.outscale.RouteTableArgs;
import com.pulumi.outscale.RouteTableLink;
import com.pulumi.outscale.RouteTableLinkArgs;
import com.pulumi.outscale.InternetService;
import com.pulumi.outscale.InternetServiceLink;
import com.pulumi.outscale.InternetServiceLinkArgs;
import com.pulumi.outscale.Route;
import com.pulumi.outscale.RouteArgs;
import com.pulumi.outscale.PublicIp;
import com.pulumi.resources.CustomResourceOptions;
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 net01 = new Net("net01", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .build());
        var subnet01 = new Subnet("subnet01", SubnetArgs.builder()
            .netId(net01.netId())
            .ipRange("10.0.0.0/18")
            .build());
        var routeTable01 = new RouteTable("routeTable01", RouteTableArgs.builder()
            .netId(net01.netId())
            .build());
        var outscaleRouteTableLink01 = new RouteTableLink("outscaleRouteTableLink01", RouteTableLinkArgs.builder()
            .subnetId(subnet01.subnetId())
            .routeTableId(routeTable01.routeTableId())
            .build());
        var internetService01 = new InternetService("internetService01");
        var internetServiceLink01 = new InternetServiceLink("internetServiceLink01", InternetServiceLinkArgs.builder()
            .netId(net01.netId())
            .internetServiceId(internetService01.internetServiceId())
            .build());
        var route01 = new Route("route01", RouteArgs.builder()
            .destinationIpRange("0.0.0.0/0")
            .gatewayId(internetService01.internetServiceId())
            .routeTableId(routeTable01.routeTableId())
            .build(), CustomResourceOptions.builder()
                .dependsOn(internetServiceLink01)
                .build());
        var publicIp01 = new PublicIp("publicIp01");
    }
}
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
  subnet01:
    type: outscale:Subnet
    properties:
      netId: ${net01.netId}
      ipRange: 10.0.0.0/18
  routeTable01:
    type: outscale:RouteTable
    properties:
      netId: ${net01.netId}
  outscaleRouteTableLink01:
    type: outscale:RouteTableLink
    properties:
      subnetId: ${subnet01.subnetId}
      routeTableId: ${routeTable01.routeTableId}
  internetService01:
    type: outscale:InternetService
  internetServiceLink01:
    type: outscale:InternetServiceLink
    properties:
      netId: ${net01.netId}
      internetServiceId: ${internetService01.internetServiceId}
  route01:
    type: outscale:Route
    properties:
      destinationIpRange: 0.0.0.0/0
      gatewayId: ${internetService01.internetServiceId}
      routeTableId: ${routeTable01.routeTableId}
    options:
      dependsOn:
        - ${internetServiceLink01}
  publicIp01:
    type: outscale:PublicIp
Create a NAT service
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const natService01 = new outscale.NatService("natService01", {
    subnetId: outscale_subnet.subnet01.subnet_id,
    publicIpId: outscale_public_ip.public_ip01.public_ip_id,
}, {
    dependsOn: [outscale_route.route01],
});
import pulumi
import pulumi_outscale as outscale
nat_service01 = outscale.NatService("natService01",
    subnet_id=outscale_subnet["subnet01"]["subnet_id"],
    public_ip_id=outscale_public_ip["public_ip01"]["public_ip_id"],
    opts = pulumi.ResourceOptions(depends_on=[outscale_route["route01"]]))
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewNatService(ctx, "natService01", &outscale.NatServiceArgs{
			SubnetId:   pulumi.Any(outscale_subnet.Subnet01.Subnet_id),
			PublicIpId: pulumi.Any(outscale_public_ip.Public_ip01.Public_ip_id),
		}, pulumi.DependsOn([]pulumi.Resource{
			outscale_route.Route01,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var natService01 = new Outscale.NatService("natService01", new()
    {
        SubnetId = outscale_subnet.Subnet01.Subnet_id,
        PublicIpId = outscale_public_ip.Public_ip01.Public_ip_id,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            outscale_route.Route01,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.NatService;
import com.pulumi.outscale.NatServiceArgs;
import com.pulumi.resources.CustomResourceOptions;
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 natService01 = new NatService("natService01", NatServiceArgs.builder()
            .subnetId(outscale_subnet.subnet01().subnet_id())
            .publicIpId(outscale_public_ip.public_ip01().public_ip_id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(outscale_route.route01())
                .build());
    }
}
resources:
  natService01:
    type: outscale:NatService
    properties:
      subnetId: ${outscale_subnet.subnet01.subnet_id}
      publicIpId: ${outscale_public_ip.public_ip01.public_ip_id}
    options:
      dependsOn:
        - ${outscale_route.route01}
Create NatService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatService(name: string, args: NatServiceArgs, opts?: CustomResourceOptions);@overload
def NatService(resource_name: str,
               args: NatServiceArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def NatService(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               public_ip_id: Optional[str] = None,
               subnet_id: Optional[str] = None,
               outscale_nat_service_id: Optional[str] = None,
               tags: Optional[Sequence[NatServiceTagArgs]] = None)func NewNatService(ctx *Context, name string, args NatServiceArgs, opts ...ResourceOption) (*NatService, error)public NatService(string name, NatServiceArgs args, CustomResourceOptions? opts = null)
public NatService(String name, NatServiceArgs args)
public NatService(String name, NatServiceArgs args, CustomResourceOptions options)
type: outscale:NatService
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 NatServiceArgs
- 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 NatServiceArgs
- 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 NatServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NatServiceArgs
- 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 natServiceResource = new Outscale.NatService("natServiceResource", new()
{
    PublicIpId = "string",
    SubnetId = "string",
    OutscaleNatServiceId = "string",
    Tags = new[]
    {
        new Outscale.Inputs.NatServiceTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := outscale.NewNatService(ctx, "natServiceResource", &outscale.NatServiceArgs{
PublicIpId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
OutscaleNatServiceId: pulumi.String("string"),
Tags: .NatServiceTagArray{
&.NatServiceTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var natServiceResource = new NatService("natServiceResource", NatServiceArgs.builder()
    .publicIpId("string")
    .subnetId("string")
    .outscaleNatServiceId("string")
    .tags(NatServiceTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
nat_service_resource = outscale.NatService("natServiceResource",
    public_ip_id="string",
    subnet_id="string",
    outscale_nat_service_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
const natServiceResource = new outscale.NatService("natServiceResource", {
    publicIpId: "string",
    subnetId: "string",
    outscaleNatServiceId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: outscale:NatService
properties:
    outscaleNatServiceId: string
    publicIpId: string
    subnetId: string
    tags:
        - key: string
          value: string
NatService 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 NatService resource accepts the following input properties:
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- SubnetId string
- The ID of the Subnet in which you want to create the NAT service.
- OutscaleNat stringService Id 
- 
List<NatService Tag> 
- A tag to add to this resource. You can specify this argument several times.
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- SubnetId string
- The ID of the Subnet in which you want to create the NAT service.
- OutscaleNat stringService Id 
- 
[]NatService Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- subnetId String
- The ID of the Subnet in which you want to create the NAT service.
- outscaleNat StringService Id 
- 
List<NatService Tag> 
- A tag to add to this resource. You can specify this argument several times.
- publicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- subnetId string
- The ID of the Subnet in which you want to create the NAT service.
- outscaleNat stringService Id 
- 
NatService Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- public_ip_ strid 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- subnet_id str
- The ID of the Subnet in which you want to create the NAT service.
- outscale_nat_ strservice_ id 
- 
Sequence[NatService Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- subnetId String
- The ID of the Subnet in which you want to create the NAT service.
- outscaleNat StringService Id 
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatService resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- PublicIps List<NatService Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- RequestId string
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- Id string
- The provider-assigned unique ID for this managed resource.
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- PublicIps []NatService Public Ip 
- Information about the public IP or IPs associated with the NAT service.
- RequestId string
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- id String
- The provider-assigned unique ID for this managed resource.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- publicIps List<NatService Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- requestId String
- state String
- The state of the NAT service (pending|available|deleting|deleted).
- id string
- The provider-assigned unique ID for this managed resource.
- natService stringId 
- The ID of the NAT service.
- netId string
- The ID of the Net in which the NAT service is.
- publicIps NatService Public Ip[] 
- Information about the public IP or IPs associated with the NAT service.
- requestId string
- state string
- The state of the NAT service (pending|available|deleting|deleted).
- id str
- The provider-assigned unique ID for this managed resource.
- nat_service_ strid 
- The ID of the NAT service.
- net_id str
- The ID of the Net in which the NAT service is.
- public_ips Sequence[NatService Public Ip] 
- Information about the public IP or IPs associated with the NAT service.
- request_id str
- state str
- The state of the NAT service (pending|available|deleting|deleted).
- id String
- The provider-assigned unique ID for this managed resource.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- publicIps List<Property Map>
- Information about the public IP or IPs associated with the NAT service.
- requestId String
- state String
- The state of the NAT service (pending|available|deleting|deleted).
Look up Existing NatService Resource
Get an existing NatService 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?: NatServiceState, opts?: CustomResourceOptions): NatService@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        nat_service_id: Optional[str] = None,
        net_id: Optional[str] = None,
        outscale_nat_service_id: Optional[str] = None,
        public_ip_id: Optional[str] = None,
        public_ips: Optional[Sequence[NatServicePublicIpArgs]] = None,
        request_id: Optional[str] = None,
        state: Optional[str] = None,
        subnet_id: Optional[str] = None,
        tags: Optional[Sequence[NatServiceTagArgs]] = None) -> NatServicefunc GetNatService(ctx *Context, name string, id IDInput, state *NatServiceState, opts ...ResourceOption) (*NatService, error)public static NatService Get(string name, Input<string> id, NatServiceState? state, CustomResourceOptions? opts = null)public static NatService get(String name, Output<String> id, NatServiceState state, CustomResourceOptions options)resources:  _:    type: outscale:NatService    get:      id: ${id}- 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.
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- OutscaleNat stringService Id 
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- PublicIps List<NatService Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- RequestId string
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- SubnetId string
- The ID of the Subnet in which you want to create the NAT service.
- 
List<NatService Tag> 
- A tag to add to this resource. You can specify this argument several times.
- NatService stringId 
- The ID of the NAT service.
- NetId string
- The ID of the Net in which the NAT service is.
- OutscaleNat stringService Id 
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- PublicIps []NatService Public Ip Args 
- Information about the public IP or IPs associated with the NAT service.
- RequestId string
- State string
- The state of the NAT service (pending|available|deleting|deleted).
- SubnetId string
- The ID of the Subnet in which you want to create the NAT service.
- 
[]NatService Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- outscaleNat StringService Id 
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIps List<NatService Public Ip> 
- Information about the public IP or IPs associated with the NAT service.
- requestId String
- state String
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId String
- The ID of the Subnet in which you want to create the NAT service.
- 
List<NatService Tag> 
- A tag to add to this resource. You can specify this argument several times.
- natService stringId 
- The ID of the NAT service.
- netId string
- The ID of the Net in which the NAT service is.
- outscaleNat stringService Id 
- publicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIps NatService Public Ip[] 
- Information about the public IP or IPs associated with the NAT service.
- requestId string
- state string
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId string
- The ID of the Subnet in which you want to create the NAT service.
- 
NatService Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- nat_service_ strid 
- The ID of the NAT service.
- net_id str
- The ID of the Net in which the NAT service is.
- outscale_nat_ strservice_ id 
- public_ip_ strid 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- public_ips Sequence[NatService Public Ip Args] 
- Information about the public IP or IPs associated with the NAT service.
- request_id str
- state str
- The state of the NAT service (pending|available|deleting|deleted).
- subnet_id str
- The ID of the Subnet in which you want to create the NAT service.
- 
Sequence[NatService Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- natService StringId 
- The ID of the NAT service.
- netId String
- The ID of the Net in which the NAT service is.
- outscaleNat StringService Id 
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIps List<Property Map>
- Information about the public IP or IPs associated with the NAT service.
- requestId String
- state String
- The state of the NAT service (pending|available|deleting|deleted).
- subnetId String
- The ID of the Subnet in which you want to create the NAT service.
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Supporting Types
NatServicePublicIp, NatServicePublicIpArgs        
- PublicIp string
- The public IP associated with the NAT service.
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- PublicIp string
- The public IP associated with the NAT service.
- PublicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIp String
- The public IP associated with the NAT service.
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIp string
- The public IP associated with the NAT service.
- publicIp stringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- public_ip str
- The public IP associated with the NAT service.
- public_ip_ strid 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
- publicIp String
- The public IP associated with the NAT service.
- publicIp StringId 
- The allocation ID of the public IP to associate with the NAT service. If the public IP is already associated with another resource, you must first disassociate it.
NatServiceTag, NatServiceTagArgs      
Import
A NAT service can be imported using its ID. For example:
console
$ pulumi import outscale:index/natService:NatService ImportedNatService nat-87654321
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.