1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. AppProbeClassPolicyObject
Cisco Catalyst SD-WAN v0.1.1 published on Friday, May 31, 2024 by Pulumi

sdwan.AppProbeClassPolicyObject

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.1 published on Friday, May 31, 2024 by Pulumi

    This resource can manage a App Probe Class Policy Object .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdwan from "@pulumi/sdwan";
    
    const example = new sdwan.AppProbeClassPolicyObject("example", {
        name: "Example",
        forwardingClass: "FC1",
        mappings: [{
            color: "blue",
            dscp: 8,
        }],
    });
    
    import pulumi
    import pulumi_sdwan as sdwan
    
    example = sdwan.AppProbeClassPolicyObject("example",
        name="Example",
        forwarding_class="FC1",
        mappings=[sdwan.AppProbeClassPolicyObjectMappingArgs(
            color="blue",
            dscp=8,
        )])
    
    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.NewAppProbeClassPolicyObject(ctx, "example", &sdwan.AppProbeClassPolicyObjectArgs{
    			Name:            pulumi.String("Example"),
    			ForwardingClass: pulumi.String("FC1"),
    			Mappings: sdwan.AppProbeClassPolicyObjectMappingArray{
    				&sdwan.AppProbeClassPolicyObjectMappingArgs{
    					Color: pulumi.String("blue"),
    					Dscp:  pulumi.Int(8),
    				},
    			},
    		})
    		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.AppProbeClassPolicyObject("example", new()
        {
            Name = "Example",
            ForwardingClass = "FC1",
            Mappings = new[]
            {
                new Sdwan.Inputs.AppProbeClassPolicyObjectMappingArgs
                {
                    Color = "blue",
                    Dscp = 8,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdwan.AppProbeClassPolicyObject;
    import com.pulumi.sdwan.AppProbeClassPolicyObjectArgs;
    import com.pulumi.sdwan.inputs.AppProbeClassPolicyObjectMappingArgs;
    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 AppProbeClassPolicyObject("example", AppProbeClassPolicyObjectArgs.builder()        
                .name("Example")
                .forwardingClass("FC1")
                .mappings(AppProbeClassPolicyObjectMappingArgs.builder()
                    .color("blue")
                    .dscp(8)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:AppProbeClassPolicyObject
        properties:
          name: Example
          forwardingClass: FC1
          mappings:
            - color: blue
              dscp: 8
    

    Create AppProbeClassPolicyObject Resource

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

    Constructor syntax

    new AppProbeClassPolicyObject(name: string, args: AppProbeClassPolicyObjectArgs, opts?: CustomResourceOptions);
    @overload
    def AppProbeClassPolicyObject(resource_name: str,
                                  args: AppProbeClassPolicyObjectArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppProbeClassPolicyObject(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  forwarding_class: Optional[str] = None,
                                  mappings: Optional[Sequence[AppProbeClassPolicyObjectMappingArgs]] = None,
                                  name: Optional[str] = None)
    func NewAppProbeClassPolicyObject(ctx *Context, name string, args AppProbeClassPolicyObjectArgs, opts ...ResourceOption) (*AppProbeClassPolicyObject, error)
    public AppProbeClassPolicyObject(string name, AppProbeClassPolicyObjectArgs args, CustomResourceOptions? opts = null)
    public AppProbeClassPolicyObject(String name, AppProbeClassPolicyObjectArgs args)
    public AppProbeClassPolicyObject(String name, AppProbeClassPolicyObjectArgs args, CustomResourceOptions options)
    
    type: sdwan:AppProbeClassPolicyObject
    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 AppProbeClassPolicyObjectArgs
    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 AppProbeClassPolicyObjectArgs
    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 AppProbeClassPolicyObjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppProbeClassPolicyObjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppProbeClassPolicyObjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var appProbeClassPolicyObjectResource = new Sdwan.AppProbeClassPolicyObject("appProbeClassPolicyObjectResource", new()
    {
        ForwardingClass = "string",
        Mappings = new[]
        {
            new Sdwan.Inputs.AppProbeClassPolicyObjectMappingArgs
            {
                Color = "string",
                Dscp = 0,
            },
        },
        Name = "string",
    });
    
    example, err := sdwan.NewAppProbeClassPolicyObject(ctx, "appProbeClassPolicyObjectResource", &sdwan.AppProbeClassPolicyObjectArgs{
    	ForwardingClass: pulumi.String("string"),
    	Mappings: sdwan.AppProbeClassPolicyObjectMappingArray{
    		&sdwan.AppProbeClassPolicyObjectMappingArgs{
    			Color: pulumi.String("string"),
    			Dscp:  pulumi.Int(0),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var appProbeClassPolicyObjectResource = new AppProbeClassPolicyObject("appProbeClassPolicyObjectResource", AppProbeClassPolicyObjectArgs.builder()
        .forwardingClass("string")
        .mappings(AppProbeClassPolicyObjectMappingArgs.builder()
            .color("string")
            .dscp(0)
            .build())
        .name("string")
        .build());
    
    app_probe_class_policy_object_resource = sdwan.AppProbeClassPolicyObject("appProbeClassPolicyObjectResource",
        forwarding_class="string",
        mappings=[sdwan.AppProbeClassPolicyObjectMappingArgs(
            color="string",
            dscp=0,
        )],
        name="string")
    
    const appProbeClassPolicyObjectResource = new sdwan.AppProbeClassPolicyObject("appProbeClassPolicyObjectResource", {
        forwardingClass: "string",
        mappings: [{
            color: "string",
            dscp: 0,
        }],
        name: "string",
    });
    
    type: sdwan:AppProbeClassPolicyObject
    properties:
        forwardingClass: string
        mappings:
            - color: string
              dscp: 0
        name: string
    

    AppProbeClassPolicyObject Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AppProbeClassPolicyObject resource accepts the following input properties:

    ForwardingClass string
    Forwarding class name
    Mappings List<AppProbeClassPolicyObjectMapping>
    Color mappings
    Name string
    The name of the policy object
    ForwardingClass string
    Forwarding class name
    Mappings []AppProbeClassPolicyObjectMappingArgs
    Color mappings
    Name string
    The name of the policy object
    forwardingClass String
    Forwarding class name
    mappings List<AppProbeClassPolicyObjectMapping>
    Color mappings
    name String
    The name of the policy object
    forwardingClass string
    Forwarding class name
    mappings AppProbeClassPolicyObjectMapping[]
    Color mappings
    name string
    The name of the policy object
    forwarding_class str
    Forwarding class name
    mappings Sequence[AppProbeClassPolicyObjectMappingArgs]
    Color mappings
    name str
    The name of the policy object
    forwardingClass String
    Forwarding class name
    mappings List<Property Map>
    Color mappings
    name String
    The name of the policy object

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppProbeClassPolicyObject 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 AppProbeClassPolicyObject Resource

    Get an existing AppProbeClassPolicyObject 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?: AppProbeClassPolicyObjectState, opts?: CustomResourceOptions): AppProbeClassPolicyObject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            forwarding_class: Optional[str] = None,
            mappings: Optional[Sequence[AppProbeClassPolicyObjectMappingArgs]] = None,
            name: Optional[str] = None,
            version: Optional[int] = None) -> AppProbeClassPolicyObject
    func GetAppProbeClassPolicyObject(ctx *Context, name string, id IDInput, state *AppProbeClassPolicyObjectState, opts ...ResourceOption) (*AppProbeClassPolicyObject, error)
    public static AppProbeClassPolicyObject Get(string name, Input<string> id, AppProbeClassPolicyObjectState? state, CustomResourceOptions? opts = null)
    public static AppProbeClassPolicyObject get(String name, Output<String> id, AppProbeClassPolicyObjectState 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:
    ForwardingClass string
    Forwarding class name
    Mappings List<AppProbeClassPolicyObjectMapping>
    Color mappings
    Name string
    The name of the policy object
    Version int
    The version of the object
    ForwardingClass string
    Forwarding class name
    Mappings []AppProbeClassPolicyObjectMappingArgs
    Color mappings
    Name string
    The name of the policy object
    Version int
    The version of the object
    forwardingClass String
    Forwarding class name
    mappings List<AppProbeClassPolicyObjectMapping>
    Color mappings
    name String
    The name of the policy object
    version Integer
    The version of the object
    forwardingClass string
    Forwarding class name
    mappings AppProbeClassPolicyObjectMapping[]
    Color mappings
    name string
    The name of the policy object
    version number
    The version of the object
    forwarding_class str
    Forwarding class name
    mappings Sequence[AppProbeClassPolicyObjectMappingArgs]
    Color mappings
    name str
    The name of the policy object
    version int
    The version of the object
    forwardingClass String
    Forwarding class name
    mappings List<Property Map>
    Color mappings
    name String
    The name of the policy object
    version Number
    The version of the object

    Supporting Types

    AppProbeClassPolicyObjectMapping, AppProbeClassPolicyObjectMappingArgs

    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
    Dscp int
    DSCP

    • Range: 0-63
    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
    Dscp int
    DSCP

    • Range: 0-63
    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
    dscp Integer
    DSCP

    • Range: 0-63
    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
    dscp number
    DSCP

    • Range: 0-63
    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
    dscp int
    DSCP

    • Range: 0-63
    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
    dscp Number
    DSCP

    • Range: 0-63

    Import

    $ pulumi import sdwan:index/appProbeClassPolicyObject:AppProbeClassPolicyObject 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.1.1 published on Friday, May 31, 2024 by Pulumi