1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectWafProfileConstraintMalformed
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectWafProfileConstraintMalformed

Explore with Pulumi AI

Enable/disable malformed HTTP request check.

This resource is a sub resource for variable malformed of resource fortimanager.ObjectWafProfileConstraint. Conflict and overwrite may occur if use both of them.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectWafProfile = new fortimanager.ObjectWafProfile("trnameObjectWafProfile", {});
const trnameObjectWafProfileConstraintMalformed = new fortimanager.ObjectWafProfileConstraintMalformed("trnameObjectWafProfileConstraintMalformed", {
    action: "block",
    log: "enable",
    profile: trnameObjectWafProfile.name,
}, {
    dependsOn: [trnameObjectWafProfile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_waf_profile = fortimanager.ObjectWafProfile("trnameObjectWafProfile")
trname_object_waf_profile_constraint_malformed = fortimanager.ObjectWafProfileConstraintMalformed("trnameObjectWafProfileConstraintMalformed",
    action="block",
    log="enable",
    profile=trname_object_waf_profile.name,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_waf_profile]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectWafProfile, err := fortimanager.NewObjectWafProfile(ctx, "trnameObjectWafProfile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectWafProfileConstraintMalformed(ctx, "trnameObjectWafProfileConstraintMalformed", &fortimanager.ObjectWafProfileConstraintMalformedArgs{
			Action:  pulumi.String("block"),
			Log:     pulumi.String("enable"),
			Profile: trnameObjectWafProfile.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectWafProfile,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectWafProfile = new Fortimanager.ObjectWafProfile("trnameObjectWafProfile");

    var trnameObjectWafProfileConstraintMalformed = new Fortimanager.ObjectWafProfileConstraintMalformed("trnameObjectWafProfileConstraintMalformed", new()
    {
        Action = "block",
        Log = "enable",
        Profile = trnameObjectWafProfile.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectWafProfile,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectWafProfile;
import com.pulumi.fortimanager.ObjectWafProfileConstraintMalformed;
import com.pulumi.fortimanager.ObjectWafProfileConstraintMalformedArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var trnameObjectWafProfile = new ObjectWafProfile("trnameObjectWafProfile");

        var trnameObjectWafProfileConstraintMalformed = new ObjectWafProfileConstraintMalformed("trnameObjectWafProfileConstraintMalformed", ObjectWafProfileConstraintMalformedArgs.builder()
            .action("block")
            .log("enable")
            .profile(trnameObjectWafProfile.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectWafProfile)
                .build());

    }
}
Copy
resources:
  trnameObjectWafProfileConstraintMalformed:
    type: fortimanager:ObjectWafProfileConstraintMalformed
    properties:
      action: block
      log: enable
      profile: ${trnameObjectWafProfile.name}
    options:
      dependsOn:
        - ${trnameObjectWafProfile}
  trnameObjectWafProfile:
    type: fortimanager:ObjectWafProfile
Copy

Create ObjectWafProfileConstraintMalformed Resource

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

Constructor syntax

new ObjectWafProfileConstraintMalformed(name: string, args: ObjectWafProfileConstraintMalformedArgs, opts?: CustomResourceOptions);
@overload
def ObjectWafProfileConstraintMalformed(resource_name: str,
                                        args: ObjectWafProfileConstraintMalformedInitArgs,
                                        opts: Optional[ResourceOptions] = None)

@overload
def ObjectWafProfileConstraintMalformed(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        profile: Optional[str] = None,
                                        action: Optional[str] = None,
                                        adom: Optional[str] = None,
                                        log: Optional[str] = None,
                                        object_waf_profile_constraint_malformed_id: Optional[str] = None,
                                        scopetype: Optional[str] = None,
                                        severity: Optional[str] = None,
                                        status: Optional[str] = None)
func NewObjectWafProfileConstraintMalformed(ctx *Context, name string, args ObjectWafProfileConstraintMalformedArgs, opts ...ResourceOption) (*ObjectWafProfileConstraintMalformed, error)
public ObjectWafProfileConstraintMalformed(string name, ObjectWafProfileConstraintMalformedArgs args, CustomResourceOptions? opts = null)
public ObjectWafProfileConstraintMalformed(String name, ObjectWafProfileConstraintMalformedArgs args)
public ObjectWafProfileConstraintMalformed(String name, ObjectWafProfileConstraintMalformedArgs args, CustomResourceOptions options)
type: fortimanager:ObjectWafProfileConstraintMalformed
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectWafProfileConstraintMalformedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectWafProfileConstraintMalformedInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectWafProfileConstraintMalformedArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectWafProfileConstraintMalformedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectWafProfileConstraintMalformedArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

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

var objectWafProfileConstraintMalformedResource = new Fortimanager.ObjectWafProfileConstraintMalformed("objectWafProfileConstraintMalformedResource", new()
{
    Profile = "string",
    Action = "string",
    Adom = "string",
    Log = "string",
    ObjectWafProfileConstraintMalformedId = "string",
    Scopetype = "string",
    Severity = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectWafProfileConstraintMalformed(ctx, "objectWafProfileConstraintMalformedResource", &fortimanager.ObjectWafProfileConstraintMalformedArgs{
Profile: pulumi.String("string"),
Action: pulumi.String("string"),
Adom: pulumi.String("string"),
Log: pulumi.String("string"),
ObjectWafProfileConstraintMalformedId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Severity: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectWafProfileConstraintMalformedResource = new ObjectWafProfileConstraintMalformed("objectWafProfileConstraintMalformedResource", ObjectWafProfileConstraintMalformedArgs.builder()
    .profile("string")
    .action("string")
    .adom("string")
    .log("string")
    .objectWafProfileConstraintMalformedId("string")
    .scopetype("string")
    .severity("string")
    .status("string")
    .build());
Copy
object_waf_profile_constraint_malformed_resource = fortimanager.ObjectWafProfileConstraintMalformed("objectWafProfileConstraintMalformedResource",
    profile="string",
    action="string",
    adom="string",
    log="string",
    object_waf_profile_constraint_malformed_id="string",
    scopetype="string",
    severity="string",
    status="string")
Copy
const objectWafProfileConstraintMalformedResource = new fortimanager.ObjectWafProfileConstraintMalformed("objectWafProfileConstraintMalformedResource", {
    profile: "string",
    action: "string",
    adom: "string",
    log: "string",
    objectWafProfileConstraintMalformedId: "string",
    scopetype: "string",
    severity: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectWafProfileConstraintMalformed
properties:
    action: string
    adom: string
    log: string
    objectWafProfileConstraintMalformedId: string
    profile: string
    scopetype: string
    severity: string
    status: string
Copy

ObjectWafProfileConstraintMalformed Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ObjectWafProfileConstraintMalformed resource accepts the following input properties:

Profile This property is required. string
Profile.
Action string
Action. Valid values: allow, block.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectWafProfileConstraintMalformedId string
an identifier for the resource.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Severity. Valid values: low, medium, high.
Status string
Enable/disable the constraint. Valid values: disable, enable.
Profile This property is required. string
Profile.
Action string
Action. Valid values: allow, block.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectWafProfileConstraintMalformedId string
an identifier for the resource.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Severity. Valid values: low, medium, high.
Status string
Enable/disable the constraint. Valid values: disable, enable.
profile This property is required. String
Profile.
action String
Action. Valid values: allow, block.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log String
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId String
an identifier for the resource.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Severity. Valid values: low, medium, high.
status String
Enable/disable the constraint. Valid values: disable, enable.
profile This property is required. string
Profile.
action string
Action. Valid values: allow, block.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log string
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId string
an identifier for the resource.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity string
Severity. Valid values: low, medium, high.
status string
Enable/disable the constraint. Valid values: disable, enable.
profile This property is required. str
Profile.
action str
Action. Valid values: allow, block.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log str
Enable/disable logging. Valid values: disable, enable.
object_waf_profile_constraint_malformed_id str
an identifier for the resource.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity str
Severity. Valid values: low, medium, high.
status str
Enable/disable the constraint. Valid values: disable, enable.
profile This property is required. String
Profile.
action String
Action. Valid values: allow, block.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log String
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId String
an identifier for the resource.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Severity. Valid values: low, medium, high.
status String
Enable/disable the constraint. Valid values: disable, enable.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectWafProfileConstraintMalformed resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ObjectWafProfileConstraintMalformed Resource

Get an existing ObjectWafProfileConstraintMalformed resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ObjectWafProfileConstraintMalformedState, opts?: CustomResourceOptions): ObjectWafProfileConstraintMalformed
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        adom: Optional[str] = None,
        log: Optional[str] = None,
        object_waf_profile_constraint_malformed_id: Optional[str] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None,
        severity: Optional[str] = None,
        status: Optional[str] = None) -> ObjectWafProfileConstraintMalformed
func GetObjectWafProfileConstraintMalformed(ctx *Context, name string, id IDInput, state *ObjectWafProfileConstraintMalformedState, opts ...ResourceOption) (*ObjectWafProfileConstraintMalformed, error)
public static ObjectWafProfileConstraintMalformed Get(string name, Input<string> id, ObjectWafProfileConstraintMalformedState? state, CustomResourceOptions? opts = null)
public static ObjectWafProfileConstraintMalformed get(String name, Output<String> id, ObjectWafProfileConstraintMalformedState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectWafProfileConstraintMalformed    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action string
Action. Valid values: allow, block.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectWafProfileConstraintMalformedId string
an identifier for the resource.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Severity. Valid values: low, medium, high.
Status string
Enable/disable the constraint. Valid values: disable, enable.
Action string
Action. Valid values: allow, block.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectWafProfileConstraintMalformedId string
an identifier for the resource.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Severity. Valid values: low, medium, high.
Status string
Enable/disable the constraint. Valid values: disable, enable.
action String
Action. Valid values: allow, block.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log String
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId String
an identifier for the resource.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Severity. Valid values: low, medium, high.
status String
Enable/disable the constraint. Valid values: disable, enable.
action string
Action. Valid values: allow, block.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log string
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId string
an identifier for the resource.
profile string
Profile.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity string
Severity. Valid values: low, medium, high.
status string
Enable/disable the constraint. Valid values: disable, enable.
action str
Action. Valid values: allow, block.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log str
Enable/disable logging. Valid values: disable, enable.
object_waf_profile_constraint_malformed_id str
an identifier for the resource.
profile str
Profile.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity str
Severity. Valid values: low, medium, high.
status str
Enable/disable the constraint. Valid values: disable, enable.
action String
Action. Valid values: allow, block.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
log String
Enable/disable logging. Valid values: disable, enable.
objectWafProfileConstraintMalformedId String
an identifier for the resource.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Severity. Valid values: low, medium, high.
status String
Enable/disable the constraint. Valid values: disable, enable.

Import

ObjectWaf ProfileConstraintMalformed can be imported using any of these accepted formats:

Set import_options = [“profile=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectWafProfileConstraintMalformed:ObjectWafProfileConstraintMalformed labelname ObjectWafProfileConstraintMalformed
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.