Skip to content

Create Proxy Rules

networkfirewall_create_proxy_rules R Documentation

Creates Network Firewall ProxyRule resources

Description

Creates Network Firewall ProxyRule resources.

Attaches new proxy rule(s) to an existing proxy rule group.

To retrieve information about individual proxy rules, use describe_proxy_rule_group and describe_proxy_rule.

Usage

networkfirewall_create_proxy_rules(ProxyRuleGroupArn,
  ProxyRuleGroupName, Rules)

Arguments

ProxyRuleGroupArn

The Amazon Resource Name (ARN) of a proxy rule group.

You must specify the ARN or the name, and you can specify both.

ProxyRuleGroupName

The descriptive name of the proxy rule group. You can't change the name of a proxy rule group after you create it.

You must specify the ARN or the name, and you can specify both.

Rules

[required] Individual rules that define match conditions and actions for application-layer traffic. Rules specify what to inspect (domains, headers, methods) and what action to take (allow, deny, alert).

Value

A list with the following syntax:

list(
  ProxyRuleGroup = list(
    ProxyRuleGroupName = "string",
    ProxyRuleGroupArn = "string",
    CreateTime = as.POSIXct(
      "2015-01-01"
    ),
    DeleteTime = as.POSIXct(
      "2015-01-01"
    ),
    Rules = list(
      PreDNS = list(
        list(
          ProxyRuleName = "string",
          Description = "string",
          Action = "ALLOW"|"DENY"|"ALERT",
          Conditions = list(
            list(
              ConditionOperator = "string",
              ConditionKey = "string",
              ConditionValues = list(
                "string"
              )
            )
          )
        )
      ),
      PreREQUEST = list(
        list(
          ProxyRuleName = "string",
          Description = "string",
          Action = "ALLOW"|"DENY"|"ALERT",
          Conditions = list(
            list(
              ConditionOperator = "string",
              ConditionKey = "string",
              ConditionValues = list(
                "string"
              )
            )
          )
        )
      ),
      PostRESPONSE = list(
        list(
          ProxyRuleName = "string",
          Description = "string",
          Action = "ALLOW"|"DENY"|"ALERT",
          Conditions = list(
            list(
              ConditionOperator = "string",
              ConditionKey = "string",
              ConditionValues = list(
                "string"
              )
            )
          )
        )
      )
    ),
    Description = "string",
    Tags = list(
      list(
        Key = "string",
        Value = "string"
      )
    )
  ),
  UpdateToken = "string"
)

Request syntax

svc$create_proxy_rules(
  ProxyRuleGroupArn = "string",
  ProxyRuleGroupName = "string",
  Rules = list(
    PreDNS = list(
      list(
        ProxyRuleName = "string",
        Description = "string",
        Action = "ALLOW"|"DENY"|"ALERT",
        Conditions = list(
          list(
            ConditionOperator = "string",
            ConditionKey = "string",
            ConditionValues = list(
              "string"
            )
          )
        ),
        InsertPosition = 123
      )
    ),
    PreREQUEST = list(
      list(
        ProxyRuleName = "string",
        Description = "string",
        Action = "ALLOW"|"DENY"|"ALERT",
        Conditions = list(
          list(
            ConditionOperator = "string",
            ConditionKey = "string",
            ConditionValues = list(
              "string"
            )
          )
        ),
        InsertPosition = 123
      )
    ),
    PostRESPONSE = list(
      list(
        ProxyRuleName = "string",
        Description = "string",
        Action = "ALLOW"|"DENY"|"ALERT",
        Conditions = list(
          list(
            ConditionOperator = "string",
            ConditionKey = "string",
            ConditionValues = list(
              "string"
            )
          )
        ),
        InsertPosition = 123
      )
    )
  )
)