sdwan.ObjectGroupPolicyDefinition
Explore with Pulumi AI
This resource can manage a Object Group Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = new sdwan.ObjectGroupPolicyDefinition("example", {
name: "Example",
description: "My description",
ipv4Prefix: "10.1.1.0/24",
fqdn: "cisco.com",
port: "80-90",
geoLocation: "AF",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.ObjectGroupPolicyDefinition("example",
name="Example",
description="My description",
ipv4_prefix="10.1.1.0/24",
fqdn="cisco.com",
port="80-90",
geo_location="AF")
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.NewObjectGroupPolicyDefinition(ctx, "example", &sdwan.ObjectGroupPolicyDefinitionArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("My description"),
Ipv4Prefix: pulumi.String("10.1.1.0/24"),
Fqdn: pulumi.String("cisco.com"),
Port: pulumi.String("80-90"),
GeoLocation: pulumi.String("AF"),
})
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.ObjectGroupPolicyDefinition("example", new()
{
Name = "Example",
Description = "My description",
Ipv4Prefix = "10.1.1.0/24",
Fqdn = "cisco.com",
Port = "80-90",
GeoLocation = "AF",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.ObjectGroupPolicyDefinition;
import com.pulumi.sdwan.ObjectGroupPolicyDefinitionArgs;
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 ObjectGroupPolicyDefinition("example", ObjectGroupPolicyDefinitionArgs.builder()
.name("Example")
.description("My description")
.ipv4Prefix("10.1.1.0/24")
.fqdn("cisco.com")
.port("80-90")
.geoLocation("AF")
.build());
}
}
resources:
example:
type: sdwan:ObjectGroupPolicyDefinition
properties:
name: Example
description: My description
ipv4Prefix: 10.1.1.0/24
fqdn: cisco.com
port: 80-90
geoLocation: AF
Create ObjectGroupPolicyDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectGroupPolicyDefinition(name: string, args: ObjectGroupPolicyDefinitionArgs, opts?: CustomResourceOptions);
@overload
def ObjectGroupPolicyDefinition(resource_name: str,
args: ObjectGroupPolicyDefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectGroupPolicyDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
geo_location: Optional[str] = None,
geo_location_list_version: Optional[int] = None,
data_ipv4_prefix_list_version: Optional[int] = None,
data_fqdn_prefix_list_version: Optional[int] = None,
fqdn: Optional[str] = None,
data_fqdn_prefix_list_id: Optional[str] = None,
geo_location_list_id: Optional[str] = None,
data_ipv4_prefix_list_id: Optional[str] = None,
ipv4_prefix: Optional[str] = None,
ipv4_prefix_variable: Optional[str] = None,
name: Optional[str] = None,
port: Optional[str] = None,
port_list_id: Optional[str] = None,
port_list_version: Optional[int] = None)
func NewObjectGroupPolicyDefinition(ctx *Context, name string, args ObjectGroupPolicyDefinitionArgs, opts ...ResourceOption) (*ObjectGroupPolicyDefinition, error)
public ObjectGroupPolicyDefinition(string name, ObjectGroupPolicyDefinitionArgs args, CustomResourceOptions? opts = null)
public ObjectGroupPolicyDefinition(String name, ObjectGroupPolicyDefinitionArgs args)
public ObjectGroupPolicyDefinition(String name, ObjectGroupPolicyDefinitionArgs args, CustomResourceOptions options)
type: sdwan:ObjectGroupPolicyDefinition
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 ObjectGroupPolicyDefinitionArgs
- 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 ObjectGroupPolicyDefinitionArgs
- 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 ObjectGroupPolicyDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectGroupPolicyDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectGroupPolicyDefinitionArgs
- 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 objectGroupPolicyDefinitionResource = new Sdwan.ObjectGroupPolicyDefinition("objectGroupPolicyDefinitionResource", new()
{
Description = "string",
GeoLocation = "string",
GeoLocationListVersion = 0,
DataIpv4PrefixListVersion = 0,
DataFqdnPrefixListVersion = 0,
Fqdn = "string",
DataFqdnPrefixListId = "string",
GeoLocationListId = "string",
DataIpv4PrefixListId = "string",
Ipv4Prefix = "string",
Ipv4PrefixVariable = "string",
Name = "string",
Port = "string",
PortListId = "string",
PortListVersion = 0,
});
example, err := sdwan.NewObjectGroupPolicyDefinition(ctx, "objectGroupPolicyDefinitionResource", &sdwan.ObjectGroupPolicyDefinitionArgs{
Description: pulumi.String("string"),
GeoLocation: pulumi.String("string"),
GeoLocationListVersion: pulumi.Int(0),
DataIpv4PrefixListVersion: pulumi.Int(0),
DataFqdnPrefixListVersion: pulumi.Int(0),
Fqdn: pulumi.String("string"),
DataFqdnPrefixListId: pulumi.String("string"),
GeoLocationListId: pulumi.String("string"),
DataIpv4PrefixListId: pulumi.String("string"),
Ipv4Prefix: pulumi.String("string"),
Ipv4PrefixVariable: pulumi.String("string"),
Name: pulumi.String("string"),
Port: pulumi.String("string"),
PortListId: pulumi.String("string"),
PortListVersion: pulumi.Int(0),
})
var objectGroupPolicyDefinitionResource = new ObjectGroupPolicyDefinition("objectGroupPolicyDefinitionResource", ObjectGroupPolicyDefinitionArgs.builder()
.description("string")
.geoLocation("string")
.geoLocationListVersion(0)
.dataIpv4PrefixListVersion(0)
.dataFqdnPrefixListVersion(0)
.fqdn("string")
.dataFqdnPrefixListId("string")
.geoLocationListId("string")
.dataIpv4PrefixListId("string")
.ipv4Prefix("string")
.ipv4PrefixVariable("string")
.name("string")
.port("string")
.portListId("string")
.portListVersion(0)
.build());
object_group_policy_definition_resource = sdwan.ObjectGroupPolicyDefinition("objectGroupPolicyDefinitionResource",
description="string",
geo_location="string",
geo_location_list_version=0,
data_ipv4_prefix_list_version=0,
data_fqdn_prefix_list_version=0,
fqdn="string",
data_fqdn_prefix_list_id="string",
geo_location_list_id="string",
data_ipv4_prefix_list_id="string",
ipv4_prefix="string",
ipv4_prefix_variable="string",
name="string",
port="string",
port_list_id="string",
port_list_version=0)
const objectGroupPolicyDefinitionResource = new sdwan.ObjectGroupPolicyDefinition("objectGroupPolicyDefinitionResource", {
description: "string",
geoLocation: "string",
geoLocationListVersion: 0,
dataIpv4PrefixListVersion: 0,
dataFqdnPrefixListVersion: 0,
fqdn: "string",
dataFqdnPrefixListId: "string",
geoLocationListId: "string",
dataIpv4PrefixListId: "string",
ipv4Prefix: "string",
ipv4PrefixVariable: "string",
name: "string",
port: "string",
portListId: "string",
portListVersion: 0,
});
type: sdwan:ObjectGroupPolicyDefinition
properties:
dataFqdnPrefixListId: string
dataFqdnPrefixListVersion: 0
dataIpv4PrefixListId: string
dataIpv4PrefixListVersion: 0
description: string
fqdn: string
geoLocation: string
geoLocationListId: string
geoLocationListVersion: 0
ipv4Prefix: string
ipv4PrefixVariable: string
name: string
port: string
portListId: string
portListVersion: 0
ObjectGroupPolicyDefinition 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 ObjectGroupPolicyDefinition resource accepts the following input properties:
- Description string
- The description of the policy definition
- Data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- Data
Fqdn intPrefix List Version - Data FQDN prefix list version
- Data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- Data
Ipv4Prefix intList Version - Data IPv4 prefix list version
- Fqdn string
- Fully qualified domain name
- Geo
Location string - Geo location
- Geo
Location stringList Id - Geo location list ID
- Geo
Location intList Version - Geo location list version
- Ipv4Prefix string
- IPv4 prefix
- Ipv4Prefix
Variable string - IPv4 prefix variable name
- Name string
- The name of the policy definition
- Port string
- Port or range of ports
- Port
List stringId - Port list ID
- Port
List intVersion - Port list version
- Description string
- The description of the policy definition
- Data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- Data
Fqdn intPrefix List Version - Data FQDN prefix list version
- Data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- Data
Ipv4Prefix intList Version - Data IPv4 prefix list version
- Fqdn string
- Fully qualified domain name
- Geo
Location string - Geo location
- Geo
Location stringList Id - Geo location list ID
- Geo
Location intList Version - Geo location list version
- Ipv4Prefix string
- IPv4 prefix
- Ipv4Prefix
Variable string - IPv4 prefix variable name
- Name string
- The name of the policy definition
- Port string
- Port or range of ports
- Port
List stringId - Port list ID
- Port
List intVersion - Port list version
- description String
- The description of the policy definition
- data
Fqdn StringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn IntegerPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix StringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix IntegerList Version - Data IPv4 prefix list version
- fqdn String
- Fully qualified domain name
- geo
Location String - Geo location
- geo
Location StringList Id - Geo location list ID
- geo
Location IntegerList Version - Geo location list version
- ipv4Prefix String
- IPv4 prefix
- ipv4Prefix
Variable String - IPv4 prefix variable name
- name String
- The name of the policy definition
- port String
- Port or range of ports
- port
List StringId - Port list ID
- port
List IntegerVersion - Port list version
- description string
- The description of the policy definition
- data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn numberPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix numberList Version - Data IPv4 prefix list version
- fqdn string
- Fully qualified domain name
- geo
Location string - Geo location
- geo
Location stringList Id - Geo location list ID
- geo
Location numberList Version - Geo location list version
- ipv4Prefix string
- IPv4 prefix
- ipv4Prefix
Variable string - IPv4 prefix variable name
- name string
- The name of the policy definition
- port string
- Port or range of ports
- port
List stringId - Port list ID
- port
List numberVersion - Port list version
- description str
- The description of the policy definition
- data_
fqdn_ strprefix_ list_ id - Data FQDN prefix list ID
- data_
fqdn_ intprefix_ list_ version - Data FQDN prefix list version
- data_
ipv4_ strprefix_ list_ id - Data IPv4 prefix list ID
- data_
ipv4_ intprefix_ list_ version - Data IPv4 prefix list version
- fqdn str
- Fully qualified domain name
- geo_
location str - Geo location
- geo_
location_ strlist_ id - Geo location list ID
- geo_
location_ intlist_ version - Geo location list version
- ipv4_
prefix str - IPv4 prefix
- ipv4_
prefix_ strvariable - IPv4 prefix variable name
- name str
- The name of the policy definition
- port str
- Port or range of ports
- port_
list_ strid - Port list ID
- port_
list_ intversion - Port list version
- description String
- The description of the policy definition
- data
Fqdn StringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn NumberPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix StringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix NumberList Version - Data IPv4 prefix list version
- fqdn String
- Fully qualified domain name
- geo
Location String - Geo location
- geo
Location StringList Id - Geo location list ID
- geo
Location NumberList Version - Geo location list version
- ipv4Prefix String
- IPv4 prefix
- ipv4Prefix
Variable String - IPv4 prefix variable name
- name String
- The name of the policy definition
- port String
- Port or range of ports
- port
List StringId - Port list ID
- port
List NumberVersion - Port list version
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectGroupPolicyDefinition resource produces the following output properties:
Look up Existing ObjectGroupPolicyDefinition Resource
Get an existing ObjectGroupPolicyDefinition 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?: ObjectGroupPolicyDefinitionState, opts?: CustomResourceOptions): ObjectGroupPolicyDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_fqdn_prefix_list_id: Optional[str] = None,
data_fqdn_prefix_list_version: Optional[int] = None,
data_ipv4_prefix_list_id: Optional[str] = None,
data_ipv4_prefix_list_version: Optional[int] = None,
description: Optional[str] = None,
fqdn: Optional[str] = None,
geo_location: Optional[str] = None,
geo_location_list_id: Optional[str] = None,
geo_location_list_version: Optional[int] = None,
ipv4_prefix: Optional[str] = None,
ipv4_prefix_variable: Optional[str] = None,
name: Optional[str] = None,
port: Optional[str] = None,
port_list_id: Optional[str] = None,
port_list_version: Optional[int] = None,
version: Optional[int] = None) -> ObjectGroupPolicyDefinition
func GetObjectGroupPolicyDefinition(ctx *Context, name string, id IDInput, state *ObjectGroupPolicyDefinitionState, opts ...ResourceOption) (*ObjectGroupPolicyDefinition, error)
public static ObjectGroupPolicyDefinition Get(string name, Input<string> id, ObjectGroupPolicyDefinitionState? state, CustomResourceOptions? opts = null)
public static ObjectGroupPolicyDefinition get(String name, Output<String> id, ObjectGroupPolicyDefinitionState 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.
- Data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- Data
Fqdn intPrefix List Version - Data FQDN prefix list version
- Data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- Data
Ipv4Prefix intList Version - Data IPv4 prefix list version
- Description string
- The description of the policy definition
- Fqdn string
- Fully qualified domain name
- Geo
Location string - Geo location
- Geo
Location stringList Id - Geo location list ID
- Geo
Location intList Version - Geo location list version
- Ipv4Prefix string
- IPv4 prefix
- Ipv4Prefix
Variable string - IPv4 prefix variable name
- Name string
- The name of the policy definition
- Port string
- Port or range of ports
- Port
List stringId - Port list ID
- Port
List intVersion - Port list version
- Version int
- The version of the object
- Data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- Data
Fqdn intPrefix List Version - Data FQDN prefix list version
- Data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- Data
Ipv4Prefix intList Version - Data IPv4 prefix list version
- Description string
- The description of the policy definition
- Fqdn string
- Fully qualified domain name
- Geo
Location string - Geo location
- Geo
Location stringList Id - Geo location list ID
- Geo
Location intList Version - Geo location list version
- Ipv4Prefix string
- IPv4 prefix
- Ipv4Prefix
Variable string - IPv4 prefix variable name
- Name string
- The name of the policy definition
- Port string
- Port or range of ports
- Port
List stringId - Port list ID
- Port
List intVersion - Port list version
- Version int
- The version of the object
- data
Fqdn StringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn IntegerPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix StringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix IntegerList Version - Data IPv4 prefix list version
- description String
- The description of the policy definition
- fqdn String
- Fully qualified domain name
- geo
Location String - Geo location
- geo
Location StringList Id - Geo location list ID
- geo
Location IntegerList Version - Geo location list version
- ipv4Prefix String
- IPv4 prefix
- ipv4Prefix
Variable String - IPv4 prefix variable name
- name String
- The name of the policy definition
- port String
- Port or range of ports
- port
List StringId - Port list ID
- port
List IntegerVersion - Port list version
- version Integer
- The version of the object
- data
Fqdn stringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn numberPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix stringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix numberList Version - Data IPv4 prefix list version
- description string
- The description of the policy definition
- fqdn string
- Fully qualified domain name
- geo
Location string - Geo location
- geo
Location stringList Id - Geo location list ID
- geo
Location numberList Version - Geo location list version
- ipv4Prefix string
- IPv4 prefix
- ipv4Prefix
Variable string - IPv4 prefix variable name
- name string
- The name of the policy definition
- port string
- Port or range of ports
- port
List stringId - Port list ID
- port
List numberVersion - Port list version
- version number
- The version of the object
- data_
fqdn_ strprefix_ list_ id - Data FQDN prefix list ID
- data_
fqdn_ intprefix_ list_ version - Data FQDN prefix list version
- data_
ipv4_ strprefix_ list_ id - Data IPv4 prefix list ID
- data_
ipv4_ intprefix_ list_ version - Data IPv4 prefix list version
- description str
- The description of the policy definition
- fqdn str
- Fully qualified domain name
- geo_
location str - Geo location
- geo_
location_ strlist_ id - Geo location list ID
- geo_
location_ intlist_ version - Geo location list version
- ipv4_
prefix str - IPv4 prefix
- ipv4_
prefix_ strvariable - IPv4 prefix variable name
- name str
- The name of the policy definition
- port str
- Port or range of ports
- port_
list_ strid - Port list ID
- port_
list_ intversion - Port list version
- version int
- The version of the object
- data
Fqdn StringPrefix List Id - Data FQDN prefix list ID
- data
Fqdn NumberPrefix List Version - Data FQDN prefix list version
- data
Ipv4Prefix StringList Id - Data IPv4 prefix list ID
- data
Ipv4Prefix NumberList Version - Data IPv4 prefix list version
- description String
- The description of the policy definition
- fqdn String
- Fully qualified domain name
- geo
Location String - Geo location
- geo
Location StringList Id - Geo location list ID
- geo
Location NumberList Version - Geo location list version
- ipv4Prefix String
- IPv4 prefix
- ipv4Prefix
Variable String - IPv4 prefix variable name
- name String
- The name of the policy definition
- port String
- Port or range of ports
- port
List StringId - Port list ID
- port
List NumberVersion - Port list version
- version Number
- The version of the object
Import
$ pulumi import sdwan:index/objectGroupPolicyDefinition:ObjectGroupPolicyDefinition 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.