meraki.networks.ApplianceFirewallOneToOneNatRules
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.ApplianceFirewallOneToOneNatRules;
import com.pulumi.meraki.networks.ApplianceFirewallOneToOneNatRulesArgs;
import com.pulumi.meraki.networks.inputs.ApplianceFirewallOneToOneNatRulesRuleArgs;
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 example = new ApplianceFirewallOneToOneNatRules("example", ApplianceFirewallOneToOneNatRulesArgs.builder()
.networkId("string")
.rules(ApplianceFirewallOneToOneNatRulesRuleArgs.builder()
.allowed_inbound(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.lan_ip("192.168.128.22")
.name("Service behind NAT")
.public_ip("146.12.3.33")
.uplink("internet1")
.build())
.build());
ctx.export("merakiNetworksApplianceFirewallOneToOneNatRulesExample", example);
}
}
resources:
example:
type: meraki:networks:ApplianceFirewallOneToOneNatRules
properties:
networkId: string
rules:
- allowed_inbound:
- allowedIps:
- 10.82.112.0/24
- 10.82.0.0/16
destinationPorts:
- '80'
protocol: tcp
lan_ip: 192.168.128.22
name: Service behind NAT
public_ip: 146.12.3.33
uplink: internet1
outputs:
merakiNetworksApplianceFirewallOneToOneNatRulesExample: ${example}
Create ApplianceFirewallOneToOneNatRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplianceFirewallOneToOneNatRules(name: string, args: ApplianceFirewallOneToOneNatRulesArgs, opts?: CustomResourceOptions);
@overload
def ApplianceFirewallOneToOneNatRules(resource_name: str,
args: ApplianceFirewallOneToOneNatRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplianceFirewallOneToOneNatRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
rules: Optional[Sequence[ApplianceFirewallOneToOneNatRulesRuleArgs]] = None)
func NewApplianceFirewallOneToOneNatRules(ctx *Context, name string, args ApplianceFirewallOneToOneNatRulesArgs, opts ...ResourceOption) (*ApplianceFirewallOneToOneNatRules, error)
public ApplianceFirewallOneToOneNatRules(string name, ApplianceFirewallOneToOneNatRulesArgs args, CustomResourceOptions? opts = null)
public ApplianceFirewallOneToOneNatRules(String name, ApplianceFirewallOneToOneNatRulesArgs args)
public ApplianceFirewallOneToOneNatRules(String name, ApplianceFirewallOneToOneNatRulesArgs args, CustomResourceOptions options)
type: meraki:networks:ApplianceFirewallOneToOneNatRules
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 ApplianceFirewallOneToOneNatRulesArgs
- 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 ApplianceFirewallOneToOneNatRulesArgs
- 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 ApplianceFirewallOneToOneNatRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplianceFirewallOneToOneNatRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplianceFirewallOneToOneNatRulesArgs
- 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 applianceFirewallOneToOneNatRulesResource = new Meraki.Networks.ApplianceFirewallOneToOneNatRules("applianceFirewallOneToOneNatRulesResource", new()
{
NetworkId = "string",
Rules = new[]
{
new Meraki.Networks.Inputs.ApplianceFirewallOneToOneNatRulesRuleArgs
{
AllowedInbounds = new[]
{
new Meraki.Networks.Inputs.ApplianceFirewallOneToOneNatRulesRuleAllowedInboundArgs
{
AllowedIps = new[]
{
"string",
},
DestinationPorts = new[]
{
"string",
},
Protocol = "string",
},
},
LanIp = "string",
Name = "string",
PublicIp = "string",
Uplink = "string",
},
},
});
example, err := networks.NewApplianceFirewallOneToOneNatRules(ctx, "applianceFirewallOneToOneNatRulesResource", &networks.ApplianceFirewallOneToOneNatRulesArgs{
NetworkId: pulumi.String("string"),
Rules: networks.ApplianceFirewallOneToOneNatRulesRuleArray{
&networks.ApplianceFirewallOneToOneNatRulesRuleArgs{
AllowedInbounds: networks.ApplianceFirewallOneToOneNatRulesRuleAllowedInboundArray{
&networks.ApplianceFirewallOneToOneNatRulesRuleAllowedInboundArgs{
AllowedIps: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("string"),
},
Protocol: pulumi.String("string"),
},
},
LanIp: pulumi.String("string"),
Name: pulumi.String("string"),
PublicIp: pulumi.String("string"),
Uplink: pulumi.String("string"),
},
},
})
var applianceFirewallOneToOneNatRulesResource = new ApplianceFirewallOneToOneNatRules("applianceFirewallOneToOneNatRulesResource", ApplianceFirewallOneToOneNatRulesArgs.builder()
.networkId("string")
.rules(ApplianceFirewallOneToOneNatRulesRuleArgs.builder()
.allowedInbounds(ApplianceFirewallOneToOneNatRulesRuleAllowedInboundArgs.builder()
.allowedIps("string")
.destinationPorts("string")
.protocol("string")
.build())
.lanIp("string")
.name("string")
.publicIp("string")
.uplink("string")
.build())
.build());
appliance_firewall_one_to_one_nat_rules_resource = meraki.networks.ApplianceFirewallOneToOneNatRules("applianceFirewallOneToOneNatRulesResource",
network_id="string",
rules=[{
"allowed_inbounds": [{
"allowed_ips": ["string"],
"destination_ports": ["string"],
"protocol": "string",
}],
"lan_ip": "string",
"name": "string",
"public_ip": "string",
"uplink": "string",
}])
const applianceFirewallOneToOneNatRulesResource = new meraki.networks.ApplianceFirewallOneToOneNatRules("applianceFirewallOneToOneNatRulesResource", {
networkId: "string",
rules: [{
allowedInbounds: [{
allowedIps: ["string"],
destinationPorts: ["string"],
protocol: "string",
}],
lanIp: "string",
name: "string",
publicIp: "string",
uplink: "string",
}],
});
type: meraki:networks:ApplianceFirewallOneToOneNatRules
properties:
networkId: string
rules:
- allowedInbounds:
- allowedIps:
- string
destinationPorts:
- string
protocol: string
lanIp: string
name: string
publicIp: string
uplink: string
ApplianceFirewallOneToOneNatRules 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 ApplianceFirewallOneToOneNatRules resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Rules
List<Appliance
Firewall One To One Nat Rules Rule> - An array of 1:1 nat rules
- Network
Id string - networkId path parameter. Network ID
- Rules
[]Appliance
Firewall One To One Nat Rules Rule Args - An array of 1:1 nat rules
- network
Id String - networkId path parameter. Network ID
- rules
List<Appliance
Firewall One To One Nat Rules Rule> - An array of 1:1 nat rules
- network
Id string - networkId path parameter. Network ID
- rules
Appliance
Firewall One To One Nat Rules Rule[] - An array of 1:1 nat rules
- network_
id str - networkId path parameter. Network ID
- rules
Sequence[Appliance
Firewall One To One Nat Rules Rule Args] - An array of 1:1 nat rules
- network
Id String - networkId path parameter. Network ID
- rules List<Property Map>
- An array of 1:1 nat rules
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplianceFirewallOneToOneNatRules 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 ApplianceFirewallOneToOneNatRules Resource
Get an existing ApplianceFirewallOneToOneNatRules 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?: ApplianceFirewallOneToOneNatRulesState, opts?: CustomResourceOptions): ApplianceFirewallOneToOneNatRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
rules: Optional[Sequence[ApplianceFirewallOneToOneNatRulesRuleArgs]] = None) -> ApplianceFirewallOneToOneNatRules
func GetApplianceFirewallOneToOneNatRules(ctx *Context, name string, id IDInput, state *ApplianceFirewallOneToOneNatRulesState, opts ...ResourceOption) (*ApplianceFirewallOneToOneNatRules, error)
public static ApplianceFirewallOneToOneNatRules Get(string name, Input<string> id, ApplianceFirewallOneToOneNatRulesState? state, CustomResourceOptions? opts = null)
public static ApplianceFirewallOneToOneNatRules get(String name, Output<String> id, ApplianceFirewallOneToOneNatRulesState 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.
- Network
Id string - networkId path parameter. Network ID
- Rules
List<Appliance
Firewall One To One Nat Rules Rule> - An array of 1:1 nat rules
- Network
Id string - networkId path parameter. Network ID
- Rules
[]Appliance
Firewall One To One Nat Rules Rule Args - An array of 1:1 nat rules
- network
Id String - networkId path parameter. Network ID
- rules
List<Appliance
Firewall One To One Nat Rules Rule> - An array of 1:1 nat rules
- network
Id string - networkId path parameter. Network ID
- rules
Appliance
Firewall One To One Nat Rules Rule[] - An array of 1:1 nat rules
- network_
id str - networkId path parameter. Network ID
- rules
Sequence[Appliance
Firewall One To One Nat Rules Rule Args] - An array of 1:1 nat rules
- network
Id String - networkId path parameter. Network ID
- rules List<Property Map>
- An array of 1:1 nat rules
Supporting Types
ApplianceFirewallOneToOneNatRulesRule, ApplianceFirewallOneToOneNatRulesRuleArgs
- Allowed
Inbounds List<ApplianceFirewall One To One Nat Rules Rule Allowed Inbound> - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- Lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- Name string
- A descriptive name for the rule
- Public
Ip string - The IP address that will be used to access the internal resource from the WAN
- Uplink string
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
- Allowed
Inbounds []ApplianceFirewall One To One Nat Rules Rule Allowed Inbound - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- Lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- Name string
- A descriptive name for the rule
- Public
Ip string - The IP address that will be used to access the internal resource from the WAN
- Uplink string
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
- allowed
Inbounds List<ApplianceFirewall One To One Nat Rules Rule Allowed Inbound> - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- lan
Ip String - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- name String
- A descriptive name for the rule
- public
Ip String - The IP address that will be used to access the internal resource from the WAN
- uplink String
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
- allowed
Inbounds ApplianceFirewall One To One Nat Rules Rule Allowed Inbound[] - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- lan
Ip string - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- name string
- A descriptive name for the rule
- public
Ip string - The IP address that will be used to access the internal resource from the WAN
- uplink string
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
- allowed_
inbounds Sequence[ApplianceFirewall One To One Nat Rules Rule Allowed Inbound] - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- lan_
ip str - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- name str
- A descriptive name for the rule
- public_
ip str - The IP address that will be used to access the internal resource from the WAN
- uplink str
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
- allowed
Inbounds List<Property Map> - The ports this mapping will provide access on, and the remote IPs that will be allowed access to the resource
- lan
Ip String - The IP address of the server or device that hosts the internal resource that you wish to make available on the WAN
- name String
- A descriptive name for the rule
- public
Ip String - The IP address that will be used to access the internal resource from the WAN
- uplink String
- The physical WAN interface on which the traffic will arrive ('internet1' or, if available, 'internet2')
ApplianceFirewallOneToOneNatRulesRuleAllowedInbound, ApplianceFirewallOneToOneNatRulesRuleAllowedInboundArgs
- Allowed
Ips List<string> - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- Destination
Ports List<string> - An array of ports or port ranges that will be forwarded to the host on the LAN
- Protocol string
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
- Allowed
Ips []string - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- Destination
Ports []string - An array of ports or port ranges that will be forwarded to the host on the LAN
- Protocol string
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
- allowed
Ips List<String> - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- destination
Ports List<String> - An array of ports or port ranges that will be forwarded to the host on the LAN
- protocol String
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
- allowed
Ips string[] - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- destination
Ports string[] - An array of ports or port ranges that will be forwarded to the host on the LAN
- protocol string
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
- allowed_
ips Sequence[str] - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- destination_
ports Sequence[str] - An array of ports or port ranges that will be forwarded to the host on the LAN
- protocol str
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
- allowed
Ips List<String> - An array of ranges of WAN IP addresses that are allowed to make inbound connections on the specified ports or port ranges, or 'any'
- destination
Ports List<String> - An array of ports or port ranges that will be forwarded to the host on the LAN
- protocol String
- Either of the following: 'tcp', 'udp', 'icmp-ping' or 'any'
Import
$ pulumi import meraki:networks/applianceFirewallOneToOneNatRules:ApplianceFirewallOneToOneNatRules example "network_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.