1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. TlocListPolicyObject
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

sdwan.TlocListPolicyObject

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

    This resource can manage a TLOC List Policy Object .

    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.TlocListPolicyObject;
    import com.pulumi.sdwan.TlocListPolicyObjectArgs;
    import com.pulumi.sdwan.inputs.TlocListPolicyObjectEntryArgs;
    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 TlocListPolicyObject("example", TlocListPolicyObjectArgs.builder()
                .name("Example")
                .entries(TlocListPolicyObjectEntryArgs.builder()
                    .tloc_ip("1.1.1.2")
                    .color("blue")
                    .encapsulation("gre")
                    .preference(10)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:TlocListPolicyObject
        properties:
          name: Example
          entries:
            - tloc_ip: 1.1.1.2
              color: blue
              encapsulation: gre
              preference: 10
    

    Create TlocListPolicyObject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TlocListPolicyObject(name: string, args: TlocListPolicyObjectArgs, opts?: CustomResourceOptions);
    @overload
    def TlocListPolicyObject(resource_name: str,
                             args: TlocListPolicyObjectArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def TlocListPolicyObject(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             entries: Optional[Sequence[TlocListPolicyObjectEntryArgs]] = None,
                             name: Optional[str] = None)
    func NewTlocListPolicyObject(ctx *Context, name string, args TlocListPolicyObjectArgs, opts ...ResourceOption) (*TlocListPolicyObject, error)
    public TlocListPolicyObject(string name, TlocListPolicyObjectArgs args, CustomResourceOptions? opts = null)
    public TlocListPolicyObject(String name, TlocListPolicyObjectArgs args)
    public TlocListPolicyObject(String name, TlocListPolicyObjectArgs args, CustomResourceOptions options)
    
    type: sdwan:TlocListPolicyObject
    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 TlocListPolicyObjectArgs
    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 TlocListPolicyObjectArgs
    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 TlocListPolicyObjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TlocListPolicyObjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TlocListPolicyObjectArgs
    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 tlocListPolicyObjectResource = new Sdwan.TlocListPolicyObject("tlocListPolicyObjectResource", new()
    {
        Entries = new[]
        {
            new Sdwan.Inputs.TlocListPolicyObjectEntryArgs
            {
                Color = "string",
                Encapsulation = "string",
                TlocIp = "string",
                Preference = 0,
            },
        },
        Name = "string",
    });
    
    example, err := sdwan.NewTlocListPolicyObject(ctx, "tlocListPolicyObjectResource", &sdwan.TlocListPolicyObjectArgs{
    	Entries: sdwan.TlocListPolicyObjectEntryArray{
    		&sdwan.TlocListPolicyObjectEntryArgs{
    			Color:         pulumi.String("string"),
    			Encapsulation: pulumi.String("string"),
    			TlocIp:        pulumi.String("string"),
    			Preference:    pulumi.Int(0),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var tlocListPolicyObjectResource = new TlocListPolicyObject("tlocListPolicyObjectResource", TlocListPolicyObjectArgs.builder()
        .entries(TlocListPolicyObjectEntryArgs.builder()
            .color("string")
            .encapsulation("string")
            .tlocIp("string")
            .preference(0)
            .build())
        .name("string")
        .build());
    
    tloc_list_policy_object_resource = sdwan.TlocListPolicyObject("tlocListPolicyObjectResource",
        entries=[{
            "color": "string",
            "encapsulation": "string",
            "tloc_ip": "string",
            "preference": 0,
        }],
        name="string")
    
    const tlocListPolicyObjectResource = new sdwan.TlocListPolicyObject("tlocListPolicyObjectResource", {
        entries: [{
            color: "string",
            encapsulation: "string",
            tlocIp: "string",
            preference: 0,
        }],
        name: "string",
    });
    
    type: sdwan:TlocListPolicyObject
    properties:
        entries:
            - color: string
              encapsulation: string
              preference: 0
              tlocIp: string
        name: string
    

    TlocListPolicyObject 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 TlocListPolicyObject resource accepts the following input properties:

    Entries List<TlocListPolicyObjectEntry>
    List of entries
    Name string
    The name of the policy object
    Entries []TlocListPolicyObjectEntryArgs
    List of entries
    Name string
    The name of the policy object
    entries List<TlocListPolicyObjectEntry>
    List of entries
    name String
    The name of the policy object
    entries TlocListPolicyObjectEntry[]
    List of entries
    name string
    The name of the policy object
    entries Sequence[TlocListPolicyObjectEntryArgs]
    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 TlocListPolicyObject resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the object
    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    version Integer
    The version of the object
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    The version of the object
    id str
    The provider-assigned unique ID for this managed resource.
    version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    The version of the object

    Look up Existing TlocListPolicyObject Resource

    Get an existing TlocListPolicyObject 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?: TlocListPolicyObjectState, opts?: CustomResourceOptions): TlocListPolicyObject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entries: Optional[Sequence[TlocListPolicyObjectEntryArgs]] = None,
            name: Optional[str] = None,
            version: Optional[int] = None) -> TlocListPolicyObject
    func GetTlocListPolicyObject(ctx *Context, name string, id IDInput, state *TlocListPolicyObjectState, opts ...ResourceOption) (*TlocListPolicyObject, error)
    public static TlocListPolicyObject Get(string name, Input<string> id, TlocListPolicyObjectState? state, CustomResourceOptions? opts = null)
    public static TlocListPolicyObject get(String name, Output<String> id, TlocListPolicyObjectState 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.
    The following state arguments are supported:
    Entries List<TlocListPolicyObjectEntry>
    List of entries
    Name string
    The name of the policy object
    Version int
    The version of the object
    Entries []TlocListPolicyObjectEntryArgs
    List of entries
    Name string
    The name of the policy object
    Version int
    The version of the object
    entries List<TlocListPolicyObjectEntry>
    List of entries
    name String
    The name of the policy object
    version Integer
    The version of the object
    entries TlocListPolicyObjectEntry[]
    List of entries
    name string
    The name of the policy object
    version number
    The version of the object
    entries Sequence[TlocListPolicyObjectEntryArgs]
    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

    TlocListPolicyObjectEntry, TlocListPolicyObjectEntryArgs

    Color string
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    Encapsulation string
    Encapsulation

    • Choices: ipsec, gre
    TlocIp string
    TLOC IP
    Preference int
    Preference

    • Range: 0-4294967295
    Color string
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    Encapsulation string
    Encapsulation

    • Choices: ipsec, gre
    TlocIp string
    TLOC IP
    Preference int
    Preference

    • Range: 0-4294967295
    color String
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    encapsulation String
    Encapsulation

    • Choices: ipsec, gre
    tlocIp String
    TLOC IP
    preference Integer
    Preference

    • Range: 0-4294967295
    color string
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    encapsulation string
    Encapsulation

    • Choices: ipsec, gre
    tlocIp string
    TLOC IP
    preference number
    Preference

    • Range: 0-4294967295
    color str
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    encapsulation str
    Encapsulation

    • Choices: ipsec, gre
    tloc_ip str
    TLOC IP
    preference int
    Preference

    • Range: 0-4294967295
    color String
    Color

    • Choices: default, 3g, biz-internet, blue, bronze, custom1, custom2, custom3, gold, green, lte, metro-ethernet, mpls, private1, private2, private3, private4, private5, private6, public-internet, red, silver
    encapsulation String
    Encapsulation

    • Choices: ipsec, gre
    tlocIp String
    TLOC IP
    preference Number
    Preference

    • Range: 0-4294967295

    Import

    $ pulumi import sdwan:index/tlocListPolicyObject:TlocListPolicyObject 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.
    sdwan logo
    Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi