RouteAccessList resource
Create RouteAccessList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteAccessList(name: string, args?: RouteAccessListArgs, opts?: CustomResourceOptions);@overload
def RouteAccessList(resource_name: str,
args: Optional[RouteAccessListArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RouteAccessList(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
type: Optional[RouteAccessListTypeArgs] = None)func NewRouteAccessList(ctx *Context, name string, args *RouteAccessListArgs, opts ...ResourceOption) (*RouteAccessList, error)public RouteAccessList(string name, RouteAccessListArgs? args = null, CustomResourceOptions? opts = null)
public RouteAccessList(String name, RouteAccessListArgs args)
public RouteAccessList(String name, RouteAccessListArgs args, CustomResourceOptions options)
type: scm:RouteAccessList
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 RouteAccessListArgs
- 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 RouteAccessListArgs
- 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 RouteAccessListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteAccessListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteAccessListArgs
- 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 routeAccessListResource = new Scm.RouteAccessList("routeAccessListResource", new()
{
Description = "string",
Device = "string",
Folder = "string",
Name = "string",
Snippet = "string",
Type = new Scm.Inputs.RouteAccessListTypeArgs
{
Ipv4 = new Scm.Inputs.RouteAccessListTypeIpv4Args
{
Ipv4Entries = new[]
{
new Scm.Inputs.RouteAccessListTypeIpv4Ipv4EntryArgs
{
Action = "string",
DestinationAddress = new Scm.Inputs.RouteAccessListTypeIpv4Ipv4EntryDestinationAddressArgs
{
Address = "string",
Entry = new Scm.Inputs.RouteAccessListTypeIpv4Ipv4EntryDestinationAddressEntryArgs
{
Address = "string",
Wildcard = "string",
},
},
Name = 0,
SourceAddress = new Scm.Inputs.RouteAccessListTypeIpv4Ipv4EntrySourceAddressArgs
{
Address = "string",
Entry = new Scm.Inputs.RouteAccessListTypeIpv4Ipv4EntrySourceAddressEntryArgs
{
Address = "string",
Wildcard = "string",
},
},
},
},
},
},
});
example, err := scm.NewRouteAccessList(ctx, "routeAccessListResource", &scm.RouteAccessListArgs{
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
Type: &scm.RouteAccessListTypeArgs{
Ipv4: &scm.RouteAccessListTypeIpv4Args{
Ipv4Entries: scm.RouteAccessListTypeIpv4Ipv4EntryArray{
&scm.RouteAccessListTypeIpv4Ipv4EntryArgs{
Action: pulumi.String("string"),
DestinationAddress: &scm.RouteAccessListTypeIpv4Ipv4EntryDestinationAddressArgs{
Address: pulumi.String("string"),
Entry: &scm.RouteAccessListTypeIpv4Ipv4EntryDestinationAddressEntryArgs{
Address: pulumi.String("string"),
Wildcard: pulumi.String("string"),
},
},
Name: pulumi.Int(0),
SourceAddress: &scm.RouteAccessListTypeIpv4Ipv4EntrySourceAddressArgs{
Address: pulumi.String("string"),
Entry: &scm.RouteAccessListTypeIpv4Ipv4EntrySourceAddressEntryArgs{
Address: pulumi.String("string"),
Wildcard: pulumi.String("string"),
},
},
},
},
},
},
})
var routeAccessListResource = new RouteAccessList("routeAccessListResource", RouteAccessListArgs.builder()
.description("string")
.device("string")
.folder("string")
.name("string")
.snippet("string")
.type(RouteAccessListTypeArgs.builder()
.ipv4(RouteAccessListTypeIpv4Args.builder()
.ipv4Entries(RouteAccessListTypeIpv4Ipv4EntryArgs.builder()
.action("string")
.destinationAddress(RouteAccessListTypeIpv4Ipv4EntryDestinationAddressArgs.builder()
.address("string")
.entry(RouteAccessListTypeIpv4Ipv4EntryDestinationAddressEntryArgs.builder()
.address("string")
.wildcard("string")
.build())
.build())
.name(0)
.sourceAddress(RouteAccessListTypeIpv4Ipv4EntrySourceAddressArgs.builder()
.address("string")
.entry(RouteAccessListTypeIpv4Ipv4EntrySourceAddressEntryArgs.builder()
.address("string")
.wildcard("string")
.build())
.build())
.build())
.build())
.build())
.build());
route_access_list_resource = scm.RouteAccessList("routeAccessListResource",
description="string",
device="string",
folder="string",
name="string",
snippet="string",
type={
"ipv4": {
"ipv4_entries": [{
"action": "string",
"destination_address": {
"address": "string",
"entry": {
"address": "string",
"wildcard": "string",
},
},
"name": 0,
"source_address": {
"address": "string",
"entry": {
"address": "string",
"wildcard": "string",
},
},
}],
},
})
const routeAccessListResource = new scm.RouteAccessList("routeAccessListResource", {
description: "string",
device: "string",
folder: "string",
name: "string",
snippet: "string",
type: {
ipv4: {
ipv4Entries: [{
action: "string",
destinationAddress: {
address: "string",
entry: {
address: "string",
wildcard: "string",
},
},
name: 0,
sourceAddress: {
address: "string",
entry: {
address: "string",
wildcard: "string",
},
},
}],
},
},
});
type: scm:RouteAccessList
properties:
description: string
device: string
folder: string
name: string
snippet: string
type:
ipv4:
ipv4Entries:
- action: string
destinationAddress:
address: string
entry:
address: string
wildcard: string
name: 0
sourceAddress:
address: string
entry:
address: string
wildcard: string
RouteAccessList 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 RouteAccessList resource accepts the following input properties:
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Route access list name
- Snippet string
- The snippet in which the resource is defined
- Type
Route
Access List Type - Type
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Route access list name
- Snippet string
- The snippet in which the resource is defined
- Type
Route
Access List Type Args - Type
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Route access list name
- snippet String
- The snippet in which the resource is defined
- type
Route
Access List Type - Type
- description string
- Description
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- Route access list name
- snippet string
- The snippet in which the resource is defined
- type
Route
Access List Type - Type
- description str
- Description
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- Route access list name
- snippet str
- The snippet in which the resource is defined
- type
Route
Access List Type Args - Type
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Route access list name
- snippet String
- The snippet in which the resource is defined
- type Property Map
- Type
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteAccessList resource produces the following output properties:
Look up Existing RouteAccessList Resource
Get an existing RouteAccessList 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?: RouteAccessListState, opts?: CustomResourceOptions): RouteAccessList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None,
type: Optional[RouteAccessListTypeArgs] = None) -> RouteAccessListfunc GetRouteAccessList(ctx *Context, name string, id IDInput, state *RouteAccessListState, opts ...ResourceOption) (*RouteAccessList, error)public static RouteAccessList Get(string name, Input<string> id, RouteAccessListState? state, CustomResourceOptions? opts = null)public static RouteAccessList get(String name, Output<String> id, RouteAccessListState state, CustomResourceOptions options)resources: _: type: scm:RouteAccessList 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.
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Route access list name
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Type
Route
Access List Type - Type
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Name string
- Route access list name
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Type
Route
Access List Type Args - Type
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Route access list name
- snippet String
- The snippet in which the resource is defined
- tfid String
- type
Route
Access List Type - Type
- description string
- Description
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- name string
- Route access list name
- snippet string
- The snippet in which the resource is defined
- tfid string
- type
Route
Access List Type - Type
- description str
- Description
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- name str
- Route access list name
- snippet str
- The snippet in which the resource is defined
- tfid str
- type
Route
Access List Type Args - Type
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- name String
- Route access list name
- snippet String
- The snippet in which the resource is defined
- tfid String
- type Property Map
- Type
Supporting Types
RouteAccessListType, RouteAccessListTypeArgs
- ipv4 Property Map
- Ipv4
RouteAccessListTypeIpv4, RouteAccessListTypeIpv4Args
- Ipv4Entries
List<Route
Access List Type Ipv4Ipv4Entry> - IPv4 access lists
- Ipv4Entries
[]Route
Access List Type Ipv4Ipv4Entry - IPv4 access lists
- ipv4Entries
List<Route
Access List Type Ipv4Ipv4Entry> - IPv4 access lists
- ipv4Entries
Route
Access List Type Ipv4Ipv4Entry[] - IPv4 access lists
- ipv4_
entries Sequence[RouteAccess List Type Ipv4Ipv4Entry] - IPv4 access lists
- ipv4Entries List<Property Map>
- IPv4 access lists
RouteAccessListTypeIpv4Ipv4Entry, RouteAccessListTypeIpv4Ipv4EntryArgs
- Action string
- Action
- Destination
Address RouteAccess List Type Ipv4Ipv4Entry Destination Address - Destination address
- Name int
- Sequence number
- Source
Address RouteAccess List Type Ipv4Ipv4Entry Source Address - Source address
- Action string
- Action
- Destination
Address RouteAccess List Type Ipv4Ipv4Entry Destination Address - Destination address
- Name int
- Sequence number
- Source
Address RouteAccess List Type Ipv4Ipv4Entry Source Address - Source address
- action String
- Action
- destination
Address RouteAccess List Type Ipv4Ipv4Entry Destination Address - Destination address
- name Integer
- Sequence number
- source
Address RouteAccess List Type Ipv4Ipv4Entry Source Address - Source address
- action string
- Action
- destination
Address RouteAccess List Type Ipv4Ipv4Entry Destination Address - Destination address
- name number
- Sequence number
- source
Address RouteAccess List Type Ipv4Ipv4Entry Source Address - Source address
- action str
- Action
- destination_
address RouteAccess List Type Ipv4Ipv4Entry Destination Address - Destination address
- name int
- Sequence number
- source_
address RouteAccess List Type Ipv4Ipv4Entry Source Address - Source address
- action String
- Action
- destination
Address Property Map - Destination address
- name Number
- Sequence number
- source
Address Property Map - Source address
RouteAccessListTypeIpv4Ipv4EntryDestinationAddress, RouteAccessListTypeIpv4Ipv4EntryDestinationAddressArgs
- Address string
- Destination IP address
- Entry
Route
Access List Type Ipv4Ipv4Entry Destination Address Entry - Entry
- Address string
- Destination IP address
- Entry
Route
Access List Type Ipv4Ipv4Entry Destination Address Entry - Entry
- address String
- Destination IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Destination Address Entry - Entry
- address string
- Destination IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Destination Address Entry - Entry
- address str
- Destination IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Destination Address Entry - Entry
- address String
- Destination IP address
- entry Property Map
- Entry
RouteAccessListTypeIpv4Ipv4EntryDestinationAddressEntry, RouteAccessListTypeIpv4Ipv4EntryDestinationAddressEntryArgs
RouteAccessListTypeIpv4Ipv4EntrySourceAddress, RouteAccessListTypeIpv4Ipv4EntrySourceAddressArgs
- Address string
- Source IP address
- Entry
Route
Access List Type Ipv4Ipv4Entry Source Address Entry - Entry
- Address string
- Source IP address
- Entry
Route
Access List Type Ipv4Ipv4Entry Source Address Entry - Entry
- address String
- Source IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Source Address Entry - Entry
- address string
- Source IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Source Address Entry - Entry
- address str
- Source IP address
- entry
Route
Access List Type Ipv4Ipv4Entry Source Address Entry - Entry
- address String
- Source IP address
- entry Property Map
- Entry
RouteAccessListTypeIpv4Ipv4EntrySourceAddressEntry, RouteAccessListTypeIpv4Ipv4EntrySourceAddressEntryArgs
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
