waf

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	pulumi.CustomResourceState

	// One or more `customRule` blocks as defined below.
	CustomRules PolicyCustomRuleArrayOutput `pulumi:"customRules"`
	// Resource location. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name of the policy. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `policySetting` block as defined below.
	PolicySettings PolicyPolicySettingsPtrOutput `pulumi:"policySettings"`
	// The name of the resource group. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the Web Application Firewall Policy.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Azure Web Application Firewall Policy instance.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/web_application_firewall_policy.html.markdown.

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy 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 NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

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

type PolicyArgs

type PolicyArgs struct {
	// One or more `customRule` blocks as defined below.
	CustomRules PolicyCustomRuleArrayInput
	// Resource location. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name of the policy. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A `policySetting` block as defined below.
	PolicySettings PolicyPolicySettingsPtrInput
	// The name of the resource group. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the Web Application Firewall Policy.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType

func (PolicyArgs) ElementType() reflect.Type

type PolicyCustomRule

type PolicyCustomRule struct {
	// Type of Actions
	Action string `pulumi:"action"`
	// One or more `matchCondition` block defined below.
	MatchConditions []PolicyCustomRuleMatchCondition `pulumi:"matchConditions"`
	// The name of the policy. Changing this forces a new resource to be created.
	Name *string `pulumi:"name"`
	// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value
	Priority int `pulumi:"priority"`
	// Describes the type of rule
	RuleType string `pulumi:"ruleType"`
}

type PolicyCustomRuleArgs

type PolicyCustomRuleArgs struct {
	// Type of Actions
	Action pulumi.StringInput `pulumi:"action"`
	// One or more `matchCondition` block defined below.
	MatchConditions PolicyCustomRuleMatchConditionArrayInput `pulumi:"matchConditions"`
	// The name of the policy. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value
	Priority pulumi.IntInput `pulumi:"priority"`
	// Describes the type of rule
	RuleType pulumi.StringInput `pulumi:"ruleType"`
}

func (PolicyCustomRuleArgs) ElementType

func (PolicyCustomRuleArgs) ElementType() reflect.Type

func (PolicyCustomRuleArgs) ToPolicyCustomRuleOutput

func (i PolicyCustomRuleArgs) ToPolicyCustomRuleOutput() PolicyCustomRuleOutput

func (PolicyCustomRuleArgs) ToPolicyCustomRuleOutputWithContext

func (i PolicyCustomRuleArgs) ToPolicyCustomRuleOutputWithContext(ctx context.Context) PolicyCustomRuleOutput

type PolicyCustomRuleArray

type PolicyCustomRuleArray []PolicyCustomRuleInput

func (PolicyCustomRuleArray) ElementType

func (PolicyCustomRuleArray) ElementType() reflect.Type

func (PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutput

func (i PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutput() PolicyCustomRuleArrayOutput

func (PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutputWithContext

func (i PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutputWithContext(ctx context.Context) PolicyCustomRuleArrayOutput

type PolicyCustomRuleArrayInput

type PolicyCustomRuleArrayInput interface {
	pulumi.Input

	ToPolicyCustomRuleArrayOutput() PolicyCustomRuleArrayOutput
	ToPolicyCustomRuleArrayOutputWithContext(context.Context) PolicyCustomRuleArrayOutput
}

type PolicyCustomRuleArrayOutput

type PolicyCustomRuleArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleArrayOutput) ElementType

func (PolicyCustomRuleArrayOutput) Index

func (PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutput

func (o PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutput() PolicyCustomRuleArrayOutput

func (PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutputWithContext

func (o PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutputWithContext(ctx context.Context) PolicyCustomRuleArrayOutput

type PolicyCustomRuleInput

type PolicyCustomRuleInput interface {
	pulumi.Input

	ToPolicyCustomRuleOutput() PolicyCustomRuleOutput
	ToPolicyCustomRuleOutputWithContext(context.Context) PolicyCustomRuleOutput
}

type PolicyCustomRuleMatchCondition

type PolicyCustomRuleMatchCondition struct {
	// Match value
	MatchValues []string `pulumi:"matchValues"`
	// One or more `matchVariable` block defined below.
	MatchVariables []PolicyCustomRuleMatchConditionMatchVariable `pulumi:"matchVariables"`
	// Describes if this is negate condition or not
	NegationCondition *bool `pulumi:"negationCondition"`
	// Describes operator to be matched
	Operator string `pulumi:"operator"`
}

type PolicyCustomRuleMatchConditionArgs

type PolicyCustomRuleMatchConditionArgs struct {
	// Match value
	MatchValues pulumi.StringArrayInput `pulumi:"matchValues"`
	// One or more `matchVariable` block defined below.
	MatchVariables PolicyCustomRuleMatchConditionMatchVariableArrayInput `pulumi:"matchVariables"`
	// Describes if this is negate condition or not
	NegationCondition pulumi.BoolPtrInput `pulumi:"negationCondition"`
	// Describes operator to be matched
	Operator pulumi.StringInput `pulumi:"operator"`
}

func (PolicyCustomRuleMatchConditionArgs) ElementType

func (PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutput

func (i PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutput() PolicyCustomRuleMatchConditionOutput

func (PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutputWithContext

func (i PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionOutput

type PolicyCustomRuleMatchConditionArray

type PolicyCustomRuleMatchConditionArray []PolicyCustomRuleMatchConditionInput

func (PolicyCustomRuleMatchConditionArray) ElementType

func (PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutput

func (i PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutput() PolicyCustomRuleMatchConditionArrayOutput

func (PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutputWithContext

func (i PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionArrayOutput

type PolicyCustomRuleMatchConditionArrayInput

type PolicyCustomRuleMatchConditionArrayInput interface {
	pulumi.Input

	ToPolicyCustomRuleMatchConditionArrayOutput() PolicyCustomRuleMatchConditionArrayOutput
	ToPolicyCustomRuleMatchConditionArrayOutputWithContext(context.Context) PolicyCustomRuleMatchConditionArrayOutput
}

type PolicyCustomRuleMatchConditionArrayOutput

type PolicyCustomRuleMatchConditionArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionArrayOutput) ElementType

func (PolicyCustomRuleMatchConditionArrayOutput) Index

func (PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutput

func (o PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutput() PolicyCustomRuleMatchConditionArrayOutput

func (PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutputWithContext

func (o PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionArrayOutput

type PolicyCustomRuleMatchConditionInput

type PolicyCustomRuleMatchConditionInput interface {
	pulumi.Input

	ToPolicyCustomRuleMatchConditionOutput() PolicyCustomRuleMatchConditionOutput
	ToPolicyCustomRuleMatchConditionOutputWithContext(context.Context) PolicyCustomRuleMatchConditionOutput
}

type PolicyCustomRuleMatchConditionMatchVariable

type PolicyCustomRuleMatchConditionMatchVariable struct {
	// Describes field of the matchVariable collection
	Selector *string `pulumi:"selector"`
	// The name of the Match Variable
	VariableName string `pulumi:"variableName"`
}

type PolicyCustomRuleMatchConditionMatchVariableArgs

type PolicyCustomRuleMatchConditionMatchVariableArgs struct {
	// Describes field of the matchVariable collection
	Selector pulumi.StringPtrInput `pulumi:"selector"`
	// The name of the Match Variable
	VariableName pulumi.StringInput `pulumi:"variableName"`
}

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ElementType

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutput

func (i PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutput() PolicyCustomRuleMatchConditionMatchVariableOutput

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext

func (i PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionMatchVariableOutput

type PolicyCustomRuleMatchConditionMatchVariableArray

type PolicyCustomRuleMatchConditionMatchVariableArray []PolicyCustomRuleMatchConditionMatchVariableInput

func (PolicyCustomRuleMatchConditionMatchVariableArray) ElementType

func (PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput

func (i PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput() PolicyCustomRuleMatchConditionMatchVariableArrayOutput

func (PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext

func (i PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionMatchVariableArrayOutput

type PolicyCustomRuleMatchConditionMatchVariableArrayInput

type PolicyCustomRuleMatchConditionMatchVariableArrayInput interface {
	pulumi.Input

	ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput() PolicyCustomRuleMatchConditionMatchVariableArrayOutput
	ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext(context.Context) PolicyCustomRuleMatchConditionMatchVariableArrayOutput
}

type PolicyCustomRuleMatchConditionMatchVariableArrayOutput

type PolicyCustomRuleMatchConditionMatchVariableArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ElementType

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) Index

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext

func (o PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionMatchVariableArrayOutput

type PolicyCustomRuleMatchConditionMatchVariableInput

type PolicyCustomRuleMatchConditionMatchVariableInput interface {
	pulumi.Input

	ToPolicyCustomRuleMatchConditionMatchVariableOutput() PolicyCustomRuleMatchConditionMatchVariableOutput
	ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext(context.Context) PolicyCustomRuleMatchConditionMatchVariableOutput
}

type PolicyCustomRuleMatchConditionMatchVariableOutput

type PolicyCustomRuleMatchConditionMatchVariableOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ElementType

func (PolicyCustomRuleMatchConditionMatchVariableOutput) Selector

Describes field of the matchVariable collection

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutput

func (o PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutput() PolicyCustomRuleMatchConditionMatchVariableOutput

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext

func (o PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionMatchVariableOutput

func (PolicyCustomRuleMatchConditionMatchVariableOutput) VariableName

The name of the Match Variable

type PolicyCustomRuleMatchConditionOutput

type PolicyCustomRuleMatchConditionOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionOutput) ElementType

func (PolicyCustomRuleMatchConditionOutput) MatchValues

Match value

func (PolicyCustomRuleMatchConditionOutput) MatchVariables

One or more `matchVariable` block defined below.

func (PolicyCustomRuleMatchConditionOutput) NegationCondition

Describes if this is negate condition or not

func (PolicyCustomRuleMatchConditionOutput) Operator

Describes operator to be matched

func (PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutput

func (o PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutput() PolicyCustomRuleMatchConditionOutput

func (PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutputWithContext

func (o PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutputWithContext(ctx context.Context) PolicyCustomRuleMatchConditionOutput

type PolicyCustomRuleOutput

type PolicyCustomRuleOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleOutput) Action

Type of Actions

func (PolicyCustomRuleOutput) ElementType

func (PolicyCustomRuleOutput) ElementType() reflect.Type

func (PolicyCustomRuleOutput) MatchConditions

One or more `matchCondition` block defined below.

func (PolicyCustomRuleOutput) Name

The name of the policy. Changing this forces a new resource to be created.

func (PolicyCustomRuleOutput) Priority

Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value

func (PolicyCustomRuleOutput) RuleType

Describes the type of rule

func (PolicyCustomRuleOutput) ToPolicyCustomRuleOutput

func (o PolicyCustomRuleOutput) ToPolicyCustomRuleOutput() PolicyCustomRuleOutput

func (PolicyCustomRuleOutput) ToPolicyCustomRuleOutputWithContext

func (o PolicyCustomRuleOutput) ToPolicyCustomRuleOutputWithContext(ctx context.Context) PolicyCustomRuleOutput

type PolicyPolicySettings

type PolicyPolicySettings struct {
	// Describes if the policy is in enabled state or disabled state Defaults to `Enabled`.
	Enabled *bool `pulumi:"enabled"`
	// Describes if it is in detection mode  or prevention mode at the policy level Defaults to `Prevention`.
	Mode *string `pulumi:"mode"`
}

type PolicyPolicySettingsArgs

type PolicyPolicySettingsArgs struct {
	// Describes if the policy is in enabled state or disabled state Defaults to `Enabled`.
	Enabled pulumi.BoolPtrInput `pulumi:"enabled"`
	// Describes if it is in detection mode  or prevention mode at the policy level Defaults to `Prevention`.
	Mode pulumi.StringPtrInput `pulumi:"mode"`
}

func (PolicyPolicySettingsArgs) ElementType

func (PolicyPolicySettingsArgs) ElementType() reflect.Type

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutput

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutput() PolicyPolicySettingsOutput

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutputWithContext

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutputWithContext(ctx context.Context) PolicyPolicySettingsOutput

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutput

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutputWithContext

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutputWithContext(ctx context.Context) PolicyPolicySettingsPtrOutput

type PolicyPolicySettingsInput

type PolicyPolicySettingsInput interface {
	pulumi.Input

	ToPolicyPolicySettingsOutput() PolicyPolicySettingsOutput
	ToPolicyPolicySettingsOutputWithContext(context.Context) PolicyPolicySettingsOutput
}

type PolicyPolicySettingsOutput

type PolicyPolicySettingsOutput struct{ *pulumi.OutputState }

func (PolicyPolicySettingsOutput) ElementType

func (PolicyPolicySettingsOutput) ElementType() reflect.Type

func (PolicyPolicySettingsOutput) Enabled

Describes if the policy is in enabled state or disabled state Defaults to `Enabled`.

func (PolicyPolicySettingsOutput) Mode

Describes if it is in detection mode or prevention mode at the policy level Defaults to `Prevention`.

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutput

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutput() PolicyPolicySettingsOutput

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutputWithContext

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutputWithContext(ctx context.Context) PolicyPolicySettingsOutput

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutput

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutputWithContext

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutputWithContext(ctx context.Context) PolicyPolicySettingsPtrOutput

type PolicyPolicySettingsPtrInput

type PolicyPolicySettingsPtrInput interface {
	pulumi.Input

	ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput
	ToPolicyPolicySettingsPtrOutputWithContext(context.Context) PolicyPolicySettingsPtrOutput
}

type PolicyPolicySettingsPtrOutput

type PolicyPolicySettingsPtrOutput struct{ *pulumi.OutputState }

func (PolicyPolicySettingsPtrOutput) Elem

func (PolicyPolicySettingsPtrOutput) ElementType

func (PolicyPolicySettingsPtrOutput) Enabled

Describes if the policy is in enabled state or disabled state Defaults to `Enabled`.

func (PolicyPolicySettingsPtrOutput) Mode

Describes if it is in detection mode or prevention mode at the policy level Defaults to `Prevention`.

func (PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutput

func (o PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutputWithContext

func (o PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutputWithContext(ctx context.Context) PolicyPolicySettingsPtrOutput

type PolicyState

type PolicyState struct {
	// One or more `customRule` blocks as defined below.
	CustomRules PolicyCustomRuleArrayInput
	// Resource location. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name of the policy. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A `policySetting` block as defined below.
	PolicySettings PolicyPolicySettingsPtrInput
	// The name of the resource group. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the Web Application Firewall Policy.
	Tags pulumi.StringMapInput
}

func (PolicyState) ElementType

func (PolicyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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