qos

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dot1pmap

type Dot1pmap struct {
	pulumi.CustomResourceState

	// Description of the 802.1p name.
	Description pulumi.StringOutput `pulumi:"description"`
	// Enable/disable egress priority-tag frame. Valid values: `disable`, `enable`.
	EgressPriTagging pulumi.StringOutput `pulumi:"egressPriTagging"`
	// Dot1p map name.
	Name pulumi.StringOutput `pulumi:"name"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority0 pulumi.StringOutput `pulumi:"priority0"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority1 pulumi.StringOutput `pulumi:"priority1"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority2 pulumi.StringOutput `pulumi:"priority2"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority3 pulumi.StringOutput `pulumi:"priority3"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority4 pulumi.StringOutput `pulumi:"priority4"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority5 pulumi.StringOutput `pulumi:"priority5"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority6 pulumi.StringOutput `pulumi:"priority6"`
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority7 pulumi.StringOutput `pulumi:"priority7"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
}

Configure FortiSwitch QoS 802.1p.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/switchcontroller"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := switchcontroller.NewDot1pmap(ctx, "trname", &switchcontroller.Dot1pmapArgs{
			Priority0: pulumi.String("queue-0"),
			Priority1: pulumi.String("queue-0"),
			Priority2: pulumi.String("queue-0"),
			Priority3: pulumi.String("queue-0"),
			Priority4: pulumi.String("queue-0"),
			Priority5: pulumi.String("queue-0"),
			Priority6: pulumi.String("queue-0"),
			Priority7: pulumi.String("queue-0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

SwitchControllerQos Dot1PMap can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/qos/dot1pmap:Dot1pmap labelname {{name}} ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/qos/dot1pmap:Dot1pmap labelname {{name}} ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetDot1pmap

func GetDot1pmap(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *Dot1pmapState, opts ...pulumi.ResourceOption) (*Dot1pmap, error)

GetDot1pmap gets an existing Dot1pmap resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDot1pmap

func NewDot1pmap(ctx *pulumi.Context,
	name string, args *Dot1pmapArgs, opts ...pulumi.ResourceOption) (*Dot1pmap, error)

NewDot1pmap registers a new resource with the given unique name, arguments, and options.

func (*Dot1pmap) ElementType

func (*Dot1pmap) ElementType() reflect.Type

func (*Dot1pmap) ToDot1pmapOutput

func (i *Dot1pmap) ToDot1pmapOutput() Dot1pmapOutput

func (*Dot1pmap) ToDot1pmapOutputWithContext

func (i *Dot1pmap) ToDot1pmapOutputWithContext(ctx context.Context) Dot1pmapOutput

type Dot1pmapArgs

type Dot1pmapArgs struct {
	// Description of the 802.1p name.
	Description pulumi.StringPtrInput
	// Enable/disable egress priority-tag frame. Valid values: `disable`, `enable`.
	EgressPriTagging pulumi.StringPtrInput
	// Dot1p map name.
	Name pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority0 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority1 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority2 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority3 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority4 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority5 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority6 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority7 pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

The set of arguments for constructing a Dot1pmap resource.

func (Dot1pmapArgs) ElementType

func (Dot1pmapArgs) ElementType() reflect.Type

type Dot1pmapArray

type Dot1pmapArray []Dot1pmapInput

func (Dot1pmapArray) ElementType

func (Dot1pmapArray) ElementType() reflect.Type

func (Dot1pmapArray) ToDot1pmapArrayOutput

func (i Dot1pmapArray) ToDot1pmapArrayOutput() Dot1pmapArrayOutput

func (Dot1pmapArray) ToDot1pmapArrayOutputWithContext

func (i Dot1pmapArray) ToDot1pmapArrayOutputWithContext(ctx context.Context) Dot1pmapArrayOutput

type Dot1pmapArrayInput

type Dot1pmapArrayInput interface {
	pulumi.Input

	ToDot1pmapArrayOutput() Dot1pmapArrayOutput
	ToDot1pmapArrayOutputWithContext(context.Context) Dot1pmapArrayOutput
}

Dot1pmapArrayInput is an input type that accepts Dot1pmapArray and Dot1pmapArrayOutput values. You can construct a concrete instance of `Dot1pmapArrayInput` via:

Dot1pmapArray{ Dot1pmapArgs{...} }

type Dot1pmapArrayOutput

type Dot1pmapArrayOutput struct{ *pulumi.OutputState }

func (Dot1pmapArrayOutput) ElementType

func (Dot1pmapArrayOutput) ElementType() reflect.Type

func (Dot1pmapArrayOutput) Index

func (Dot1pmapArrayOutput) ToDot1pmapArrayOutput

func (o Dot1pmapArrayOutput) ToDot1pmapArrayOutput() Dot1pmapArrayOutput

func (Dot1pmapArrayOutput) ToDot1pmapArrayOutputWithContext

func (o Dot1pmapArrayOutput) ToDot1pmapArrayOutputWithContext(ctx context.Context) Dot1pmapArrayOutput

type Dot1pmapInput

type Dot1pmapInput interface {
	pulumi.Input

	ToDot1pmapOutput() Dot1pmapOutput
	ToDot1pmapOutputWithContext(ctx context.Context) Dot1pmapOutput
}

type Dot1pmapMap

type Dot1pmapMap map[string]Dot1pmapInput

func (Dot1pmapMap) ElementType

func (Dot1pmapMap) ElementType() reflect.Type

func (Dot1pmapMap) ToDot1pmapMapOutput

func (i Dot1pmapMap) ToDot1pmapMapOutput() Dot1pmapMapOutput

func (Dot1pmapMap) ToDot1pmapMapOutputWithContext

func (i Dot1pmapMap) ToDot1pmapMapOutputWithContext(ctx context.Context) Dot1pmapMapOutput

type Dot1pmapMapInput

type Dot1pmapMapInput interface {
	pulumi.Input

	ToDot1pmapMapOutput() Dot1pmapMapOutput
	ToDot1pmapMapOutputWithContext(context.Context) Dot1pmapMapOutput
}

Dot1pmapMapInput is an input type that accepts Dot1pmapMap and Dot1pmapMapOutput values. You can construct a concrete instance of `Dot1pmapMapInput` via:

Dot1pmapMap{ "key": Dot1pmapArgs{...} }

type Dot1pmapMapOutput

type Dot1pmapMapOutput struct{ *pulumi.OutputState }

func (Dot1pmapMapOutput) ElementType

func (Dot1pmapMapOutput) ElementType() reflect.Type

func (Dot1pmapMapOutput) MapIndex

func (Dot1pmapMapOutput) ToDot1pmapMapOutput

func (o Dot1pmapMapOutput) ToDot1pmapMapOutput() Dot1pmapMapOutput

func (Dot1pmapMapOutput) ToDot1pmapMapOutputWithContext

func (o Dot1pmapMapOutput) ToDot1pmapMapOutputWithContext(ctx context.Context) Dot1pmapMapOutput

type Dot1pmapOutput

type Dot1pmapOutput struct{ *pulumi.OutputState }

func (Dot1pmapOutput) Description

func (o Dot1pmapOutput) Description() pulumi.StringOutput

Description of the 802.1p name.

func (Dot1pmapOutput) EgressPriTagging

func (o Dot1pmapOutput) EgressPriTagging() pulumi.StringOutput

Enable/disable egress priority-tag frame. Valid values: `disable`, `enable`.

func (Dot1pmapOutput) ElementType

func (Dot1pmapOutput) ElementType() reflect.Type

func (Dot1pmapOutput) Name

Dot1p map name.

func (Dot1pmapOutput) Priority0

func (o Dot1pmapOutput) Priority0() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority1

func (o Dot1pmapOutput) Priority1() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority2

func (o Dot1pmapOutput) Priority2() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority3

func (o Dot1pmapOutput) Priority3() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority4

func (o Dot1pmapOutput) Priority4() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority5

func (o Dot1pmapOutput) Priority5() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority6

func (o Dot1pmapOutput) Priority6() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) Priority7

func (o Dot1pmapOutput) Priority7() pulumi.StringOutput

COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.

func (Dot1pmapOutput) ToDot1pmapOutput

func (o Dot1pmapOutput) ToDot1pmapOutput() Dot1pmapOutput

func (Dot1pmapOutput) ToDot1pmapOutputWithContext

func (o Dot1pmapOutput) ToDot1pmapOutputWithContext(ctx context.Context) Dot1pmapOutput

func (Dot1pmapOutput) Vdomparam

func (o Dot1pmapOutput) Vdomparam() pulumi.StringPtrOutput

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

type Dot1pmapState

type Dot1pmapState struct {
	// Description of the 802.1p name.
	Description pulumi.StringPtrInput
	// Enable/disable egress priority-tag frame. Valid values: `disable`, `enable`.
	EgressPriTagging pulumi.StringPtrInput
	// Dot1p map name.
	Name pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority0 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority1 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority2 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority3 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority4 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority5 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority6 pulumi.StringPtrInput
	// COS queue mapped to dot1p priority number. Valid values: `queue-0`, `queue-1`, `queue-2`, `queue-3`, `queue-4`, `queue-5`, `queue-6`, `queue-7`.
	Priority7 pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

func (Dot1pmapState) ElementType

func (Dot1pmapState) ElementType() reflect.Type

type Ipdscpmap

type Ipdscpmap struct {
	pulumi.CustomResourceState

	// Description of the ip-dscp map name.
	Description pulumi.StringOutput `pulumi:"description"`
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrOutput `pulumi:"dynamicSortSubtable"`
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrOutput `pulumi:"getAllTables"`
	// Maps between IP-DSCP value to COS queue. The structure of `map` block is documented below.
	Maps IpdscpmapMapTypeArrayOutput `pulumi:"maps"`
	// Dscp map name.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
}

Configure FortiSwitch QoS IP precedence/DSCP.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/switchcontroller"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := switchcontroller.NewIpdscpmap(ctx, "trname", &switchcontroller.IpdscpmapArgs{
			Description: pulumi.String("DEIW"),
			Maps: qos.IpdscpmapMapTypeArray{
				&qos.IpdscpmapMapTypeArgs{
					CosQueue: pulumi.Int(3),
					Diffserv: pulumi.String("CS0 CS1 AF11"),
					Name:     pulumi.String("1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

SwitchControllerQos IpDscpMap can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/qos/ipdscpmap:Ipdscpmap labelname {{name}} ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/qos/ipdscpmap:Ipdscpmap labelname {{name}} ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetIpdscpmap

func GetIpdscpmap(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IpdscpmapState, opts ...pulumi.ResourceOption) (*Ipdscpmap, error)

GetIpdscpmap gets an existing Ipdscpmap resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIpdscpmap

func NewIpdscpmap(ctx *pulumi.Context,
	name string, args *IpdscpmapArgs, opts ...pulumi.ResourceOption) (*Ipdscpmap, error)

NewIpdscpmap registers a new resource with the given unique name, arguments, and options.

func (*Ipdscpmap) ElementType

func (*Ipdscpmap) ElementType() reflect.Type

func (*Ipdscpmap) ToIpdscpmapOutput

func (i *Ipdscpmap) ToIpdscpmapOutput() IpdscpmapOutput

func (*Ipdscpmap) ToIpdscpmapOutputWithContext

func (i *Ipdscpmap) ToIpdscpmapOutputWithContext(ctx context.Context) IpdscpmapOutput

type IpdscpmapArgs

type IpdscpmapArgs struct {
	// Description of the ip-dscp map name.
	Description pulumi.StringPtrInput
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrInput
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrInput
	// Maps between IP-DSCP value to COS queue. The structure of `map` block is documented below.
	Maps IpdscpmapMapTypeArrayInput
	// Dscp map name.
	Name pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

The set of arguments for constructing a Ipdscpmap resource.

func (IpdscpmapArgs) ElementType

func (IpdscpmapArgs) ElementType() reflect.Type

type IpdscpmapArray

type IpdscpmapArray []IpdscpmapInput

func (IpdscpmapArray) ElementType

func (IpdscpmapArray) ElementType() reflect.Type

func (IpdscpmapArray) ToIpdscpmapArrayOutput

func (i IpdscpmapArray) ToIpdscpmapArrayOutput() IpdscpmapArrayOutput

func (IpdscpmapArray) ToIpdscpmapArrayOutputWithContext

func (i IpdscpmapArray) ToIpdscpmapArrayOutputWithContext(ctx context.Context) IpdscpmapArrayOutput

type IpdscpmapArrayInput

type IpdscpmapArrayInput interface {
	pulumi.Input

	ToIpdscpmapArrayOutput() IpdscpmapArrayOutput
	ToIpdscpmapArrayOutputWithContext(context.Context) IpdscpmapArrayOutput
}

IpdscpmapArrayInput is an input type that accepts IpdscpmapArray and IpdscpmapArrayOutput values. You can construct a concrete instance of `IpdscpmapArrayInput` via:

IpdscpmapArray{ IpdscpmapArgs{...} }

type IpdscpmapArrayOutput

type IpdscpmapArrayOutput struct{ *pulumi.OutputState }

func (IpdscpmapArrayOutput) ElementType

func (IpdscpmapArrayOutput) ElementType() reflect.Type

func (IpdscpmapArrayOutput) Index

func (IpdscpmapArrayOutput) ToIpdscpmapArrayOutput

func (o IpdscpmapArrayOutput) ToIpdscpmapArrayOutput() IpdscpmapArrayOutput

func (IpdscpmapArrayOutput) ToIpdscpmapArrayOutputWithContext

func (o IpdscpmapArrayOutput) ToIpdscpmapArrayOutputWithContext(ctx context.Context) IpdscpmapArrayOutput

type IpdscpmapInput

type IpdscpmapInput interface {
	pulumi.Input

	ToIpdscpmapOutput() IpdscpmapOutput
	ToIpdscpmapOutputWithContext(ctx context.Context) IpdscpmapOutput
}

type IpdscpmapMap

type IpdscpmapMap map[string]IpdscpmapInput

func (IpdscpmapMap) ElementType

func (IpdscpmapMap) ElementType() reflect.Type

func (IpdscpmapMap) ToIpdscpmapMapOutput

func (i IpdscpmapMap) ToIpdscpmapMapOutput() IpdscpmapMapOutput

func (IpdscpmapMap) ToIpdscpmapMapOutputWithContext

func (i IpdscpmapMap) ToIpdscpmapMapOutputWithContext(ctx context.Context) IpdscpmapMapOutput

type IpdscpmapMapInput

type IpdscpmapMapInput interface {
	pulumi.Input

	ToIpdscpmapMapOutput() IpdscpmapMapOutput
	ToIpdscpmapMapOutputWithContext(context.Context) IpdscpmapMapOutput
}

IpdscpmapMapInput is an input type that accepts IpdscpmapMap and IpdscpmapMapOutput values. You can construct a concrete instance of `IpdscpmapMapInput` via:

IpdscpmapMap{ "key": IpdscpmapArgs{...} }

type IpdscpmapMapOutput

type IpdscpmapMapOutput struct{ *pulumi.OutputState }

func (IpdscpmapMapOutput) ElementType

func (IpdscpmapMapOutput) ElementType() reflect.Type

func (IpdscpmapMapOutput) MapIndex

func (IpdscpmapMapOutput) ToIpdscpmapMapOutput

func (o IpdscpmapMapOutput) ToIpdscpmapMapOutput() IpdscpmapMapOutput

func (IpdscpmapMapOutput) ToIpdscpmapMapOutputWithContext

func (o IpdscpmapMapOutput) ToIpdscpmapMapOutputWithContext(ctx context.Context) IpdscpmapMapOutput

type IpdscpmapMapType

type IpdscpmapMapType struct {
	// COS queue number.
	CosQueue *int `pulumi:"cosQueue"`
	// Differentiated service. Valid values: `CS0`, `CS1`, `AF11`, `AF12`, `AF13`, `CS2`, `AF21`, `AF22`, `AF23`, `CS3`, `AF31`, `AF32`, `AF33`, `CS4`, `AF41`, `AF42`, `AF43`, `CS5`, `EF`, `CS6`, `CS7`.
	Diffserv *string `pulumi:"diffserv"`
	// IP Precedence. Valid values: `network-control`, `internetwork-control`, `critic-ecp`, `flashoverride`, `flash`, `immediate`, `priority`, `routine`.
	IpPrecedence *string `pulumi:"ipPrecedence"`
	// Dscp mapping entry name.
	Name *string `pulumi:"name"`
	// Raw values of DSCP (0 - 63).
	Value *string `pulumi:"value"`
}

type IpdscpmapMapTypeArgs

type IpdscpmapMapTypeArgs struct {
	// COS queue number.
	CosQueue pulumi.IntPtrInput `pulumi:"cosQueue"`
	// Differentiated service. Valid values: `CS0`, `CS1`, `AF11`, `AF12`, `AF13`, `CS2`, `AF21`, `AF22`, `AF23`, `CS3`, `AF31`, `AF32`, `AF33`, `CS4`, `AF41`, `AF42`, `AF43`, `CS5`, `EF`, `CS6`, `CS7`.
	Diffserv pulumi.StringPtrInput `pulumi:"diffserv"`
	// IP Precedence. Valid values: `network-control`, `internetwork-control`, `critic-ecp`, `flashoverride`, `flash`, `immediate`, `priority`, `routine`.
	IpPrecedence pulumi.StringPtrInput `pulumi:"ipPrecedence"`
	// Dscp mapping entry name.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Raw values of DSCP (0 - 63).
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (IpdscpmapMapTypeArgs) ElementType

func (IpdscpmapMapTypeArgs) ElementType() reflect.Type

func (IpdscpmapMapTypeArgs) ToIpdscpmapMapTypeOutput

func (i IpdscpmapMapTypeArgs) ToIpdscpmapMapTypeOutput() IpdscpmapMapTypeOutput

func (IpdscpmapMapTypeArgs) ToIpdscpmapMapTypeOutputWithContext

func (i IpdscpmapMapTypeArgs) ToIpdscpmapMapTypeOutputWithContext(ctx context.Context) IpdscpmapMapTypeOutput

type IpdscpmapMapTypeArray

type IpdscpmapMapTypeArray []IpdscpmapMapTypeInput

func (IpdscpmapMapTypeArray) ElementType

func (IpdscpmapMapTypeArray) ElementType() reflect.Type

func (IpdscpmapMapTypeArray) ToIpdscpmapMapTypeArrayOutput

func (i IpdscpmapMapTypeArray) ToIpdscpmapMapTypeArrayOutput() IpdscpmapMapTypeArrayOutput

func (IpdscpmapMapTypeArray) ToIpdscpmapMapTypeArrayOutputWithContext

func (i IpdscpmapMapTypeArray) ToIpdscpmapMapTypeArrayOutputWithContext(ctx context.Context) IpdscpmapMapTypeArrayOutput

type IpdscpmapMapTypeArrayInput

type IpdscpmapMapTypeArrayInput interface {
	pulumi.Input

	ToIpdscpmapMapTypeArrayOutput() IpdscpmapMapTypeArrayOutput
	ToIpdscpmapMapTypeArrayOutputWithContext(context.Context) IpdscpmapMapTypeArrayOutput
}

IpdscpmapMapTypeArrayInput is an input type that accepts IpdscpmapMapTypeArray and IpdscpmapMapTypeArrayOutput values. You can construct a concrete instance of `IpdscpmapMapTypeArrayInput` via:

IpdscpmapMapTypeArray{ IpdscpmapMapTypeArgs{...} }

type IpdscpmapMapTypeArrayOutput

type IpdscpmapMapTypeArrayOutput struct{ *pulumi.OutputState }

func (IpdscpmapMapTypeArrayOutput) ElementType

func (IpdscpmapMapTypeArrayOutput) Index

func (IpdscpmapMapTypeArrayOutput) ToIpdscpmapMapTypeArrayOutput

func (o IpdscpmapMapTypeArrayOutput) ToIpdscpmapMapTypeArrayOutput() IpdscpmapMapTypeArrayOutput

func (IpdscpmapMapTypeArrayOutput) ToIpdscpmapMapTypeArrayOutputWithContext

func (o IpdscpmapMapTypeArrayOutput) ToIpdscpmapMapTypeArrayOutputWithContext(ctx context.Context) IpdscpmapMapTypeArrayOutput

type IpdscpmapMapTypeInput

type IpdscpmapMapTypeInput interface {
	pulumi.Input

	ToIpdscpmapMapTypeOutput() IpdscpmapMapTypeOutput
	ToIpdscpmapMapTypeOutputWithContext(context.Context) IpdscpmapMapTypeOutput
}

IpdscpmapMapTypeInput is an input type that accepts IpdscpmapMapTypeArgs and IpdscpmapMapTypeOutput values. You can construct a concrete instance of `IpdscpmapMapTypeInput` via:

IpdscpmapMapTypeArgs{...}

type IpdscpmapMapTypeOutput

type IpdscpmapMapTypeOutput struct{ *pulumi.OutputState }

func (IpdscpmapMapTypeOutput) CosQueue

COS queue number.

func (IpdscpmapMapTypeOutput) Diffserv

Differentiated service. Valid values: `CS0`, `CS1`, `AF11`, `AF12`, `AF13`, `CS2`, `AF21`, `AF22`, `AF23`, `CS3`, `AF31`, `AF32`, `AF33`, `CS4`, `AF41`, `AF42`, `AF43`, `CS5`, `EF`, `CS6`, `CS7`.

func (IpdscpmapMapTypeOutput) ElementType

func (IpdscpmapMapTypeOutput) ElementType() reflect.Type

func (IpdscpmapMapTypeOutput) IpPrecedence

IP Precedence. Valid values: `network-control`, `internetwork-control`, `critic-ecp`, `flashoverride`, `flash`, `immediate`, `priority`, `routine`.

func (IpdscpmapMapTypeOutput) Name

Dscp mapping entry name.

func (IpdscpmapMapTypeOutput) ToIpdscpmapMapTypeOutput

func (o IpdscpmapMapTypeOutput) ToIpdscpmapMapTypeOutput() IpdscpmapMapTypeOutput

func (IpdscpmapMapTypeOutput) ToIpdscpmapMapTypeOutputWithContext

func (o IpdscpmapMapTypeOutput) ToIpdscpmapMapTypeOutputWithContext(ctx context.Context) IpdscpmapMapTypeOutput

func (IpdscpmapMapTypeOutput) Value

Raw values of DSCP (0 - 63).

type IpdscpmapOutput

type IpdscpmapOutput struct{ *pulumi.OutputState }

func (IpdscpmapOutput) Description

func (o IpdscpmapOutput) Description() pulumi.StringOutput

Description of the ip-dscp map name.

func (IpdscpmapOutput) DynamicSortSubtable

func (o IpdscpmapOutput) DynamicSortSubtable() pulumi.StringPtrOutput

Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].

func (IpdscpmapOutput) ElementType

func (IpdscpmapOutput) ElementType() reflect.Type

func (IpdscpmapOutput) GetAllTables

func (o IpdscpmapOutput) GetAllTables() pulumi.StringPtrOutput

Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.

func (IpdscpmapOutput) Maps

Maps between IP-DSCP value to COS queue. The structure of `map` block is documented below.

func (IpdscpmapOutput) Name

Dscp map name.

func (IpdscpmapOutput) ToIpdscpmapOutput

func (o IpdscpmapOutput) ToIpdscpmapOutput() IpdscpmapOutput

func (IpdscpmapOutput) ToIpdscpmapOutputWithContext

func (o IpdscpmapOutput) ToIpdscpmapOutputWithContext(ctx context.Context) IpdscpmapOutput

func (IpdscpmapOutput) Vdomparam

func (o IpdscpmapOutput) Vdomparam() pulumi.StringPtrOutput

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

type IpdscpmapState

type IpdscpmapState struct {
	// Description of the ip-dscp map name.
	Description pulumi.StringPtrInput
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrInput
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrInput
	// Maps between IP-DSCP value to COS queue. The structure of `map` block is documented below.
	Maps IpdscpmapMapTypeArrayInput
	// Dscp map name.
	Name pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

func (IpdscpmapState) ElementType

func (IpdscpmapState) ElementType() reflect.Type

type Qospolicy

type Qospolicy struct {
	pulumi.CustomResourceState

	// Default cos queue for untagged packets.
	DefaultCos pulumi.IntOutput `pulumi:"defaultCos"`
	// QoS policy name.
	Name pulumi.StringOutput `pulumi:"name"`
	// QoS egress queue policy.
	QueuePolicy pulumi.StringOutput `pulumi:"queuePolicy"`
	// QoS trust 802.1p map.
	TrustDot1pMap pulumi.StringOutput `pulumi:"trustDot1pMap"`
	// QoS trust ip dscp map.
	TrustIpDscpMap pulumi.StringOutput `pulumi:"trustIpDscpMap"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
}

Configure FortiSwitch QoS policy.

## Import

SwitchControllerQos QosPolicy can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/qos/qospolicy:Qospolicy labelname {{name}} ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/qos/qospolicy:Qospolicy labelname {{name}} ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetQospolicy

func GetQospolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *QospolicyState, opts ...pulumi.ResourceOption) (*Qospolicy, error)

GetQospolicy gets an existing Qospolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewQospolicy

func NewQospolicy(ctx *pulumi.Context,
	name string, args *QospolicyArgs, opts ...pulumi.ResourceOption) (*Qospolicy, error)

NewQospolicy registers a new resource with the given unique name, arguments, and options.

func (*Qospolicy) ElementType

func (*Qospolicy) ElementType() reflect.Type

func (*Qospolicy) ToQospolicyOutput

func (i *Qospolicy) ToQospolicyOutput() QospolicyOutput

func (*Qospolicy) ToQospolicyOutputWithContext

func (i *Qospolicy) ToQospolicyOutputWithContext(ctx context.Context) QospolicyOutput

type QospolicyArgs

type QospolicyArgs struct {
	// Default cos queue for untagged packets.
	DefaultCos pulumi.IntInput
	// QoS policy name.
	Name pulumi.StringPtrInput
	// QoS egress queue policy.
	QueuePolicy pulumi.StringPtrInput
	// QoS trust 802.1p map.
	TrustDot1pMap pulumi.StringPtrInput
	// QoS trust ip dscp map.
	TrustIpDscpMap pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

The set of arguments for constructing a Qospolicy resource.

func (QospolicyArgs) ElementType

func (QospolicyArgs) ElementType() reflect.Type

type QospolicyArray

type QospolicyArray []QospolicyInput

func (QospolicyArray) ElementType

func (QospolicyArray) ElementType() reflect.Type

func (QospolicyArray) ToQospolicyArrayOutput

func (i QospolicyArray) ToQospolicyArrayOutput() QospolicyArrayOutput

func (QospolicyArray) ToQospolicyArrayOutputWithContext

func (i QospolicyArray) ToQospolicyArrayOutputWithContext(ctx context.Context) QospolicyArrayOutput

type QospolicyArrayInput

type QospolicyArrayInput interface {
	pulumi.Input

	ToQospolicyArrayOutput() QospolicyArrayOutput
	ToQospolicyArrayOutputWithContext(context.Context) QospolicyArrayOutput
}

QospolicyArrayInput is an input type that accepts QospolicyArray and QospolicyArrayOutput values. You can construct a concrete instance of `QospolicyArrayInput` via:

QospolicyArray{ QospolicyArgs{...} }

type QospolicyArrayOutput

type QospolicyArrayOutput struct{ *pulumi.OutputState }

func (QospolicyArrayOutput) ElementType

func (QospolicyArrayOutput) ElementType() reflect.Type

func (QospolicyArrayOutput) Index

func (QospolicyArrayOutput) ToQospolicyArrayOutput

func (o QospolicyArrayOutput) ToQospolicyArrayOutput() QospolicyArrayOutput

func (QospolicyArrayOutput) ToQospolicyArrayOutputWithContext

func (o QospolicyArrayOutput) ToQospolicyArrayOutputWithContext(ctx context.Context) QospolicyArrayOutput

type QospolicyInput

type QospolicyInput interface {
	pulumi.Input

	ToQospolicyOutput() QospolicyOutput
	ToQospolicyOutputWithContext(ctx context.Context) QospolicyOutput
}

type QospolicyMap

type QospolicyMap map[string]QospolicyInput

func (QospolicyMap) ElementType

func (QospolicyMap) ElementType() reflect.Type

func (QospolicyMap) ToQospolicyMapOutput

func (i QospolicyMap) ToQospolicyMapOutput() QospolicyMapOutput

func (QospolicyMap) ToQospolicyMapOutputWithContext

func (i QospolicyMap) ToQospolicyMapOutputWithContext(ctx context.Context) QospolicyMapOutput

type QospolicyMapInput

type QospolicyMapInput interface {
	pulumi.Input

	ToQospolicyMapOutput() QospolicyMapOutput
	ToQospolicyMapOutputWithContext(context.Context) QospolicyMapOutput
}

QospolicyMapInput is an input type that accepts QospolicyMap and QospolicyMapOutput values. You can construct a concrete instance of `QospolicyMapInput` via:

QospolicyMap{ "key": QospolicyArgs{...} }

type QospolicyMapOutput

type QospolicyMapOutput struct{ *pulumi.OutputState }

func (QospolicyMapOutput) ElementType

func (QospolicyMapOutput) ElementType() reflect.Type

func (QospolicyMapOutput) MapIndex

func (QospolicyMapOutput) ToQospolicyMapOutput

func (o QospolicyMapOutput) ToQospolicyMapOutput() QospolicyMapOutput

func (QospolicyMapOutput) ToQospolicyMapOutputWithContext

func (o QospolicyMapOutput) ToQospolicyMapOutputWithContext(ctx context.Context) QospolicyMapOutput

type QospolicyOutput

type QospolicyOutput struct{ *pulumi.OutputState }

func (QospolicyOutput) DefaultCos

func (o QospolicyOutput) DefaultCos() pulumi.IntOutput

Default cos queue for untagged packets.

func (QospolicyOutput) ElementType

func (QospolicyOutput) ElementType() reflect.Type

func (QospolicyOutput) Name

QoS policy name.

func (QospolicyOutput) QueuePolicy

func (o QospolicyOutput) QueuePolicy() pulumi.StringOutput

QoS egress queue policy.

func (QospolicyOutput) ToQospolicyOutput

func (o QospolicyOutput) ToQospolicyOutput() QospolicyOutput

func (QospolicyOutput) ToQospolicyOutputWithContext

func (o QospolicyOutput) ToQospolicyOutputWithContext(ctx context.Context) QospolicyOutput

func (QospolicyOutput) TrustDot1pMap

func (o QospolicyOutput) TrustDot1pMap() pulumi.StringOutput

QoS trust 802.1p map.

func (QospolicyOutput) TrustIpDscpMap

func (o QospolicyOutput) TrustIpDscpMap() pulumi.StringOutput

QoS trust ip dscp map.

func (QospolicyOutput) Vdomparam

func (o QospolicyOutput) Vdomparam() pulumi.StringPtrOutput

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

type QospolicyState

type QospolicyState struct {
	// Default cos queue for untagged packets.
	DefaultCos pulumi.IntPtrInput
	// QoS policy name.
	Name pulumi.StringPtrInput
	// QoS egress queue policy.
	QueuePolicy pulumi.StringPtrInput
	// QoS trust 802.1p map.
	TrustDot1pMap pulumi.StringPtrInput
	// QoS trust ip dscp map.
	TrustIpDscpMap pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

func (QospolicyState) ElementType

func (QospolicyState) ElementType() reflect.Type

type Queuepolicy

type Queuepolicy struct {
	pulumi.CustomResourceState

	// COS queue configuration. The structure of `cosQueue` block is documented below.
	CosQueues QueuepolicyCosQueueArrayOutput `pulumi:"cosQueues"`
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrOutput `pulumi:"dynamicSortSubtable"`
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrOutput `pulumi:"getAllTables"`
	// QoS policy name
	Name pulumi.StringOutput `pulumi:"name"`
	// COS queue rate by kbps or percent. Valid values: `kbps`, `percent`.
	RateBy pulumi.StringOutput `pulumi:"rateBy"`
	// COS queue scheduling. Valid values: `strict`, `round-robin`, `weighted`.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrOutput `pulumi:"vdomparam"`
}

Configure FortiSwitch QoS egress queue policy.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/switchcontroller"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := switchcontroller.NewQueuepolicy(ctx, "trname", &switchcontroller.QueuepolicyArgs{
			RateBy:   pulumi.String("kbps"),
			Schedule: pulumi.String("round-robin"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

SwitchControllerQos QueuePolicy can be imported using any of these accepted formats:

```sh $ pulumi import fortios:switchcontroller/qos/queuepolicy:Queuepolicy labelname {{name}} ```

If you do not want to import arguments of block:

$ export "FORTIOS_IMPORT_TABLE"="false"

```sh $ pulumi import fortios:switchcontroller/qos/queuepolicy:Queuepolicy labelname {{name}} ```

$ unset "FORTIOS_IMPORT_TABLE"

func GetQueuepolicy

func GetQueuepolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *QueuepolicyState, opts ...pulumi.ResourceOption) (*Queuepolicy, error)

GetQueuepolicy gets an existing Queuepolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewQueuepolicy

func NewQueuepolicy(ctx *pulumi.Context,
	name string, args *QueuepolicyArgs, opts ...pulumi.ResourceOption) (*Queuepolicy, error)

NewQueuepolicy registers a new resource with the given unique name, arguments, and options.

func (*Queuepolicy) ElementType

func (*Queuepolicy) ElementType() reflect.Type

func (*Queuepolicy) ToQueuepolicyOutput

func (i *Queuepolicy) ToQueuepolicyOutput() QueuepolicyOutput

func (*Queuepolicy) ToQueuepolicyOutputWithContext

func (i *Queuepolicy) ToQueuepolicyOutputWithContext(ctx context.Context) QueuepolicyOutput

type QueuepolicyArgs

type QueuepolicyArgs struct {
	// COS queue configuration. The structure of `cosQueue` block is documented below.
	CosQueues QueuepolicyCosQueueArrayInput
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrInput
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrInput
	// QoS policy name
	Name pulumi.StringPtrInput
	// COS queue rate by kbps or percent. Valid values: `kbps`, `percent`.
	RateBy pulumi.StringInput
	// COS queue scheduling. Valid values: `strict`, `round-robin`, `weighted`.
	Schedule pulumi.StringInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

The set of arguments for constructing a Queuepolicy resource.

func (QueuepolicyArgs) ElementType

func (QueuepolicyArgs) ElementType() reflect.Type

type QueuepolicyArray

type QueuepolicyArray []QueuepolicyInput

func (QueuepolicyArray) ElementType

func (QueuepolicyArray) ElementType() reflect.Type

func (QueuepolicyArray) ToQueuepolicyArrayOutput

func (i QueuepolicyArray) ToQueuepolicyArrayOutput() QueuepolicyArrayOutput

func (QueuepolicyArray) ToQueuepolicyArrayOutputWithContext

func (i QueuepolicyArray) ToQueuepolicyArrayOutputWithContext(ctx context.Context) QueuepolicyArrayOutput

type QueuepolicyArrayInput

type QueuepolicyArrayInput interface {
	pulumi.Input

	ToQueuepolicyArrayOutput() QueuepolicyArrayOutput
	ToQueuepolicyArrayOutputWithContext(context.Context) QueuepolicyArrayOutput
}

QueuepolicyArrayInput is an input type that accepts QueuepolicyArray and QueuepolicyArrayOutput values. You can construct a concrete instance of `QueuepolicyArrayInput` via:

QueuepolicyArray{ QueuepolicyArgs{...} }

type QueuepolicyArrayOutput

type QueuepolicyArrayOutput struct{ *pulumi.OutputState }

func (QueuepolicyArrayOutput) ElementType

func (QueuepolicyArrayOutput) ElementType() reflect.Type

func (QueuepolicyArrayOutput) Index

func (QueuepolicyArrayOutput) ToQueuepolicyArrayOutput

func (o QueuepolicyArrayOutput) ToQueuepolicyArrayOutput() QueuepolicyArrayOutput

func (QueuepolicyArrayOutput) ToQueuepolicyArrayOutputWithContext

func (o QueuepolicyArrayOutput) ToQueuepolicyArrayOutputWithContext(ctx context.Context) QueuepolicyArrayOutput

type QueuepolicyCosQueue

type QueuepolicyCosQueue struct {
	// Description of the COS queue.
	Description *string `pulumi:"description"`
	// COS queue drop policy. Valid values: `taildrop`, `weighted-random-early-detection`.
	DropPolicy *string `pulumi:"dropPolicy"`
	// Enable/disable ECN packet marking to drop eligible packets. Valid values: `disable`, `enable`.
	Ecn *string `pulumi:"ecn"`
	// Maximum rate (0 - 4294967295 kbps, 0 to disable).
	MaxRate *int `pulumi:"maxRate"`
	// Maximum rate (%!o(MISSING)f link speed).
	MaxRatePercent *int `pulumi:"maxRatePercent"`
	// Minimum rate (0 - 4294967295 kbps, 0 to disable).
	MinRate *int `pulumi:"minRate"`
	// Minimum rate (%!o(MISSING)f link speed).
	MinRatePercent *int `pulumi:"minRatePercent"`
	// Cos queue ID.
	Name *string `pulumi:"name"`
	// Weight of weighted round robin scheduling.
	Weight *int `pulumi:"weight"`
}

type QueuepolicyCosQueueArgs

type QueuepolicyCosQueueArgs struct {
	// Description of the COS queue.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// COS queue drop policy. Valid values: `taildrop`, `weighted-random-early-detection`.
	DropPolicy pulumi.StringPtrInput `pulumi:"dropPolicy"`
	// Enable/disable ECN packet marking to drop eligible packets. Valid values: `disable`, `enable`.
	Ecn pulumi.StringPtrInput `pulumi:"ecn"`
	// Maximum rate (0 - 4294967295 kbps, 0 to disable).
	MaxRate pulumi.IntPtrInput `pulumi:"maxRate"`
	// Maximum rate (%!o(MISSING)f link speed).
	MaxRatePercent pulumi.IntPtrInput `pulumi:"maxRatePercent"`
	// Minimum rate (0 - 4294967295 kbps, 0 to disable).
	MinRate pulumi.IntPtrInput `pulumi:"minRate"`
	// Minimum rate (%!o(MISSING)f link speed).
	MinRatePercent pulumi.IntPtrInput `pulumi:"minRatePercent"`
	// Cos queue ID.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Weight of weighted round robin scheduling.
	Weight pulumi.IntPtrInput `pulumi:"weight"`
}

func (QueuepolicyCosQueueArgs) ElementType

func (QueuepolicyCosQueueArgs) ElementType() reflect.Type

func (QueuepolicyCosQueueArgs) ToQueuepolicyCosQueueOutput

func (i QueuepolicyCosQueueArgs) ToQueuepolicyCosQueueOutput() QueuepolicyCosQueueOutput

func (QueuepolicyCosQueueArgs) ToQueuepolicyCosQueueOutputWithContext

func (i QueuepolicyCosQueueArgs) ToQueuepolicyCosQueueOutputWithContext(ctx context.Context) QueuepolicyCosQueueOutput

type QueuepolicyCosQueueArray

type QueuepolicyCosQueueArray []QueuepolicyCosQueueInput

func (QueuepolicyCosQueueArray) ElementType

func (QueuepolicyCosQueueArray) ElementType() reflect.Type

func (QueuepolicyCosQueueArray) ToQueuepolicyCosQueueArrayOutput

func (i QueuepolicyCosQueueArray) ToQueuepolicyCosQueueArrayOutput() QueuepolicyCosQueueArrayOutput

func (QueuepolicyCosQueueArray) ToQueuepolicyCosQueueArrayOutputWithContext

func (i QueuepolicyCosQueueArray) ToQueuepolicyCosQueueArrayOutputWithContext(ctx context.Context) QueuepolicyCosQueueArrayOutput

type QueuepolicyCosQueueArrayInput

type QueuepolicyCosQueueArrayInput interface {
	pulumi.Input

	ToQueuepolicyCosQueueArrayOutput() QueuepolicyCosQueueArrayOutput
	ToQueuepolicyCosQueueArrayOutputWithContext(context.Context) QueuepolicyCosQueueArrayOutput
}

QueuepolicyCosQueueArrayInput is an input type that accepts QueuepolicyCosQueueArray and QueuepolicyCosQueueArrayOutput values. You can construct a concrete instance of `QueuepolicyCosQueueArrayInput` via:

QueuepolicyCosQueueArray{ QueuepolicyCosQueueArgs{...} }

type QueuepolicyCosQueueArrayOutput

type QueuepolicyCosQueueArrayOutput struct{ *pulumi.OutputState }

func (QueuepolicyCosQueueArrayOutput) ElementType

func (QueuepolicyCosQueueArrayOutput) Index

func (QueuepolicyCosQueueArrayOutput) ToQueuepolicyCosQueueArrayOutput

func (o QueuepolicyCosQueueArrayOutput) ToQueuepolicyCosQueueArrayOutput() QueuepolicyCosQueueArrayOutput

func (QueuepolicyCosQueueArrayOutput) ToQueuepolicyCosQueueArrayOutputWithContext

func (o QueuepolicyCosQueueArrayOutput) ToQueuepolicyCosQueueArrayOutputWithContext(ctx context.Context) QueuepolicyCosQueueArrayOutput

type QueuepolicyCosQueueInput

type QueuepolicyCosQueueInput interface {
	pulumi.Input

	ToQueuepolicyCosQueueOutput() QueuepolicyCosQueueOutput
	ToQueuepolicyCosQueueOutputWithContext(context.Context) QueuepolicyCosQueueOutput
}

QueuepolicyCosQueueInput is an input type that accepts QueuepolicyCosQueueArgs and QueuepolicyCosQueueOutput values. You can construct a concrete instance of `QueuepolicyCosQueueInput` via:

QueuepolicyCosQueueArgs{...}

type QueuepolicyCosQueueOutput

type QueuepolicyCosQueueOutput struct{ *pulumi.OutputState }

func (QueuepolicyCosQueueOutput) Description

Description of the COS queue.

func (QueuepolicyCosQueueOutput) DropPolicy

COS queue drop policy. Valid values: `taildrop`, `weighted-random-early-detection`.

func (QueuepolicyCosQueueOutput) Ecn

Enable/disable ECN packet marking to drop eligible packets. Valid values: `disable`, `enable`.

func (QueuepolicyCosQueueOutput) ElementType

func (QueuepolicyCosQueueOutput) ElementType() reflect.Type

func (QueuepolicyCosQueueOutput) MaxRate

Maximum rate (0 - 4294967295 kbps, 0 to disable).

func (QueuepolicyCosQueueOutput) MaxRatePercent

func (o QueuepolicyCosQueueOutput) MaxRatePercent() pulumi.IntPtrOutput

Maximum rate (%!o(MISSING)f link speed).

func (QueuepolicyCosQueueOutput) MinRate

Minimum rate (0 - 4294967295 kbps, 0 to disable).

func (QueuepolicyCosQueueOutput) MinRatePercent

func (o QueuepolicyCosQueueOutput) MinRatePercent() pulumi.IntPtrOutput

Minimum rate (%!o(MISSING)f link speed).

func (QueuepolicyCosQueueOutput) Name

Cos queue ID.

func (QueuepolicyCosQueueOutput) ToQueuepolicyCosQueueOutput

func (o QueuepolicyCosQueueOutput) ToQueuepolicyCosQueueOutput() QueuepolicyCosQueueOutput

func (QueuepolicyCosQueueOutput) ToQueuepolicyCosQueueOutputWithContext

func (o QueuepolicyCosQueueOutput) ToQueuepolicyCosQueueOutputWithContext(ctx context.Context) QueuepolicyCosQueueOutput

func (QueuepolicyCosQueueOutput) Weight

Weight of weighted round robin scheduling.

type QueuepolicyInput

type QueuepolicyInput interface {
	pulumi.Input

	ToQueuepolicyOutput() QueuepolicyOutput
	ToQueuepolicyOutputWithContext(ctx context.Context) QueuepolicyOutput
}

type QueuepolicyMap

type QueuepolicyMap map[string]QueuepolicyInput

func (QueuepolicyMap) ElementType

func (QueuepolicyMap) ElementType() reflect.Type

func (QueuepolicyMap) ToQueuepolicyMapOutput

func (i QueuepolicyMap) ToQueuepolicyMapOutput() QueuepolicyMapOutput

func (QueuepolicyMap) ToQueuepolicyMapOutputWithContext

func (i QueuepolicyMap) ToQueuepolicyMapOutputWithContext(ctx context.Context) QueuepolicyMapOutput

type QueuepolicyMapInput

type QueuepolicyMapInput interface {
	pulumi.Input

	ToQueuepolicyMapOutput() QueuepolicyMapOutput
	ToQueuepolicyMapOutputWithContext(context.Context) QueuepolicyMapOutput
}

QueuepolicyMapInput is an input type that accepts QueuepolicyMap and QueuepolicyMapOutput values. You can construct a concrete instance of `QueuepolicyMapInput` via:

QueuepolicyMap{ "key": QueuepolicyArgs{...} }

type QueuepolicyMapOutput

type QueuepolicyMapOutput struct{ *pulumi.OutputState }

func (QueuepolicyMapOutput) ElementType

func (QueuepolicyMapOutput) ElementType() reflect.Type

func (QueuepolicyMapOutput) MapIndex

func (QueuepolicyMapOutput) ToQueuepolicyMapOutput

func (o QueuepolicyMapOutput) ToQueuepolicyMapOutput() QueuepolicyMapOutput

func (QueuepolicyMapOutput) ToQueuepolicyMapOutputWithContext

func (o QueuepolicyMapOutput) ToQueuepolicyMapOutputWithContext(ctx context.Context) QueuepolicyMapOutput

type QueuepolicyOutput

type QueuepolicyOutput struct{ *pulumi.OutputState }

func (QueuepolicyOutput) CosQueues

COS queue configuration. The structure of `cosQueue` block is documented below.

func (QueuepolicyOutput) DynamicSortSubtable

func (o QueuepolicyOutput) DynamicSortSubtable() pulumi.StringPtrOutput

Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].

func (QueuepolicyOutput) ElementType

func (QueuepolicyOutput) ElementType() reflect.Type

func (QueuepolicyOutput) GetAllTables

func (o QueuepolicyOutput) GetAllTables() pulumi.StringPtrOutput

Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.

func (QueuepolicyOutput) Name

QoS policy name

func (QueuepolicyOutput) RateBy

COS queue rate by kbps or percent. Valid values: `kbps`, `percent`.

func (QueuepolicyOutput) Schedule

func (o QueuepolicyOutput) Schedule() pulumi.StringOutput

COS queue scheduling. Valid values: `strict`, `round-robin`, `weighted`.

func (QueuepolicyOutput) ToQueuepolicyOutput

func (o QueuepolicyOutput) ToQueuepolicyOutput() QueuepolicyOutput

func (QueuepolicyOutput) ToQueuepolicyOutputWithContext

func (o QueuepolicyOutput) ToQueuepolicyOutputWithContext(ctx context.Context) QueuepolicyOutput

func (QueuepolicyOutput) Vdomparam

Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

type QueuepolicyState

type QueuepolicyState struct {
	// COS queue configuration. The structure of `cosQueue` block is documented below.
	CosQueues QueuepolicyCosQueueArrayInput
	// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
	DynamicSortSubtable pulumi.StringPtrInput
	// Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
	GetAllTables pulumi.StringPtrInput
	// QoS policy name
	Name pulumi.StringPtrInput
	// COS queue rate by kbps or percent. Valid values: `kbps`, `percent`.
	RateBy pulumi.StringPtrInput
	// COS queue scheduling. Valid values: `strict`, `round-robin`, `weighted`.
	Schedule pulumi.StringPtrInput
	// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
	Vdomparam pulumi.StringPtrInput
}

func (QueuepolicyState) ElementType

func (QueuepolicyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL