1. Packages
  2. Impart Security
  3. API Docs
  4. RuleTestCase
Impart Security v0.9.0 published on Friday, Mar 21, 2025 by Impart Security

impart.RuleTestCase

Explore with Pulumi AI

Example Usage

Create RuleTestCase Resource

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

Constructor syntax

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

@overload
def RuleTestCase(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 messages: Optional[Sequence[RuleTestCaseMessageArgs]] = None,
                 name: Optional[str] = None,
                 assertions: Optional[Sequence[RuleTestCaseAssertionArgs]] = None,
                 description: Optional[str] = None,
                 labels: Optional[Sequence[str]] = None,
                 required: Optional[bool] = None)
func NewRuleTestCase(ctx *Context, name string, args RuleTestCaseArgs, opts ...ResourceOption) (*RuleTestCase, error)
public RuleTestCase(string name, RuleTestCaseArgs args, CustomResourceOptions? opts = null)
public RuleTestCase(String name, RuleTestCaseArgs args)
public RuleTestCase(String name, RuleTestCaseArgs args, CustomResourceOptions options)
type: impart:RuleTestCase
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. RuleTestCaseArgs
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. RuleTestCaseArgs
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. RuleTestCaseArgs
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. RuleTestCaseArgs
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. RuleTestCaseArgs
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 ruleTestCaseResource = new Impart.RuleTestCase("ruleTestCaseResource", new()
{
    Messages = new[]
    {
        new Impart.Inputs.RuleTestCaseMessageArgs
        {
            Req = new Impart.Inputs.RuleTestCaseMessageReqArgs
            {
                Method = "string",
                Url = "string",
                Body = "string",
                CookieKeys = new[]
                {
                    "string",
                },
                CookieValues = new[]
                {
                    "string",
                },
                HeaderKeys = new[]
                {
                    "string",
                },
                HeaderValues = new[]
                {
                    "string",
                },
                RemoteAddr = "string",
                TruncatedBody = false,
            },
            Res = new Impart.Inputs.RuleTestCaseMessageResArgs
            {
                StatusCode = 0,
                Body = "string",
                HeaderKeys = new[]
                {
                    "string",
                },
                HeaderValues = new[]
                {
                    "string",
                },
                TruncatedBody = false,
            },
            Count = 0,
            Delay = 0,
            Description = "string",
            PostDelay = 0,
        },
    },
    Name = "string",
    Assertions = new[]
    {
        new Impart.Inputs.RuleTestCaseAssertionArgs
        {
            AssertionType = "string",
            Expected = "string",
            MessageIndexes = new[]
            {
                0,
            },
            Condition = "string",
            Description = "string",
            Location = "string",
        },
    },
    Description = "string",
    Labels = new[]
    {
        "string",
    },
    Required = false,
});
Copy
example, err := impart.NewRuleTestCase(ctx, "ruleTestCaseResource", &impart.RuleTestCaseArgs{
	Messages: impart.RuleTestCaseMessageArray{
		&impart.RuleTestCaseMessageArgs{
			Req: &impart.RuleTestCaseMessageReqArgs{
				Method: pulumi.String("string"),
				Url:    pulumi.String("string"),
				Body:   pulumi.String("string"),
				CookieKeys: pulumi.StringArray{
					pulumi.String("string"),
				},
				CookieValues: pulumi.StringArray{
					pulumi.String("string"),
				},
				HeaderKeys: pulumi.StringArray{
					pulumi.String("string"),
				},
				HeaderValues: pulumi.StringArray{
					pulumi.String("string"),
				},
				RemoteAddr:    pulumi.String("string"),
				TruncatedBody: pulumi.Bool(false),
			},
			Res: &impart.RuleTestCaseMessageResArgs{
				StatusCode: pulumi.Int(0),
				Body:       pulumi.String("string"),
				HeaderKeys: pulumi.StringArray{
					pulumi.String("string"),
				},
				HeaderValues: pulumi.StringArray{
					pulumi.String("string"),
				},
				TruncatedBody: pulumi.Bool(false),
			},
			Count:       pulumi.Int(0),
			Delay:       pulumi.Int(0),
			Description: pulumi.String("string"),
			PostDelay:   pulumi.Int(0),
		},
	},
	Name: pulumi.String("string"),
	Assertions: impart.RuleTestCaseAssertionArray{
		&impart.RuleTestCaseAssertionArgs{
			AssertionType: pulumi.String("string"),
			Expected:      pulumi.String("string"),
			MessageIndexes: pulumi.IntArray{
				pulumi.Int(0),
			},
			Condition:   pulumi.String("string"),
			Description: pulumi.String("string"),
			Location:    pulumi.String("string"),
		},
	},
	Description: pulumi.String("string"),
	Labels: pulumi.StringArray{
		pulumi.String("string"),
	},
	Required: pulumi.Bool(false),
})
Copy
var ruleTestCaseResource = new RuleTestCase("ruleTestCaseResource", RuleTestCaseArgs.builder()
    .messages(RuleTestCaseMessageArgs.builder()
        .req(RuleTestCaseMessageReqArgs.builder()
            .method("string")
            .url("string")
            .body("string")
            .cookieKeys("string")
            .cookieValues("string")
            .headerKeys("string")
            .headerValues("string")
            .remoteAddr("string")
            .truncatedBody(false)
            .build())
        .res(RuleTestCaseMessageResArgs.builder()
            .statusCode(0)
            .body("string")
            .headerKeys("string")
            .headerValues("string")
            .truncatedBody(false)
            .build())
        .count(0)
        .delay(0)
        .description("string")
        .postDelay(0)
        .build())
    .name("string")
    .assertions(RuleTestCaseAssertionArgs.builder()
        .assertionType("string")
        .expected("string")
        .messageIndexes(0)
        .condition("string")
        .description("string")
        .location("string")
        .build())
    .description("string")
    .labels("string")
    .required(false)
    .build());
Copy
rule_test_case_resource = impart.RuleTestCase("ruleTestCaseResource",
    messages=[{
        "req": {
            "method": "string",
            "url": "string",
            "body": "string",
            "cookie_keys": ["string"],
            "cookie_values": ["string"],
            "header_keys": ["string"],
            "header_values": ["string"],
            "remote_addr": "string",
            "truncated_body": False,
        },
        "res": {
            "status_code": 0,
            "body": "string",
            "header_keys": ["string"],
            "header_values": ["string"],
            "truncated_body": False,
        },
        "count": 0,
        "delay": 0,
        "description": "string",
        "post_delay": 0,
    }],
    name="string",
    assertions=[{
        "assertion_type": "string",
        "expected": "string",
        "message_indexes": [0],
        "condition": "string",
        "description": "string",
        "location": "string",
    }],
    description="string",
    labels=["string"],
    required=False)
Copy
const ruleTestCaseResource = new impart.RuleTestCase("ruleTestCaseResource", {
    messages: [{
        req: {
            method: "string",
            url: "string",
            body: "string",
            cookieKeys: ["string"],
            cookieValues: ["string"],
            headerKeys: ["string"],
            headerValues: ["string"],
            remoteAddr: "string",
            truncatedBody: false,
        },
        res: {
            statusCode: 0,
            body: "string",
            headerKeys: ["string"],
            headerValues: ["string"],
            truncatedBody: false,
        },
        count: 0,
        delay: 0,
        description: "string",
        postDelay: 0,
    }],
    name: "string",
    assertions: [{
        assertionType: "string",
        expected: "string",
        messageIndexes: [0],
        condition: "string",
        description: "string",
        location: "string",
    }],
    description: "string",
    labels: ["string"],
    required: false,
});
Copy
type: impart:RuleTestCase
properties:
    assertions:
        - assertionType: string
          condition: string
          description: string
          expected: string
          location: string
          messageIndexes:
            - 0
    description: string
    labels:
        - string
    messages:
        - count: 0
          delay: 0
          description: string
          postDelay: 0
          req:
            body: string
            cookieKeys:
                - string
            cookieValues:
                - string
            headerKeys:
                - string
            headerValues:
                - string
            method: string
            remoteAddr: string
            truncatedBody: false
            url: string
          res:
            body: string
            headerKeys:
                - string
            headerValues:
                - string
            statusCode: 0
            truncatedBody: false
    name: string
    required: false
Copy

RuleTestCase 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 RuleTestCase resource accepts the following input properties:

Messages This property is required. List<RuleTestCaseMessage>
The messages of the test case.
Name This property is required. string
The name of the test case.
Assertions List<RuleTestCaseAssertion>
The assertions of the test case.
Description string
The description of the test case.
Labels List<string>
The applied labels.
Required bool
Sets if test case required to pass on update.
Messages This property is required. []RuleTestCaseMessageArgs
The messages of the test case.
Name This property is required. string
The name of the test case.
Assertions []RuleTestCaseAssertionArgs
The assertions of the test case.
Description string
The description of the test case.
Labels []string
The applied labels.
Required bool
Sets if test case required to pass on update.
messages This property is required. List<RuleTestCaseMessage>
The messages of the test case.
name This property is required. String
The name of the test case.
assertions List<RuleTestCaseAssertion>
The assertions of the test case.
description String
The description of the test case.
labels List<String>
The applied labels.
required Boolean
Sets if test case required to pass on update.
messages This property is required. RuleTestCaseMessage[]
The messages of the test case.
name This property is required. string
The name of the test case.
assertions RuleTestCaseAssertion[]
The assertions of the test case.
description string
The description of the test case.
labels string[]
The applied labels.
required boolean
Sets if test case required to pass on update.
messages This property is required. Sequence[RuleTestCaseMessageArgs]
The messages of the test case.
name This property is required. str
The name of the test case.
assertions Sequence[RuleTestCaseAssertionArgs]
The assertions of the test case.
description str
The description of the test case.
labels Sequence[str]
The applied labels.
required bool
Sets if test case required to pass on update.
messages This property is required. List<Property Map>
The messages of the test case.
name This property is required. String
The name of the test case.
assertions List<Property Map>
The assertions of the test case.
description String
The description of the test case.
labels List<String>
The applied labels.
required Boolean
Sets if test case required to pass on update.

Outputs

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

Get an existing RuleTestCase 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?: RuleTestCaseState, opts?: CustomResourceOptions): RuleTestCase
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assertions: Optional[Sequence[RuleTestCaseAssertionArgs]] = None,
        description: Optional[str] = None,
        labels: Optional[Sequence[str]] = None,
        messages: Optional[Sequence[RuleTestCaseMessageArgs]] = None,
        name: Optional[str] = None,
        required: Optional[bool] = None) -> RuleTestCase
func GetRuleTestCase(ctx *Context, name string, id IDInput, state *RuleTestCaseState, opts ...ResourceOption) (*RuleTestCase, error)
public static RuleTestCase Get(string name, Input<string> id, RuleTestCaseState? state, CustomResourceOptions? opts = null)
public static RuleTestCase get(String name, Output<String> id, RuleTestCaseState state, CustomResourceOptions options)
resources:  _:    type: impart:RuleTestCase    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:
Assertions List<RuleTestCaseAssertion>
The assertions of the test case.
Description string
The description of the test case.
Labels List<string>
The applied labels.
Messages List<RuleTestCaseMessage>
The messages of the test case.
Name string
The name of the test case.
Required bool
Sets if test case required to pass on update.
Assertions []RuleTestCaseAssertionArgs
The assertions of the test case.
Description string
The description of the test case.
Labels []string
The applied labels.
Messages []RuleTestCaseMessageArgs
The messages of the test case.
Name string
The name of the test case.
Required bool
Sets if test case required to pass on update.
assertions List<RuleTestCaseAssertion>
The assertions of the test case.
description String
The description of the test case.
labels List<String>
The applied labels.
messages List<RuleTestCaseMessage>
The messages of the test case.
name String
The name of the test case.
required Boolean
Sets if test case required to pass on update.
assertions RuleTestCaseAssertion[]
The assertions of the test case.
description string
The description of the test case.
labels string[]
The applied labels.
messages RuleTestCaseMessage[]
The messages of the test case.
name string
The name of the test case.
required boolean
Sets if test case required to pass on update.
assertions Sequence[RuleTestCaseAssertionArgs]
The assertions of the test case.
description str
The description of the test case.
labels Sequence[str]
The applied labels.
messages Sequence[RuleTestCaseMessageArgs]
The messages of the test case.
name str
The name of the test case.
required bool
Sets if test case required to pass on update.
assertions List<Property Map>
The assertions of the test case.
description String
The description of the test case.
labels List<String>
The applied labels.
messages List<Property Map>
The messages of the test case.
name String
The name of the test case.
required Boolean
Sets if test case required to pass on update.

Supporting Types

RuleTestCaseAssertion
, RuleTestCaseAssertionArgs

AssertionType This property is required. string
The assertion type of the request.
Expected This property is required. string
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
MessageIndexes This property is required. List<int>
The indexes of the messages in the test case the assertion applies to.
Condition string
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
Description string
The description of the assertion.
Location string
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
AssertionType This property is required. string
The assertion type of the request.
Expected This property is required. string
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
MessageIndexes This property is required. []int
The indexes of the messages in the test case the assertion applies to.
Condition string
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
Description string
The description of the assertion.
Location string
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
assertionType This property is required. String
The assertion type of the request.
expected This property is required. String
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
messageIndexes This property is required. List<Integer>
The indexes of the messages in the test case the assertion applies to.
condition String
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
description String
The description of the assertion.
location String
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
assertionType This property is required. string
The assertion type of the request.
expected This property is required. string
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
messageIndexes This property is required. number[]
The indexes of the messages in the test case the assertion applies to.
condition string
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
description string
The description of the assertion.
location string
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
assertion_type This property is required. str
The assertion type of the request.
expected This property is required. str
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
message_indexes This property is required. Sequence[int]
The indexes of the messages in the test case the assertion applies to.
condition str
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
description str
The description of the assertion.
location str
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
assertionType This property is required. String
The assertion type of the request.
expected This property is required. String
The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
messageIndexes This property is required. List<Number>
The indexes of the messages in the test case the assertion applies to.
condition String
The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
description String
The description of the assertion.
location String
The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.

RuleTestCaseMessage
, RuleTestCaseMessageArgs

Req This property is required. RuleTestCaseMessageReq
A payload sent to the inspector to inspect an HTTP request.
Res This property is required. RuleTestCaseMessageRes
A payload sent to the inspector to inspect an HTTP response.
Count int
The number of times to include the message in the test case.
Delay int
The delay in milliseconds between message iterations.
Description string
The description of the test case message.
PostDelay int
The delay in milliseconds after a set of message iterations.
Req This property is required. RuleTestCaseMessageReq
A payload sent to the inspector to inspect an HTTP request.
Res This property is required. RuleTestCaseMessageRes
A payload sent to the inspector to inspect an HTTP response.
Count int
The number of times to include the message in the test case.
Delay int
The delay in milliseconds between message iterations.
Description string
The description of the test case message.
PostDelay int
The delay in milliseconds after a set of message iterations.
req This property is required. RuleTestCaseMessageReq
A payload sent to the inspector to inspect an HTTP request.
res This property is required. RuleTestCaseMessageRes
A payload sent to the inspector to inspect an HTTP response.
count Integer
The number of times to include the message in the test case.
delay Integer
The delay in milliseconds between message iterations.
description String
The description of the test case message.
postDelay Integer
The delay in milliseconds after a set of message iterations.
req This property is required. RuleTestCaseMessageReq
A payload sent to the inspector to inspect an HTTP request.
res This property is required. RuleTestCaseMessageRes
A payload sent to the inspector to inspect an HTTP response.
count number
The number of times to include the message in the test case.
delay number
The delay in milliseconds between message iterations.
description string
The description of the test case message.
postDelay number
The delay in milliseconds after a set of message iterations.
req This property is required. RuleTestCaseMessageReq
A payload sent to the inspector to inspect an HTTP request.
res This property is required. RuleTestCaseMessageRes
A payload sent to the inspector to inspect an HTTP response.
count int
The number of times to include the message in the test case.
delay int
The delay in milliseconds between message iterations.
description str
The description of the test case message.
post_delay int
The delay in milliseconds after a set of message iterations.
req This property is required. Property Map
A payload sent to the inspector to inspect an HTTP request.
res This property is required. Property Map
A payload sent to the inspector to inspect an HTTP response.
count Number
The number of times to include the message in the test case.
delay Number
The delay in milliseconds between message iterations.
description String
The description of the test case message.
postDelay Number
The delay in milliseconds after a set of message iterations.

RuleTestCaseMessageReq
, RuleTestCaseMessageReqArgs

Method This property is required. string
The method of the request.
Url This property is required. string
The URL of the request.
Body string
The base64 encoded HTTP request body.
CookieKeys List<string>
The HTTP request cookie keys.
CookieValues List<string>
The HTTP request cookie values.
HeaderKeys List<string>
The HTTP request header keys.
HeaderValues List<string>
The HTTP request header values.
RemoteAddr string
The remote address of the request.
TruncatedBody bool
Indicates whether the request body was truncated.
Method This property is required. string
The method of the request.
Url This property is required. string
The URL of the request.
Body string
The base64 encoded HTTP request body.
CookieKeys []string
The HTTP request cookie keys.
CookieValues []string
The HTTP request cookie values.
HeaderKeys []string
The HTTP request header keys.
HeaderValues []string
The HTTP request header values.
RemoteAddr string
The remote address of the request.
TruncatedBody bool
Indicates whether the request body was truncated.
method This property is required. String
The method of the request.
url This property is required. String
The URL of the request.
body String
The base64 encoded HTTP request body.
cookieKeys List<String>
The HTTP request cookie keys.
cookieValues List<String>
The HTTP request cookie values.
headerKeys List<String>
The HTTP request header keys.
headerValues List<String>
The HTTP request header values.
remoteAddr String
The remote address of the request.
truncatedBody Boolean
Indicates whether the request body was truncated.
method This property is required. string
The method of the request.
url This property is required. string
The URL of the request.
body string
The base64 encoded HTTP request body.
cookieKeys string[]
The HTTP request cookie keys.
cookieValues string[]
The HTTP request cookie values.
headerKeys string[]
The HTTP request header keys.
headerValues string[]
The HTTP request header values.
remoteAddr string
The remote address of the request.
truncatedBody boolean
Indicates whether the request body was truncated.
method This property is required. str
The method of the request.
url This property is required. str
The URL of the request.
body str
The base64 encoded HTTP request body.
cookie_keys Sequence[str]
The HTTP request cookie keys.
cookie_values Sequence[str]
The HTTP request cookie values.
header_keys Sequence[str]
The HTTP request header keys.
header_values Sequence[str]
The HTTP request header values.
remote_addr str
The remote address of the request.
truncated_body bool
Indicates whether the request body was truncated.
method This property is required. String
The method of the request.
url This property is required. String
The URL of the request.
body String
The base64 encoded HTTP request body.
cookieKeys List<String>
The HTTP request cookie keys.
cookieValues List<String>
The HTTP request cookie values.
headerKeys List<String>
The HTTP request header keys.
headerValues List<String>
The HTTP request header values.
remoteAddr String
The remote address of the request.
truncatedBody Boolean
Indicates whether the request body was truncated.

RuleTestCaseMessageRes
, RuleTestCaseMessageResArgs

StatusCode This property is required. int
The HTTP response status code.
Body string
The base64 encoded HTTP response body.
HeaderKeys List<string>
The HTTP response header keys.
HeaderValues List<string>
The HTTP response header values.
TruncatedBody bool
Indicates whether the response body was truncated.
StatusCode This property is required. int
The HTTP response status code.
Body string
The base64 encoded HTTP response body.
HeaderKeys []string
The HTTP response header keys.
HeaderValues []string
The HTTP response header values.
TruncatedBody bool
Indicates whether the response body was truncated.
statusCode This property is required. Integer
The HTTP response status code.
body String
The base64 encoded HTTP response body.
headerKeys List<String>
The HTTP response header keys.
headerValues List<String>
The HTTP response header values.
truncatedBody Boolean
Indicates whether the response body was truncated.
statusCode This property is required. number
The HTTP response status code.
body string
The base64 encoded HTTP response body.
headerKeys string[]
The HTTP response header keys.
headerValues string[]
The HTTP response header values.
truncatedBody boolean
Indicates whether the response body was truncated.
status_code This property is required. int
The HTTP response status code.
body str
The base64 encoded HTTP response body.
header_keys Sequence[str]
The HTTP response header keys.
header_values Sequence[str]
The HTTP response header values.
truncated_body bool
Indicates whether the response body was truncated.
statusCode This property is required. Number
The HTTP response status code.
body String
The base64 encoded HTTP response body.
headerKeys List<String>
The HTTP response header keys.
headerValues List<String>
The HTTP response header values.
truncatedBody Boolean
Indicates whether the response body was truncated.

Package Details

Repository
impart impart-security/pulumi-impart
License
Apache-2.0
Notes
This Pulumi package is based on the impart Terraform Provider.