RoutePrefixList resource
Create RoutePrefixList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoutePrefixList(name: string, args?: RoutePrefixListArgs, opts?: CustomResourceOptions);@overload
def RoutePrefixList(resource_name: str,
args: Optional[RoutePrefixListArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RoutePrefixList(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
ipv4: Optional[RoutePrefixListIpv4Args] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewRoutePrefixList(ctx *Context, name string, args *RoutePrefixListArgs, opts ...ResourceOption) (*RoutePrefixList, error)public RoutePrefixList(string name, RoutePrefixListArgs? args = null, CustomResourceOptions? opts = null)
public RoutePrefixList(String name, RoutePrefixListArgs args)
public RoutePrefixList(String name, RoutePrefixListArgs args, CustomResourceOptions options)
type: scm:RoutePrefixList
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 RoutePrefixListArgs
- 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 RoutePrefixListArgs
- 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 RoutePrefixListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutePrefixListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutePrefixListArgs
- 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 routePrefixListResource = new Scm.RoutePrefixList("routePrefixListResource", new()
{
Description = "string",
Device = "string",
Folder = "string",
Ipv4 = new Scm.Inputs.RoutePrefixListIpv4Args
{
Ipv4Entries = new[]
{
new Scm.Inputs.RoutePrefixListIpv4Ipv4EntryArgs
{
Action = "string",
Name = 0,
Prefix = new Scm.Inputs.RoutePrefixListIpv4Ipv4EntryPrefixArgs
{
Entry = new Scm.Inputs.RoutePrefixListIpv4Ipv4EntryPrefixEntryArgs
{
GreaterThanOrEqual = 0,
LessThanOrEqual = 0,
Network = "string",
},
Network = "string",
},
},
},
},
Name = "string",
Snippet = "string",
});
example, err := scm.NewRoutePrefixList(ctx, "routePrefixListResource", &scm.RoutePrefixListArgs{
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Ipv4: &scm.RoutePrefixListIpv4Args{
Ipv4Entries: scm.RoutePrefixListIpv4Ipv4EntryArray{
&scm.RoutePrefixListIpv4Ipv4EntryArgs{
Action: pulumi.String("string"),
Name: pulumi.Int(0),
Prefix: &scm.RoutePrefixListIpv4Ipv4EntryPrefixArgs{
Entry: &scm.RoutePrefixListIpv4Ipv4EntryPrefixEntryArgs{
GreaterThanOrEqual: pulumi.Int(0),
LessThanOrEqual: pulumi.Int(0),
Network: pulumi.String("string"),
},
Network: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var routePrefixListResource = new RoutePrefixList("routePrefixListResource", RoutePrefixListArgs.builder()
.description("string")
.device("string")
.folder("string")
.ipv4(RoutePrefixListIpv4Args.builder()
.ipv4Entries(RoutePrefixListIpv4Ipv4EntryArgs.builder()
.action("string")
.name(0)
.prefix(RoutePrefixListIpv4Ipv4EntryPrefixArgs.builder()
.entry(RoutePrefixListIpv4Ipv4EntryPrefixEntryArgs.builder()
.greaterThanOrEqual(0)
.lessThanOrEqual(0)
.network("string")
.build())
.network("string")
.build())
.build())
.build())
.name("string")
.snippet("string")
.build());
route_prefix_list_resource = scm.RoutePrefixList("routePrefixListResource",
description="string",
device="string",
folder="string",
ipv4={
"ipv4_entries": [{
"action": "string",
"name": 0,
"prefix": {
"entry": {
"greater_than_or_equal": 0,
"less_than_or_equal": 0,
"network": "string",
},
"network": "string",
},
}],
},
name="string",
snippet="string")
const routePrefixListResource = new scm.RoutePrefixList("routePrefixListResource", {
description: "string",
device: "string",
folder: "string",
ipv4: {
ipv4Entries: [{
action: "string",
name: 0,
prefix: {
entry: {
greaterThanOrEqual: 0,
lessThanOrEqual: 0,
network: "string",
},
network: "string",
},
}],
},
name: "string",
snippet: "string",
});
type: scm:RoutePrefixList
properties:
description: string
device: string
folder: string
ipv4:
ipv4Entries:
- action: string
name: 0
prefix:
entry:
greaterThanOrEqual: 0
lessThanOrEqual: 0
network: string
network: string
name: string
snippet: string
RoutePrefixList 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 RoutePrefixList 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
- Ipv4
Route
Prefix List Ipv4 - Ipv4
- Name string
- Filter prefix list name
- Snippet string
- The snippet in which the resource is defined
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Ipv4
Route
Prefix List Ipv4Args - Ipv4
- Name string
- Filter prefix list name
- Snippet string
- The snippet in which the resource is defined
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4 - Ipv4
- name String
- Filter prefix list name
- snippet String
- The snippet in which the resource is defined
- description string
- Description
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4 - Ipv4
- name string
- Filter prefix list name
- snippet string
- The snippet in which the resource is defined
- description str
- Description
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4Args - Ipv4
- name str
- Filter prefix list name
- snippet str
- The snippet in which the resource is defined
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- ipv4 Property Map
- Ipv4
- name String
- Filter prefix list name
- snippet String
- The snippet in which the resource is defined
Outputs
All input properties are implicitly available as output properties. Additionally, the RoutePrefixList resource produces the following output properties:
Look up Existing RoutePrefixList Resource
Get an existing RoutePrefixList 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?: RoutePrefixListState, opts?: CustomResourceOptions): RoutePrefixList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
ipv4: Optional[RoutePrefixListIpv4Args] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> RoutePrefixListfunc GetRoutePrefixList(ctx *Context, name string, id IDInput, state *RoutePrefixListState, opts ...ResourceOption) (*RoutePrefixList, error)public static RoutePrefixList Get(string name, Input<string> id, RoutePrefixListState? state, CustomResourceOptions? opts = null)public static RoutePrefixList get(String name, Output<String> id, RoutePrefixListState state, CustomResourceOptions options)resources: _: type: scm:RoutePrefixList 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
- Ipv4
Route
Prefix List Ipv4 - Ipv4
- Name string
- Filter prefix list name
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Description string
- Description
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Ipv4
Route
Prefix List Ipv4Args - Ipv4
- Name string
- Filter prefix list name
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4 - Ipv4
- name String
- Filter prefix list name
- snippet String
- The snippet in which the resource is defined
- tfid String
- description string
- Description
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4 - Ipv4
- name string
- Filter prefix list name
- snippet string
- The snippet in which the resource is defined
- tfid string
- description str
- Description
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- ipv4
Route
Prefix List Ipv4Args - Ipv4
- name str
- Filter prefix list name
- snippet str
- The snippet in which the resource is defined
- tfid str
- description String
- Description
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- ipv4 Property Map
- Ipv4
- name String
- Filter prefix list name
- snippet String
- The snippet in which the resource is defined
- tfid String
Supporting Types
RoutePrefixListIpv4, RoutePrefixListIpv4Args
- Ipv4Entries
List<Route
Prefix List Ipv4Ipv4Entry> - IPv4 prefix lists
- Ipv4Entries
[]Route
Prefix List Ipv4Ipv4Entry - IPv4 prefix lists
- ipv4Entries
List<Route
Prefix List Ipv4Ipv4Entry> - IPv4 prefix lists
- ipv4Entries
Route
Prefix List Ipv4Ipv4Entry[] - IPv4 prefix lists
- ipv4_
entries Sequence[RoutePrefix List Ipv4Ipv4Entry] - IPv4 prefix lists
- ipv4Entries List<Property Map>
- IPv4 prefix lists
RoutePrefixListIpv4Ipv4Entry, RoutePrefixListIpv4Ipv4EntryArgs
- Action string
- Action
- Name int
- Sequence number
- Prefix
Route
Prefix List Ipv4Ipv4Entry Prefix - Prefix
- Action string
- Action
- Name int
- Sequence number
- Prefix
Route
Prefix List Ipv4Ipv4Entry Prefix - Prefix
- action String
- Action
- name Integer
- Sequence number
- prefix
Route
Prefix List Ipv4Ipv4Entry Prefix - Prefix
- action string
- Action
- name number
- Sequence number
- prefix
Route
Prefix List Ipv4Ipv4Entry Prefix - Prefix
- action str
- Action
- name int
- Sequence number
- prefix
Route
Prefix List Ipv4Ipv4Entry Prefix - Prefix
- action String
- Action
- name Number
- Sequence number
- prefix Property Map
- Prefix
RoutePrefixListIpv4Ipv4EntryPrefix, RoutePrefixListIpv4Ipv4EntryPrefixArgs
- Entry
Route
Prefix List Ipv4Ipv4Entry Prefix Entry - Entry
- Network string
- Network
- Entry
Route
Prefix List Ipv4Ipv4Entry Prefix Entry - Entry
- Network string
- Network
- entry
Route
Prefix List Ipv4Ipv4Entry Prefix Entry - Entry
- network String
- Network
- entry
Route
Prefix List Ipv4Ipv4Entry Prefix Entry - Entry
- network string
- Network
- entry
Route
Prefix List Ipv4Ipv4Entry Prefix Entry - Entry
- network str
- Network
- entry Property Map
- Entry
- network String
- Network
RoutePrefixListIpv4Ipv4EntryPrefixEntry, RoutePrefixListIpv4Ipv4EntryPrefixEntryArgs
- Greater
Than intOr Equal - Greater than or equal to
- Less
Than intOr Equal - Less than or equal to
- Network string
- Network
- Greater
Than intOr Equal - Greater than or equal to
- Less
Than intOr Equal - Less than or equal to
- Network string
- Network
- greater
Than IntegerOr Equal - Greater than or equal to
- less
Than IntegerOr Equal - Less than or equal to
- network String
- Network
- greater
Than numberOr Equal - Greater than or equal to
- less
Than numberOr Equal - Less than or equal to
- network string
- Network
- greater_
than_ intor_ equal - Greater than or equal to
- less_
than_ intor_ equal - Less than or equal to
- network str
- Network
- greater
Than NumberOr Equal - Greater than or equal to
- less
Than NumberOr Equal - Less than or equal to
- network String
- Network
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
