sdwan.TlocListPolicyObject
Explore with Pulumi AI
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<Tloc
List Policy Object Entry> - List of entries
- Name string
- The name of the policy object
- Entries
[]Tloc
List Policy Object Entry Args - List of entries
- Name string
- The name of the policy object
- entries
List<Tloc
List Policy Object Entry> - List of entries
- name String
- The name of the policy object
- entries
Tloc
List Policy Object Entry[] - List of entries
- name string
- The name of the policy object
- entries
Sequence[Tloc
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 TlocListPolicyObject resource produces the following output properties:
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.
- Entries
List<Tloc
List Policy Object Entry> - List of entries
- Name string
- The name of the policy object
- Version int
- The version of the object
- Entries
[]Tloc
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<Tloc
List Policy Object Entry> - List of entries
- name String
- The name of the policy object
- version Integer
- The version of the object
- entries
Tloc
List Policy Object Entry[] - List of entries
- name string
- The name of the policy object
- version number
- The version of the object
- entries
Sequence[Tloc
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
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
- Choices:
- Encapsulation string
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- Tloc
Ip string - TLOC IP
- Preference int
- Preference
- Range:
0
-4294967295
- Range:
- 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
- Choices:
- Encapsulation string
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- Tloc
Ip string - TLOC IP
- Preference int
- Preference
- Range:
0
-4294967295
- Range:
- 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
- Choices:
- encapsulation String
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- tloc
Ip String - TLOC IP
- preference Integer
- Preference
- Range:
0
-4294967295
- Range:
- 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
- Choices:
- encapsulation string
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- tloc
Ip string - TLOC IP
- preference number
- Preference
- Range:
0
-4294967295
- Range:
- 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
- Choices:
- encapsulation str
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- tloc_
ip str - TLOC IP
- preference int
- Preference
- Range:
0
-4294967295
- Range:
- 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
- Choices:
- encapsulation String
- Encapsulation
- Choices:
ipsec
,gre
- Choices:
- tloc
Ip String - TLOC IP
- preference Number
- Preference
- Range:
0
-4294967295
- Range:
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.