sdwan.Ipv4DeviceAclPolicyDefinition
Explore with Pulumi AI
This resource can manage a IPv4 Device ACL Policy Definition .
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.sdwan.Ipv4DeviceAclPolicyDefinition;
import com.pulumi.sdwan.Ipv4DeviceAclPolicyDefinitionArgs;
import com.pulumi.sdwan.inputs.Ipv4DeviceAclPolicyDefinitionSequenceArgs;
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 Ipv4DeviceAclPolicyDefinition("example", Ipv4DeviceAclPolicyDefinitionArgs.builder()
.name("Example")
.description("My description")
.defaultAction("drop")
.sequences(Ipv4DeviceAclPolicyDefinitionSequenceArgs.builder()
.id(10)
.name("Sequence 10")
.base_action("accept")
.match_entries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.action_entries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.build());
}
}
resources:
example:
type: sdwan:Ipv4DeviceAclPolicyDefinition
properties:
name: Example
description: My description
defaultAction: drop
sequences:
- id: 10
name: Sequence 10
base_action: accept
match_entries:
- type: destinationPort
destinationPort: 22
action_entries:
- type: count
counterName: count1
Create Ipv4DeviceAclPolicyDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ipv4DeviceAclPolicyDefinition(name: string, args: Ipv4DeviceAclPolicyDefinitionArgs, opts?: CustomResourceOptions);
@overload
def Ipv4DeviceAclPolicyDefinition(resource_name: str,
args: Ipv4DeviceAclPolicyDefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ipv4DeviceAclPolicyDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
sequences: Optional[Sequence[Ipv4DeviceAclPolicyDefinitionSequenceArgs]] = None,
default_action: Optional[str] = None,
name: Optional[str] = None)
func NewIpv4DeviceAclPolicyDefinition(ctx *Context, name string, args Ipv4DeviceAclPolicyDefinitionArgs, opts ...ResourceOption) (*Ipv4DeviceAclPolicyDefinition, error)
public Ipv4DeviceAclPolicyDefinition(string name, Ipv4DeviceAclPolicyDefinitionArgs args, CustomResourceOptions? opts = null)
public Ipv4DeviceAclPolicyDefinition(String name, Ipv4DeviceAclPolicyDefinitionArgs args)
public Ipv4DeviceAclPolicyDefinition(String name, Ipv4DeviceAclPolicyDefinitionArgs args, CustomResourceOptions options)
type: sdwan:Ipv4DeviceAclPolicyDefinition
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 Ipv4DeviceAclPolicyDefinitionArgs
- 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 Ipv4DeviceAclPolicyDefinitionArgs
- 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 Ipv4DeviceAclPolicyDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv4DeviceAclPolicyDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ipv4DeviceAclPolicyDefinitionArgs
- 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 ipv4DeviceAclPolicyDefinitionResource = new Sdwan.Ipv4DeviceAclPolicyDefinition("ipv4DeviceAclPolicyDefinitionResource", new()
{
Description = "string",
Sequences = new[]
{
new Sdwan.Inputs.Ipv4DeviceAclPolicyDefinitionSequenceArgs
{
Id = 0,
Name = "string",
ActionEntries = new[]
{
new Sdwan.Inputs.Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArgs
{
Type = "string",
CounterName = "string",
},
},
BaseAction = "string",
MatchEntries = new[]
{
new Sdwan.Inputs.Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArgs
{
Type = "string",
DestinationDataIpv4PrefixListId = "string",
DestinationDataIpv4PrefixListVersion = 0,
DestinationIp = "string",
DestinationPort = 0,
SourceDataIpv4PrefixListId = "string",
SourceDataIpv4PrefixListVersion = 0,
SourceIp = "string",
SourcePorts = "string",
},
},
},
},
DefaultAction = "string",
Name = "string",
});
example, err := sdwan.NewIpv4DeviceAclPolicyDefinition(ctx, "ipv4DeviceAclPolicyDefinitionResource", &sdwan.Ipv4DeviceAclPolicyDefinitionArgs{
Description: pulumi.String("string"),
Sequences: sdwan.Ipv4DeviceAclPolicyDefinitionSequenceArray{
&sdwan.Ipv4DeviceAclPolicyDefinitionSequenceArgs{
Id: pulumi.Int(0),
Name: pulumi.String("string"),
ActionEntries: sdwan.Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArray{
&sdwan.Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArgs{
Type: pulumi.String("string"),
CounterName: pulumi.String("string"),
},
},
BaseAction: pulumi.String("string"),
MatchEntries: sdwan.Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArray{
&sdwan.Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArgs{
Type: pulumi.String("string"),
DestinationDataIpv4PrefixListId: pulumi.String("string"),
DestinationDataIpv4PrefixListVersion: pulumi.Int(0),
DestinationIp: pulumi.String("string"),
DestinationPort: pulumi.Int(0),
SourceDataIpv4PrefixListId: pulumi.String("string"),
SourceDataIpv4PrefixListVersion: pulumi.Int(0),
SourceIp: pulumi.String("string"),
SourcePorts: pulumi.String("string"),
},
},
},
},
DefaultAction: pulumi.String("string"),
Name: pulumi.String("string"),
})
var ipv4DeviceAclPolicyDefinitionResource = new Ipv4DeviceAclPolicyDefinition("ipv4DeviceAclPolicyDefinitionResource", Ipv4DeviceAclPolicyDefinitionArgs.builder()
.description("string")
.sequences(Ipv4DeviceAclPolicyDefinitionSequenceArgs.builder()
.id(0)
.name("string")
.actionEntries(Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArgs.builder()
.type("string")
.counterName("string")
.build())
.baseAction("string")
.matchEntries(Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArgs.builder()
.type("string")
.destinationDataIpv4PrefixListId("string")
.destinationDataIpv4PrefixListVersion(0)
.destinationIp("string")
.destinationPort(0)
.sourceDataIpv4PrefixListId("string")
.sourceDataIpv4PrefixListVersion(0)
.sourceIp("string")
.sourcePorts("string")
.build())
.build())
.defaultAction("string")
.name("string")
.build());
ipv4_device_acl_policy_definition_resource = sdwan.Ipv4DeviceAclPolicyDefinition("ipv4DeviceAclPolicyDefinitionResource",
description="string",
sequences=[sdwan.Ipv4DeviceAclPolicyDefinitionSequenceArgs(
id=0,
name="string",
action_entries=[sdwan.Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArgs(
type="string",
counter_name="string",
)],
base_action="string",
match_entries=[sdwan.Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArgs(
type="string",
destination_data_ipv4_prefix_list_id="string",
destination_data_ipv4_prefix_list_version=0,
destination_ip="string",
destination_port=0,
source_data_ipv4_prefix_list_id="string",
source_data_ipv4_prefix_list_version=0,
source_ip="string",
source_ports="string",
)],
)],
default_action="string",
name="string")
const ipv4DeviceAclPolicyDefinitionResource = new sdwan.Ipv4DeviceAclPolicyDefinition("ipv4DeviceAclPolicyDefinitionResource", {
description: "string",
sequences: [{
id: 0,
name: "string",
actionEntries: [{
type: "string",
counterName: "string",
}],
baseAction: "string",
matchEntries: [{
type: "string",
destinationDataIpv4PrefixListId: "string",
destinationDataIpv4PrefixListVersion: 0,
destinationIp: "string",
destinationPort: 0,
sourceDataIpv4PrefixListId: "string",
sourceDataIpv4PrefixListVersion: 0,
sourceIp: "string",
sourcePorts: "string",
}],
}],
defaultAction: "string",
name: "string",
});
type: sdwan:Ipv4DeviceAclPolicyDefinition
properties:
defaultAction: string
description: string
name: string
sequences:
- actionEntries:
- counterName: string
type: string
baseAction: string
id: 0
matchEntries:
- destinationDataIpv4PrefixListId: string
destinationDataIpv4PrefixListVersion: 0
destinationIp: string
destinationPort: 0
sourceDataIpv4PrefixListId: string
sourceDataIpv4PrefixListVersion: 0
sourceIp: string
sourcePorts: string
type: string
name: string
Ipv4DeviceAclPolicyDefinition 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 Ipv4DeviceAclPolicyDefinition resource accepts the following input properties:
- Description string
- The description of the policy definition
- Sequences
List<Ipv4Device
Acl Policy Definition Sequence> - List of ACL sequences
- Default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- Name string
- The name of the policy definition
- Description string
- The description of the policy definition
- Sequences
[]Ipv4Device
Acl Policy Definition Sequence Args - List of ACL sequences
- Default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- Name string
- The name of the policy definition
- description String
- The description of the policy definition
- sequences
List<Ipv4Device
Acl Policy Definition Sequence> - List of ACL sequences
- default
Action String - Default action, either
accept
ordrop
- Choices:accept
,drop
- name String
- The name of the policy definition
- description string
- The description of the policy definition
- sequences
Ipv4Device
Acl Policy Definition Sequence[] - List of ACL sequences
- default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- name string
- The name of the policy definition
- description str
- The description of the policy definition
- sequences
Sequence[Ipv4Device
Acl Policy Definition Sequence Args] - List of ACL sequences
- default_
action str - Default action, either
accept
ordrop
- Choices:accept
,drop
- name str
- The name of the policy definition
- description String
- The description of the policy definition
- sequences List<Property Map>
- List of ACL sequences
- default
Action String - Default action, either
accept
ordrop
- Choices:accept
,drop
- name String
- The name of the policy definition
Outputs
All input properties are implicitly available as output properties. Additionally, the Ipv4DeviceAclPolicyDefinition resource produces the following output properties:
Look up Existing Ipv4DeviceAclPolicyDefinition Resource
Get an existing Ipv4DeviceAclPolicyDefinition 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?: Ipv4DeviceAclPolicyDefinitionState, opts?: CustomResourceOptions): Ipv4DeviceAclPolicyDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_action: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
sequences: Optional[Sequence[Ipv4DeviceAclPolicyDefinitionSequenceArgs]] = None,
type: Optional[str] = None,
version: Optional[int] = None) -> Ipv4DeviceAclPolicyDefinition
func GetIpv4DeviceAclPolicyDefinition(ctx *Context, name string, id IDInput, state *Ipv4DeviceAclPolicyDefinitionState, opts ...ResourceOption) (*Ipv4DeviceAclPolicyDefinition, error)
public static Ipv4DeviceAclPolicyDefinition Get(string name, Input<string> id, Ipv4DeviceAclPolicyDefinitionState? state, CustomResourceOptions? opts = null)
public static Ipv4DeviceAclPolicyDefinition get(String name, Output<String> id, Ipv4DeviceAclPolicyDefinitionState 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.
- Default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- Description string
- The description of the policy definition
- Name string
- The name of the policy definition
- Sequences
List<Ipv4Device
Acl Policy Definition Sequence> - List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- Default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- Description string
- The description of the policy definition
- Name string
- The name of the policy definition
- Sequences
[]Ipv4Device
Acl Policy Definition Sequence Args - List of ACL sequences
- Type string
- Type
- Version int
- The version of the object
- default
Action String - Default action, either
accept
ordrop
- Choices:accept
,drop
- description String
- The description of the policy definition
- name String
- The name of the policy definition
- sequences
List<Ipv4Device
Acl Policy Definition Sequence> - List of ACL sequences
- type String
- Type
- version Integer
- The version of the object
- default
Action string - Default action, either
accept
ordrop
- Choices:accept
,drop
- description string
- The description of the policy definition
- name string
- The name of the policy definition
- sequences
Ipv4Device
Acl Policy Definition Sequence[] - List of ACL sequences
- type string
- Type
- version number
- The version of the object
- default_
action str - Default action, either
accept
ordrop
- Choices:accept
,drop
- description str
- The description of the policy definition
- name str
- The name of the policy definition
- sequences
Sequence[Ipv4Device
Acl Policy Definition Sequence Args] - List of ACL sequences
- type str
- Type
- version int
- The version of the object
- default
Action String - Default action, either
accept
ordrop
- Choices:accept
,drop
- description String
- The description of the policy definition
- name String
- The name of the policy definition
- sequences List<Property Map>
- List of ACL sequences
- type String
- Type
- version Number
- The version of the object
Supporting Types
Ipv4DeviceAclPolicyDefinitionSequence, Ipv4DeviceAclPolicyDefinitionSequenceArgs
- Id int
- Sequence ID
- Range:
1
-65534
- Range:
- Name string
- Sequence name
- Action
Entries List<Ipv4DeviceAcl Policy Definition Sequence Action Entry> - List of action entries
- Base
Action string - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- Match
Entries List<Ipv4DeviceAcl Policy Definition Sequence Match Entry> - List of match entries
- Id int
- Sequence ID
- Range:
1
-65534
- Range:
- Name string
- Sequence name
- Action
Entries []Ipv4DeviceAcl Policy Definition Sequence Action Entry - List of action entries
- Base
Action string - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- Match
Entries []Ipv4DeviceAcl Policy Definition Sequence Match Entry - List of match entries
- id Integer
- Sequence ID
- Range:
1
-65534
- Range:
- name String
- Sequence name
- action
Entries List<Ipv4DeviceAcl Policy Definition Sequence Action Entry> - List of action entries
- base
Action String - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- match
Entries List<Ipv4DeviceAcl Policy Definition Sequence Match Entry> - List of match entries
- id number
- Sequence ID
- Range:
1
-65534
- Range:
- name string
- Sequence name
- action
Entries Ipv4DeviceAcl Policy Definition Sequence Action Entry[] - List of action entries
- base
Action string - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- match
Entries Ipv4DeviceAcl Policy Definition Sequence Match Entry[] - List of match entries
- id int
- Sequence ID
- Range:
1
-65534
- Range:
- name str
- Sequence name
- action_
entries Sequence[Ipv4DeviceAcl Policy Definition Sequence Action Entry] - List of action entries
- base_
action str - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- match_
entries Sequence[Ipv4DeviceAcl Policy Definition Sequence Match Entry] - List of match entries
- id Number
- Sequence ID
- Range:
1
-65534
- Range:
- name String
- Sequence name
- action
Entries List<Property Map> - List of action entries
- base
Action String - Base action, either
accept
ordrop
- Choices:
accept
,drop
- Choices:
- match
Entries List<Property Map> - List of match entries
Ipv4DeviceAclPolicyDefinitionSequenceActionEntry, Ipv4DeviceAclPolicyDefinitionSequenceActionEntryArgs
- Type string
- Type of action entry
- Choices:
count
- Choices:
- Counter
Name string - Counter name
- Type string
- Type of action entry
- Choices:
count
- Choices:
- Counter
Name string - Counter name
- type String
- Type of action entry
- Choices:
count
- Choices:
- counter
Name String - Counter name
- type string
- Type of action entry
- Choices:
count
- Choices:
- counter
Name string - Counter name
- type str
- Type of action entry
- Choices:
count
- Choices:
- counter_
name str - Counter name
- type String
- Type of action entry
- Choices:
count
- Choices:
- counter
Name String - Counter name
Ipv4DeviceAclPolicyDefinitionSequenceMatchEntry, Ipv4DeviceAclPolicyDefinitionSequenceMatchEntryArgs
- Type string
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- Destination
Data stringIpv4Prefix List Id - Destination data IPv4 prefix list ID
- Destination
Data intIpv4Prefix List Version - Destination data IPv4 prefix list version
- Destination
Ip string - Destination IP prefix
- Destination
Port int - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- Source
Data stringIpv4Prefix List Id - Source data IPv4 prefix list ID
- Source
Data intIpv4Prefix List Version - Source data IPv4 prefix list version
- Source
Ip string - Source IP prefix
- Source
Ports string - Source ports. Single value (0-65535) or ranges separated by spaces.
- Type string
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- Destination
Data stringIpv4Prefix List Id - Destination data IPv4 prefix list ID
- Destination
Data intIpv4Prefix List Version - Destination data IPv4 prefix list version
- Destination
Ip string - Destination IP prefix
- Destination
Port int - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- Source
Data stringIpv4Prefix List Id - Source data IPv4 prefix list ID
- Source
Data intIpv4Prefix List Version - Source data IPv4 prefix list version
- Source
Ip string - Source IP prefix
- Source
Ports string - Source ports. Single value (0-65535) or ranges separated by spaces.
- type String
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- destination
Data StringIpv4Prefix List Id - Destination data IPv4 prefix list ID
- destination
Data IntegerIpv4Prefix List Version - Destination data IPv4 prefix list version
- destination
Ip String - Destination IP prefix
- destination
Port Integer - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- source
Data StringIpv4Prefix List Id - Source data IPv4 prefix list ID
- source
Data IntegerIpv4Prefix List Version - Source data IPv4 prefix list version
- source
Ip String - Source IP prefix
- source
Ports String - Source ports. Single value (0-65535) or ranges separated by spaces.
- type string
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- destination
Data stringIpv4Prefix List Id - Destination data IPv4 prefix list ID
- destination
Data numberIpv4Prefix List Version - Destination data IPv4 prefix list version
- destination
Ip string - Destination IP prefix
- destination
Port number - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- source
Data stringIpv4Prefix List Id - Source data IPv4 prefix list ID
- source
Data numberIpv4Prefix List Version - Source data IPv4 prefix list version
- source
Ip string - Source IP prefix
- source
Ports string - Source ports. Single value (0-65535) or ranges separated by spaces.
- type str
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- destination_
data_ stripv4_ prefix_ list_ id - Destination data IPv4 prefix list ID
- destination_
data_ intipv4_ prefix_ list_ version - Destination data IPv4 prefix list version
- destination_
ip str - Destination IP prefix
- destination_
port int - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- source_
data_ stripv4_ prefix_ list_ id - Source data IPv4 prefix list ID
- source_
data_ intipv4_ prefix_ list_ version - Source data IPv4 prefix list version
- source_
ip str - Source IP prefix
- source_
ports str - Source ports. Single value (0-65535) or ranges separated by spaces.
- type String
- Type of match entry
- Choices:
sourceIp
,destinationIp
,sourcePort
,destinationPort
,sourceDataPrefixList
,destinationDataPrefixList
- Choices:
- destination
Data StringIpv4Prefix List Id - Destination data IPv4 prefix list ID
- destination
Data NumberIpv4Prefix List Version - Destination data IPv4 prefix list version
- destination
Ip String - Destination IP prefix
- destination
Port Number - Destination port, only
22
and161
supported- Range:
0
-65535
- Range:
- source
Data StringIpv4Prefix List Id - Source data IPv4 prefix list ID
- source
Data NumberIpv4Prefix List Version - Source data IPv4 prefix list version
- source
Ip String - Source IP prefix
- source
Ports String - Source ports. Single value (0-65535) or ranges separated by spaces.
Import
$ pulumi import sdwan:index/ipv4DeviceAclPolicyDefinition:Ipv4DeviceAclPolicyDefinition example "f6b2c44c-693c-4763-b010-895aa3d236bd"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.