sdwan.Ipv4PrefixListPolicyObject
Explore with Pulumi AI
This resource can manage a IPv4 Prefix List Policy Object .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = new sdwan.Ipv4PrefixListPolicyObject("example", {
name: "Example",
entries: [{
prefix: "10.0.0.0/12",
le: 32,
ge: 24,
}],
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.Ipv4PrefixListPolicyObject("example",
name="Example",
entries=[{
"prefix": "10.0.0.0/12",
"le": 32,
"ge": 24,
}])
package main
import (
"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdwan.NewIpv4PrefixListPolicyObject(ctx, "example", &sdwan.Ipv4PrefixListPolicyObjectArgs{
Name: pulumi.String("Example"),
Entries: sdwan.Ipv4PrefixListPolicyObjectEntryArray{
&sdwan.Ipv4PrefixListPolicyObjectEntryArgs{
Prefix: pulumi.String("10.0.0.0/12"),
Le: pulumi.Int(32),
Ge: pulumi.Int(24),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() =>
{
var example = new Sdwan.Ipv4PrefixListPolicyObject("example", new()
{
Name = "Example",
Entries = new[]
{
new Sdwan.Inputs.Ipv4PrefixListPolicyObjectEntryArgs
{
Prefix = "10.0.0.0/12",
Le = 32,
Ge = 24,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.Ipv4PrefixListPolicyObject;
import com.pulumi.sdwan.Ipv4PrefixListPolicyObjectArgs;
import com.pulumi.sdwan.inputs.Ipv4PrefixListPolicyObjectEntryArgs;
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 Ipv4PrefixListPolicyObject("example", Ipv4PrefixListPolicyObjectArgs.builder()
.name("Example")
.entries(Ipv4PrefixListPolicyObjectEntryArgs.builder()
.prefix("10.0.0.0/12")
.le(32)
.ge(24)
.build())
.build());
}
}
resources:
example:
type: sdwan:Ipv4PrefixListPolicyObject
properties:
name: Example
entries:
- prefix: 10.0.0.0/12
le: 32
ge: 24
Create Ipv4PrefixListPolicyObject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ipv4PrefixListPolicyObject(name: string, args: Ipv4PrefixListPolicyObjectArgs, opts?: CustomResourceOptions);
@overload
def Ipv4PrefixListPolicyObject(resource_name: str,
args: Ipv4PrefixListPolicyObjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ipv4PrefixListPolicyObject(resource_name: str,
opts: Optional[ResourceOptions] = None,
entries: Optional[Sequence[Ipv4PrefixListPolicyObjectEntryArgs]] = None,
name: Optional[str] = None)
func NewIpv4PrefixListPolicyObject(ctx *Context, name string, args Ipv4PrefixListPolicyObjectArgs, opts ...ResourceOption) (*Ipv4PrefixListPolicyObject, error)
public Ipv4PrefixListPolicyObject(string name, Ipv4PrefixListPolicyObjectArgs args, CustomResourceOptions? opts = null)
public Ipv4PrefixListPolicyObject(String name, Ipv4PrefixListPolicyObjectArgs args)
public Ipv4PrefixListPolicyObject(String name, Ipv4PrefixListPolicyObjectArgs args, CustomResourceOptions options)
type: sdwan:Ipv4PrefixListPolicyObject
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 Ipv4PrefixListPolicyObjectArgs
- 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 Ipv4PrefixListPolicyObjectArgs
- 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 Ipv4PrefixListPolicyObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv4PrefixListPolicyObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ipv4PrefixListPolicyObjectArgs
- 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 ipv4PrefixListPolicyObjectResource = new Sdwan.Ipv4PrefixListPolicyObject("ipv4PrefixListPolicyObjectResource", new()
{
Entries = new[]
{
new Sdwan.Inputs.Ipv4PrefixListPolicyObjectEntryArgs
{
Prefix = "string",
Ge = 0,
Le = 0,
},
},
Name = "string",
});
example, err := sdwan.NewIpv4PrefixListPolicyObject(ctx, "ipv4PrefixListPolicyObjectResource", &sdwan.Ipv4PrefixListPolicyObjectArgs{
Entries: sdwan.Ipv4PrefixListPolicyObjectEntryArray{
&sdwan.Ipv4PrefixListPolicyObjectEntryArgs{
Prefix: pulumi.String("string"),
Ge: pulumi.Int(0),
Le: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
})
var ipv4PrefixListPolicyObjectResource = new Ipv4PrefixListPolicyObject("ipv4PrefixListPolicyObjectResource", Ipv4PrefixListPolicyObjectArgs.builder()
.entries(Ipv4PrefixListPolicyObjectEntryArgs.builder()
.prefix("string")
.ge(0)
.le(0)
.build())
.name("string")
.build());
ipv4_prefix_list_policy_object_resource = sdwan.Ipv4PrefixListPolicyObject("ipv4PrefixListPolicyObjectResource",
entries=[{
"prefix": "string",
"ge": 0,
"le": 0,
}],
name="string")
const ipv4PrefixListPolicyObjectResource = new sdwan.Ipv4PrefixListPolicyObject("ipv4PrefixListPolicyObjectResource", {
entries: [{
prefix: "string",
ge: 0,
le: 0,
}],
name: "string",
});
type: sdwan:Ipv4PrefixListPolicyObject
properties:
entries:
- ge: 0
le: 0
prefix: string
name: string
Ipv4PrefixListPolicyObject 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 Ipv4PrefixListPolicyObject resource accepts the following input properties:
- Entries
List<Ipv4Prefix
List Policy Object Entry> - List of entries
- Name string
- The name of the policy object
- Entries
[]Ipv4Prefix
List Policy Object Entry Args - List of entries
- Name string
- The name of the policy object
- entries
List<Ipv4Prefix
List Policy Object Entry> - List of entries
- name String
- The name of the policy object
- entries
Ipv4Prefix
List Policy Object Entry[] - List of entries
- name string
- The name of the policy object
- entries
Sequence[Ipv4Prefix
List Policy Object Entry Args] - List of entries
- name str
- The name of the policy object
- entries List<Property Map>
- List of entries
- name String
- The name of the policy object
Outputs
All input properties are implicitly available as output properties. Additionally, the Ipv4PrefixListPolicyObject resource produces the following output properties:
Look up Existing Ipv4PrefixListPolicyObject Resource
Get an existing Ipv4PrefixListPolicyObject 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?: Ipv4PrefixListPolicyObjectState, opts?: CustomResourceOptions): Ipv4PrefixListPolicyObject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
entries: Optional[Sequence[Ipv4PrefixListPolicyObjectEntryArgs]] = None,
name: Optional[str] = None,
version: Optional[int] = None) -> Ipv4PrefixListPolicyObject
func GetIpv4PrefixListPolicyObject(ctx *Context, name string, id IDInput, state *Ipv4PrefixListPolicyObjectState, opts ...ResourceOption) (*Ipv4PrefixListPolicyObject, error)
public static Ipv4PrefixListPolicyObject Get(string name, Input<string> id, Ipv4PrefixListPolicyObjectState? state, CustomResourceOptions? opts = null)
public static Ipv4PrefixListPolicyObject get(String name, Output<String> id, Ipv4PrefixListPolicyObjectState 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.
- Entries
List<Ipv4Prefix
List Policy Object Entry> - List of entries
- Name string
- The name of the policy object
- Version int
- The version of the object
- Entries
[]Ipv4Prefix
List Policy Object Entry Args - List of entries
- Name string
- The name of the policy object
- Version int
- The version of the object
- entries
List<Ipv4Prefix
List Policy Object Entry> - List of entries
- name String
- The name of the policy object
- version Integer
- The version of the object
- entries
Ipv4Prefix
List Policy Object Entry[] - List of entries
- name string
- The name of the policy object
- version number
- The version of the object
- entries
Sequence[Ipv4Prefix
List Policy Object Entry Args] - List of entries
- name str
- The name of the policy object
- version int
- The version of the object
- entries List<Property Map>
- List of entries
- name String
- The name of the policy object
- version Number
- The version of the object
Supporting Types
Ipv4PrefixListPolicyObjectEntry, Ipv4PrefixListPolicyObjectEntryArgs
Import
$ pulumi import sdwan:index/ipv4PrefixListPolicyObject:Ipv4PrefixListPolicyObject 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.