waf

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 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 added in v1.12.0

func (PolicyArgs) ElementType() reflect.Type

type PolicyCustomRule added in v1.12.0

type PolicyCustomRule struct {
	Action          string                           `pulumi:"action"`
	MatchConditions []PolicyCustomRuleMatchCondition `pulumi:"matchConditions"`
	// The name of the policy. Changing this forces a new resource to be created.
	Name     *string `pulumi:"name"`
	Priority int     `pulumi:"priority"`
	RuleType string  `pulumi:"ruleType"`
}

type PolicyCustomRuleArgs added in v1.12.0

type PolicyCustomRuleArgs struct {
	Action          pulumi.StringInput                       `pulumi:"action"`
	MatchConditions PolicyCustomRuleMatchConditionArrayInput `pulumi:"matchConditions"`
	// The name of the policy. Changing this forces a new resource to be created.
	Name     pulumi.StringPtrInput `pulumi:"name"`
	Priority pulumi.IntInput       `pulumi:"priority"`
	RuleType pulumi.StringInput    `pulumi:"ruleType"`
}

func (PolicyCustomRuleArgs) ElementType added in v1.12.0

func (PolicyCustomRuleArgs) ElementType() reflect.Type

func (PolicyCustomRuleArgs) ToPolicyCustomRuleOutput added in v1.12.0

func (i PolicyCustomRuleArgs) ToPolicyCustomRuleOutput() PolicyCustomRuleOutput

func (PolicyCustomRuleArgs) ToPolicyCustomRuleOutputWithContext added in v1.12.0

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

type PolicyCustomRuleArray added in v1.12.0

type PolicyCustomRuleArray []PolicyCustomRuleInput

func (PolicyCustomRuleArray) ElementType added in v1.12.0

func (PolicyCustomRuleArray) ElementType() reflect.Type

func (PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutput added in v1.12.0

func (i PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutput() PolicyCustomRuleArrayOutput

func (PolicyCustomRuleArray) ToPolicyCustomRuleArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleArrayInput added in v1.12.0

type PolicyCustomRuleArrayInput interface {
	pulumi.Input

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

type PolicyCustomRuleArrayOutput added in v1.12.0

type PolicyCustomRuleArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleArrayOutput) ElementType added in v1.12.0

func (PolicyCustomRuleArrayOutput) Index added in v1.12.0

func (PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutput added in v1.12.0

func (o PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutput() PolicyCustomRuleArrayOutput

func (PolicyCustomRuleArrayOutput) ToPolicyCustomRuleArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleInput added in v1.12.0

type PolicyCustomRuleInput interface {
	pulumi.Input

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

type PolicyCustomRuleMatchCondition added in v1.12.0

type PolicyCustomRuleMatchCondition struct {
	MatchValues       []string                                      `pulumi:"matchValues"`
	MatchVariables    []PolicyCustomRuleMatchConditionMatchVariable `pulumi:"matchVariables"`
	NegationCondition *bool                                         `pulumi:"negationCondition"`
	Operator          string                                        `pulumi:"operator"`
}

type PolicyCustomRuleMatchConditionArgs added in v1.12.0

type PolicyCustomRuleMatchConditionArgs struct {
	MatchValues       pulumi.StringArrayInput                               `pulumi:"matchValues"`
	MatchVariables    PolicyCustomRuleMatchConditionMatchVariableArrayInput `pulumi:"matchVariables"`
	NegationCondition pulumi.BoolPtrInput                                   `pulumi:"negationCondition"`
	Operator          pulumi.StringInput                                    `pulumi:"operator"`
}

func (PolicyCustomRuleMatchConditionArgs) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutput added in v1.12.0

func (i PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutput() PolicyCustomRuleMatchConditionOutput

func (PolicyCustomRuleMatchConditionArgs) ToPolicyCustomRuleMatchConditionOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionArray added in v1.12.0

type PolicyCustomRuleMatchConditionArray []PolicyCustomRuleMatchConditionInput

func (PolicyCustomRuleMatchConditionArray) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutput added in v1.12.0

func (i PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutput() PolicyCustomRuleMatchConditionArrayOutput

func (PolicyCustomRuleMatchConditionArray) ToPolicyCustomRuleMatchConditionArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionArrayInput added in v1.12.0

type PolicyCustomRuleMatchConditionArrayInput interface {
	pulumi.Input

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

type PolicyCustomRuleMatchConditionArrayOutput added in v1.12.0

type PolicyCustomRuleMatchConditionArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionArrayOutput) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionArrayOutput) Index added in v1.12.0

func (PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutput added in v1.12.0

func (o PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutput() PolicyCustomRuleMatchConditionArrayOutput

func (PolicyCustomRuleMatchConditionArrayOutput) ToPolicyCustomRuleMatchConditionArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionInput added in v1.12.0

type PolicyCustomRuleMatchConditionInput interface {
	pulumi.Input

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

type PolicyCustomRuleMatchConditionMatchVariable added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariable struct {
	Selector     *string `pulumi:"selector"`
	VariableName string  `pulumi:"variableName"`
}

type PolicyCustomRuleMatchConditionMatchVariableArgs added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableArgs struct {
	Selector     pulumi.StringPtrInput `pulumi:"selector"`
	VariableName pulumi.StringInput    `pulumi:"variableName"`
}

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutput added in v1.12.0

func (i PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutput() PolicyCustomRuleMatchConditionMatchVariableOutput

func (PolicyCustomRuleMatchConditionMatchVariableArgs) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionMatchVariableArray added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableArray []PolicyCustomRuleMatchConditionMatchVariableInput

func (PolicyCustomRuleMatchConditionMatchVariableArray) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput added in v1.12.0

func (i PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput() PolicyCustomRuleMatchConditionMatchVariableArrayOutput

func (PolicyCustomRuleMatchConditionMatchVariableArray) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionMatchVariableArrayInput added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableArrayInput interface {
	pulumi.Input

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

type PolicyCustomRuleMatchConditionMatchVariableArrayOutput added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableArrayOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) Index added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutput added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableArrayOutput) ToPolicyCustomRuleMatchConditionMatchVariableArrayOutputWithContext added in v1.12.0

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

type PolicyCustomRuleMatchConditionMatchVariableInput added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableInput interface {
	pulumi.Input

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

type PolicyCustomRuleMatchConditionMatchVariableOutput added in v1.12.0

type PolicyCustomRuleMatchConditionMatchVariableOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableOutput) Selector added in v1.12.0

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutput added in v1.12.0

func (o PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutput() PolicyCustomRuleMatchConditionMatchVariableOutput

func (PolicyCustomRuleMatchConditionMatchVariableOutput) ToPolicyCustomRuleMatchConditionMatchVariableOutputWithContext added in v1.12.0

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

func (PolicyCustomRuleMatchConditionMatchVariableOutput) VariableName added in v1.12.0

type PolicyCustomRuleMatchConditionOutput added in v1.12.0

type PolicyCustomRuleMatchConditionOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleMatchConditionOutput) ElementType added in v1.12.0

func (PolicyCustomRuleMatchConditionOutput) MatchValues added in v1.12.0

func (PolicyCustomRuleMatchConditionOutput) MatchVariables added in v1.12.0

func (PolicyCustomRuleMatchConditionOutput) NegationCondition added in v1.12.0

func (PolicyCustomRuleMatchConditionOutput) Operator added in v1.12.0

func (PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutput added in v1.12.0

func (o PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutput() PolicyCustomRuleMatchConditionOutput

func (PolicyCustomRuleMatchConditionOutput) ToPolicyCustomRuleMatchConditionOutputWithContext added in v1.12.0

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

type PolicyCustomRuleOutput added in v1.12.0

type PolicyCustomRuleOutput struct{ *pulumi.OutputState }

func (PolicyCustomRuleOutput) Action added in v1.12.0

func (PolicyCustomRuleOutput) ElementType added in v1.12.0

func (PolicyCustomRuleOutput) ElementType() reflect.Type

func (PolicyCustomRuleOutput) MatchConditions added in v1.12.0

func (PolicyCustomRuleOutput) Name added in v1.12.0

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

func (PolicyCustomRuleOutput) Priority added in v1.12.0

func (PolicyCustomRuleOutput) RuleType added in v1.12.0

func (PolicyCustomRuleOutput) ToPolicyCustomRuleOutput added in v1.12.0

func (o PolicyCustomRuleOutput) ToPolicyCustomRuleOutput() PolicyCustomRuleOutput

func (PolicyCustomRuleOutput) ToPolicyCustomRuleOutputWithContext added in v1.12.0

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

type PolicyPolicySettings added in v1.12.0

type PolicyPolicySettings struct {
	Enabled *bool   `pulumi:"enabled"`
	Mode    *string `pulumi:"mode"`
}

type PolicyPolicySettingsArgs added in v1.12.0

type PolicyPolicySettingsArgs struct {
	Enabled pulumi.BoolPtrInput   `pulumi:"enabled"`
	Mode    pulumi.StringPtrInput `pulumi:"mode"`
}

func (PolicyPolicySettingsArgs) ElementType added in v1.12.0

func (PolicyPolicySettingsArgs) ElementType() reflect.Type

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutput added in v1.12.0

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutput() PolicyPolicySettingsOutput

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsOutputWithContext added in v1.12.0

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

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutput added in v1.12.0

func (i PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsArgs) ToPolicyPolicySettingsPtrOutputWithContext added in v1.12.0

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

type PolicyPolicySettingsInput added in v1.12.0

type PolicyPolicySettingsInput interface {
	pulumi.Input

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

type PolicyPolicySettingsOutput added in v1.12.0

type PolicyPolicySettingsOutput struct{ *pulumi.OutputState }

func (PolicyPolicySettingsOutput) ElementType added in v1.12.0

func (PolicyPolicySettingsOutput) ElementType() reflect.Type

func (PolicyPolicySettingsOutput) Enabled added in v1.12.0

func (PolicyPolicySettingsOutput) Mode added in v1.12.0

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutput added in v1.12.0

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutput() PolicyPolicySettingsOutput

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsOutputWithContext added in v1.12.0

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

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutput added in v1.12.0

func (o PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsOutput) ToPolicyPolicySettingsPtrOutputWithContext added in v1.12.0

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

type PolicyPolicySettingsPtrInput added in v1.12.0

type PolicyPolicySettingsPtrInput interface {
	pulumi.Input

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

func PolicyPolicySettingsPtr added in v1.12.0

func PolicyPolicySettingsPtr(v *PolicyPolicySettingsArgs) PolicyPolicySettingsPtrInput

type PolicyPolicySettingsPtrOutput added in v1.12.0

type PolicyPolicySettingsPtrOutput struct{ *pulumi.OutputState }

func (PolicyPolicySettingsPtrOutput) Elem added in v1.12.0

func (PolicyPolicySettingsPtrOutput) ElementType added in v1.12.0

func (PolicyPolicySettingsPtrOutput) Enabled added in v1.12.0

func (PolicyPolicySettingsPtrOutput) Mode added in v1.12.0

func (PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutput added in v1.12.0

func (o PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutput() PolicyPolicySettingsPtrOutput

func (PolicyPolicySettingsPtrOutput) ToPolicyPolicySettingsPtrOutputWithContext added in v1.12.0

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 added in v1.12.0

func (PolicyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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