Amazon Network Firewall #X Amz Target=NetworkFirewall 20201112.UpdateRuleGroup API

The #X Amz Target=NetworkFirewall 20201112.UpdateRuleGroup API from Amazon Network Firewall — 1 operation(s) for #x amz target=networkfirewall 20201112.updaterulegroup.

OpenAPI Specification

amazon-network-firewall-x-amz-target-networkfirewall-20201112-updaterulegroup-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: 2020-11-12
  x-release: v4
  title: 'AWS Network Firewall #X Amz Target=NetworkFirewall 20201112.AssociateFirewallPolicy #X Amz Target=NetworkFirewall 20201112.AssociateFirewallPolicy #X Amz Target=NetworkFirewall 20201112.UpdateRuleGroup API'
  description: '<p>This is the API Reference for Network Firewall. This guide is for developers who need detailed information about the Network Firewall API actions, data types, and errors. </p> <ul> <li> <p>The REST API requires you to handle connection details, such as calculating signatures, handling request retries, and error handling. For general information about using the Amazon Web Services REST APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a>. </p> <p>To access Network Firewall using the REST API endpoint: <code>https://network-firewall.&lt;region&gt;.amazonaws.com </code> </p> </li> <li> <p>Alternatively, you can use one of the Amazon Web Services SDKs to access an API that''s tailored to the programming language or platform that you''re using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p> </li> <li> <p>For descriptions of Network Firewall features, including and step-by-step instructions on how to use them through the Network Firewall console, see the <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/">Network Firewall Developer Guide</a>.</p> </li> </ul> <p>Network Firewall is a stateful, managed, network firewall and intrusion detection and prevention service for Amazon Virtual Private Cloud (Amazon VPC). With Network Firewall, you can filter traffic at the perimeter of your VPC. This includes filtering traffic going to and coming from an internet gateway, NAT gateway, or over VPN or Direct Connect. Network Firewall uses rules that are compatible with Suricata, a free, open source network analysis and threat detection engine. Network Firewall supports Suricata version 6.0.9. For information about Suricata, see the <a href="https://suricata.io/">Suricata website</a>.</p> <p>You can use Network Firewall to monitor and protect your VPC traffic in a number of ways. The following are just a few examples: </p> <ul> <li> <p>Allow domains or IP addresses for known Amazon Web Services service endpoints, such as Amazon S3, and block all other forms of traffic.</p> </li> <li> <p>Use custom lists of known bad domains to limit the types of domain names that your applications can access.</p> </li> <li> <p>Perform deep packet inspection on traffic entering or leaving your VPC.</p> </li> <li> <p>Use stateful protocol detection to filter protocols like HTTPS, regardless of the port used.</p> </li> </ul> <p>To enable Network Firewall for your VPCs, you perform steps in both Amazon VPC and in Network Firewall. For information about using Amazon VPC, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/">Amazon VPC User Guide</a>.</p> <p>To start using Network Firewall, do the following: </p> <ol> <li> <p>(Optional) If you don''t already have a VPC that you want to protect, create it in Amazon VPC. </p> </li> <li> <p>In Amazon VPC, in each Availability Zone where you want to have a firewall endpoint, create a subnet for the sole use of Network Firewall. </p> </li> <li> <p>In Network Firewall, create stateless and stateful rule groups, to define the components of the network traffic filtering behavior that you want your firewall to have. </p> </li> <li> <p>In Network Firewall, create a firewall policy that uses your rule groups and specifies additional default traffic filtering behavior. </p> </li> <li> <p>In Network Firewall, create a firewall and specify your new firewall policy and VPC subnets. Network Firewall creates a firewall endpoint in each subnet that you specify, with the behavior that''s defined in the firewall policy.</p> </li> <li> <p>In Amazon VPC, use ingress routing enhancements to route traffic through the new firewall endpoints.</p> </li> </ol>'
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png
    backgroundColor: '#FFFFFF'
  termsOfService: https://aws.amazon.com/service-terms/
  contact:
    name: Mike Ralphson
    email: mike.ralphson@gmail.com
    url: https://github.com/mermade/aws2openapi
    x-twitter: PermittedSoc
  license:
    name: Apache 2.0 License
    url: http://www.apache.org/licenses/
  x-providerName: amazonaws.com
  x-serviceName: network-firewall
  x-aws-signingName: network-firewall
  x-origin:
  - contentType: application/json
    url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/network-firewall-2020-11-12.normal.json
    converter:
      url: https://github.com/mermade/aws2openapi
      version: 1.0.0
    x-apisguru-driver: external
  x-apiClientRegistration:
    url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct
  x-apisguru-categories:
  - cloud
  x-preferred: true
servers:
- url: http://network-firewall.{region}.amazonaws.com
  variables:
    region:
      description: The AWS region
      enum:
      - us-east-1
      - us-east-2
      - us-west-1
      - us-west-2
      - us-gov-west-1
      - us-gov-east-1
      - ca-central-1
      - eu-north-1
      - eu-west-1
      - eu-west-2
      - eu-west-3
      - eu-central-1
      - eu-south-1
      - af-south-1
      - ap-northeast-1
      - ap-northeast-2
      - ap-northeast-3
      - ap-southeast-1
      - ap-southeast-2
      - ap-east-1
      - ap-south-1
      - sa-east-1
      - me-south-1
      default: us-east-1
  description: The Network Firewall multi-region endpoint
- url: https://network-firewall.{region}.amazonaws.com
  variables:
    region:
      description: The AWS region
      enum:
      - us-east-1
      - us-east-2
      - us-west-1
      - us-west-2
      - us-gov-west-1
      - us-gov-east-1
      - ca-central-1
      - eu-north-1
      - eu-west-1
      - eu-west-2
      - eu-west-3
      - eu-central-1
      - eu-south-1
      - af-south-1
      - ap-northeast-1
      - ap-northeast-2
      - ap-northeast-3
      - ap-southeast-1
      - ap-southeast-2
      - ap-east-1
      - ap-south-1
      - sa-east-1
      - me-south-1
      default: us-east-1
  description: The Network Firewall multi-region endpoint
- url: http://network-firewall.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Network Firewall endpoint for China (Beijing) and China (Ningxia)
- url: https://network-firewall.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Network Firewall endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: '#X Amz Target=NetworkFirewall 20201112.UpdateRuleGroup'
paths:
  /#X-Amz-Target=NetworkFirewall_20201112.UpdateRuleGroup:
    parameters:
    - $ref: '#/components/parameters/X-Amz-Content-Sha256'
    - $ref: '#/components/parameters/X-Amz-Date'
    - $ref: '#/components/parameters/X-Amz-Algorithm'
    - $ref: '#/components/parameters/X-Amz-Credential'
    - $ref: '#/components/parameters/X-Amz-Security-Token'
    - $ref: '#/components/parameters/X-Amz-Signature'
    - $ref: '#/components/parameters/X-Amz-SignedHeaders'
    post:
      operationId: UpdateRuleGroup
      description: <p>Updates the rule settings for the specified rule group. You use a rule group by reference in one or more firewall policies. When you modify a rule group, you modify all firewall policies that use the rule group. </p> <p>To update a rule group, first call <a>DescribeRuleGroup</a> to retrieve the current <a>RuleGroup</a> object, update the object as needed, and then provide the updated object to this call. </p>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateRuleGroupResponse'
              examples:
                UpdateRuleGroup200Example:
                  summary: Default UpdateRuleGroup 200 response
                  x-microcks-default: true
                  value:
                    UpdateToken: example-string
                    RuleGroupResponse: example-string
        '480':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '481':
          description: InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '482':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
        '484':
          description: InvalidTokenException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidTokenException'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRuleGroupRequest'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - NetworkFirewall_20201112.UpdateRuleGroup
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      summary: Amazon Network Firewall Update Rule Group
      tags:
      - '#X Amz Target=NetworkFirewall 20201112.UpdateRuleGroup'
components:
  schemas:
    ResourceNotFoundException: {}
    Keyword:
      type: string
      pattern: .*
      minLength: 1
      maxLength: 128
    ThrottlingException: {}
    ProtocolNumbers:
      type: array
      items:
        $ref: '#/components/schemas/ProtocolNumber'
    ResourceStatus:
      type: string
      enum:
      - ACTIVE
      - DELETING
    Dimensions:
      type: array
      items:
        $ref: '#/components/schemas/Dimension'
      minItems: 1
      maxItems: 1
    Source:
      type: string
      pattern: ^.*$
      minLength: 1
      maxLength: 1024
    UpdateRuleGroupRequest:
      type: object
      required:
      - UpdateToken
      title: UpdateRuleGroupRequest
      properties:
        UpdateToken:
          allOf:
          - $ref: '#/components/schemas/UpdateToken'
          - description: <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request. </p> <p>To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token. </p>
        RuleGroupArn:
          allOf:
          - $ref: '#/components/schemas/ResourceArn'
          - description: <p>The Amazon Resource Name (ARN) of the rule group.</p> <p>You must specify the ARN or the name, and you can specify both. </p>
        RuleGroupName:
          allOf:
          - $ref: '#/components/schemas/ResourceName'
          - description: <p>The descriptive name of the rule group. You can't change the name of a rule group after you create it.</p> <p>You must specify the ARN or the name, and you can specify both. </p>
        RuleGroup:
          allOf:
          - $ref: '#/components/schemas/RuleGroup'
          - description: <p>An object that defines the rule group rules. </p> <note> <p>You must provide either this rule group setting or a <code>Rules</code> setting, but not both. </p> </note>
        Rules:
          allOf:
          - $ref: '#/components/schemas/RulesString'
          - description: <p>A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use this to import your existing Suricata compatible rule groups. </p> <note> <p>You must provide either this rules setting or a populated <code>RuleGroup</code> setting, but not both. </p> </note> <p>You can provide your rule group specification in Suricata flat format through this setting when you create or update your rule group. The call response returns a <a>RuleGroup</a> object that Network Firewall has populated from your string. </p>
        Type:
          allOf:
          - $ref: '#/components/schemas/RuleGroupType'
          - description: <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules. </p> <note> <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p> </note>
        Description:
          allOf:
          - $ref: '#/components/schemas/Description'
          - description: 'A description of the rule group. '
        DryRun:
          allOf:
          - $ref: '#/components/schemas/Boolean'
          - description: <p>Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request. </p> <p>If set to <code>TRUE</code>, Network Firewall checks whether the request can run successfully, but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to <code>FALSE</code>, but doesn't make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid. </p> <p>If set to <code>FALSE</code>, Network Firewall makes the requested changes to your resources. </p>
        EncryptionConfiguration:
          allOf:
          - $ref: '#/components/schemas/EncryptionConfiguration'
          - description: A complex type that contains settings for encryption of your rule group resources.
        SourceMetadata:
          allOf:
          - $ref: '#/components/schemas/SourceMetadata'
          - description: A complex type that contains metadata about the rule group that your own rule group is copied from. You can use the metadata to keep track of updates made to the originating rule group.
    RulesSource:
      type: object
      properties:
        RulesString:
          allOf:
          - $ref: '#/components/schemas/RulesString'
          - description: <p>Stateful inspection criteria, provided in Suricata compatible intrusion prevention system (IPS) rules. Suricata is an open-source network IPS that includes a standard rule-based language for network traffic inspection.</p> <p>These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.</p>
        RulesSourceList:
          allOf:
          - $ref: '#/components/schemas/RulesSourceList'
          - description: 'Stateful inspection criteria for a domain list rule group. '
        StatefulRules:
          allOf:
          - $ref: '#/components/schemas/StatefulRules'
          - description: 'An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata <code>Rules</code> format, see <a href="https://suricata.readthedocs.iorules/intro.html#">Rules Format</a>. '
        StatelessRulesAndCustomActions:
          allOf:
          - $ref: '#/components/schemas/StatelessRulesAndCustomActions'
          - description: 'Stateless inspection criteria to be used in a stateless rule group. '
      description: 'The stateless or stateful rules definitions for use in a single rule group. Each rule group requires a single <code>RulesSource</code>. You can use an instance of this for either stateless rules or stateful rules. '
    ResourceId:
      type: string
      pattern: ^([0-9a-f]{8})-([0-9a-f]{4}-){3}([0-9a-f]{12})$
      minLength: 36
      maxLength: 36
    TargetType:
      type: string
      enum:
      - TLS_SNI
      - HTTP_HOST
    RuleTargets:
      type: array
      items:
        $ref: '#/components/schemas/CollectionMember_String'
    ActionName:
      type: string
      pattern: ^[a-zA-Z0-9]+$
      minLength: 1
      maxLength: 128
    VariableDefinitionList:
      type: array
      items:
        $ref: '#/components/schemas/VariableDefinition'
    Destination:
      type: string
      pattern: ^.*$
      minLength: 1
      maxLength: 1024
    ReferenceSets:
      type: object
      properties:
        IPSetReferences:
          allOf:
          - $ref: '#/components/schemas/IPSetReferenceMap'
          - description: The list of IP set references.
      description: Contains a set of IP set references.
    RuleOrder:
      type: string
      enum:
      - DEFAULT_ACTION_ORDER
      - STRICT_ORDER
    Setting:
      type: string
      pattern: .*
      minLength: 1
      maxLength: 8192
    ResourceArn:
      type: string
      pattern: ^arn:aws.*
      minLength: 1
      maxLength: 256
    TargetTypes:
      type: array
      items:
        $ref: '#/components/schemas/TargetType'
    RuleVariables:
      type: object
      properties:
        IPSets:
          allOf:
          - $ref: '#/components/schemas/IPSets'
          - description: 'A list of IP addresses and address ranges, in CIDR notation. '
        PortSets:
          allOf:
          - $ref: '#/components/schemas/PortSets'
          - description: 'A list of port ranges. '
      description: 'Settings that are available for use in the rules in the <a>RuleGroup</a> where this is defined. '
    UpdateRuleGroupResponse:
      type: object
      required:
      - UpdateToken
      - RuleGroupResponse
      properties:
        UpdateToken:
          allOf:
          - $ref: '#/components/schemas/UpdateToken'
          - description: <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request. </p> <p>To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token. </p>
        RuleGroupResponse:
          allOf:
          - $ref: '#/components/schemas/RuleGroupResponse'
          - description: 'The high-level properties of a rule group. This, along with the <a>RuleGroup</a>, define the rule group. You can retrieve all objects for a rule group by calling <a>DescribeRuleGroup</a>. '
    StatefulRuleProtocol:
      type: string
      enum:
      - IP
      - TCP
      - UDP
      - ICMP
      - HTTP
      - FTP
      - TLS
      - SMB
      - DNS
      - DCERPC
      - SSH
      - SMTP
      - IMAP
      - MSN
      - KRB5
      - IKEV2
      - TFTP
      - NTP
      - DHCP
    AddressDefinition:
      type: string
      pattern: ^([a-fA-F\d:\.]+($|/\d{1,3}))$
      minLength: 1
      maxLength: 255
    GeneratedRulesType:
      type: string
      enum:
      - ALLOWLIST
      - DENYLIST
    TagList:
      type: array
      items:
        $ref: '#/components/schemas/Tag'
      minItems: 1
      maxItems: 200
    CustomActions:
      type: array
      items:
        $ref: '#/components/schemas/CustomAction'
    PortSet:
      type: object
      properties:
        Definition:
          allOf:
          - $ref: '#/components/schemas/VariableDefinitionList'
          - description: 'The set of port ranges. '
      description: 'A set of port ranges for use in the rules in a rule group. '
    RuleCapacity:
      type: integer
    Priority:
      type: integer
      minimum: 1
      maximum: 65535
    CustomAction:
      type: object
      required:
      - ActionName
      - ActionDefinition
      properties:
        ActionName:
          allOf:
          - $ref: '#/components/schemas/ActionName'
          - description: The descriptive name of the custom action. You can't change the name of a custom action after you create it.
        ActionDefinition:
          allOf:
          - $ref: '#/components/schemas/ActionDefinition'
          - description: The custom action associated with the action name.
      description: '<p>An optional, non-standard action to use for stateless packet handling. You can define this in addition to the standard action that you must specify. </p> <p>You define and name the custom actions that you want to be able to use, and then you reference them by name in your actions settings. </p> <p>You can use custom actions in the following places: </p> <ul> <li> <p>In a rule group''s <a>StatelessRulesAndCustomActions</a> specification. The custom actions are available for use by name inside the <code>StatelessRulesAndCustomActions</code> where you define them. You can use them for your stateless rule actions to specify what to do with a packet that matches the rule''s match attributes. </p> </li> <li> <p>In a <a>FirewallPolicy</a> specification, in <code>StatelessCustomActions</code>. The custom actions are available for use inside the policy where you define them. You can use them for the policy''s default stateless actions settings to specify what to do with packets that don''t match any of the policy''s stateless rules. </p> </li> </ul>'
    StatelessRule:
      type: object
      required:
      - RuleDefinition
      - Priority
      properties:
        RuleDefinition:
          allOf:
          - $ref: '#/components/schemas/RuleDefinition'
          - description: 'Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. '
        Priority:
          allOf:
          - $ref: '#/components/schemas/Priority'
          - description: <p>Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group. </p> <p>Each stateless rule group uses exactly one <code>StatelessRulesAndCustomActions</code> object, and each <code>StatelessRulesAndCustomActions</code> contains exactly one <code>StatelessRules</code> object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any single <code>StatelessRules</code> object.</p> <p>You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on. </p>
      description: A single stateless rule. This is used in <a>StatelessRulesAndCustomActions</a>.
    IPSetReference:
      type: object
      properties:
        ReferenceArn:
          allOf:
          - $ref: '#/components/schemas/ResourceArn'
          - description: The Amazon Resource Name (ARN) of the resource that you are referencing in your rule group.
      description: <p>Configures one or more IP set references for a Suricata-compatible rule group. This is used in <a>CreateRuleGroup</a> or <a>UpdateRuleGroup</a>. An IP set reference is a rule variable that references resources that you create and manage in another Amazon Web Services service, such as an Amazon VPC prefix list. Network Firewall IP set references enable you to dynamically update the contents of your rules. When you create, update, or delete the resource you are referencing in your rule, Network Firewall automatically updates the rule's content with the changes. For more information about IP set references in Network Firewall, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references">Using IP set references</a> in the <i>Network Firewall Developer Guide</i>.</p> <p> Network Firewall currently supports <a href="https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html">Amazon VPC prefix lists</a> and <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references.html#rule-groups-referencing-resource-groups">resource groups</a> in IP set references. </p>
    Description:
      type: string
      pattern: ^.*$
      maxLength: 512
    StatelessRules:
      type: array
      items:
        $ref: '#/components/schemas/StatelessRule'
    StatelessRulesAndCustomActions:
      type: object
      required:
      - StatelessRules
      properties:
        StatelessRules:
          allOf:
          - $ref: '#/components/schemas/StatelessRules'
          - description: 'Defines the set of stateless rules for use in a stateless rule group. '
        CustomActions:
          allOf:
          - $ref: '#/components/schemas/CustomActions'
          - description: Defines an array of individual custom action definitions that are available for use by the stateless rules in this <code>StatelessRulesAndCustomActions</code> specification. You name each custom action that you define, and then you can use it by name in your <a>StatelessRule</a> <a>RuleDefinition</a> <code>Actions</code> specification.
      description: 'Stateless inspection criteria. Each stateless rule group uses exactly one of these data types to define its stateless rules. '
    Addresses:
      type: array
      items:
        $ref: '#/components/schemas/Address'
    KeyId:
      type: string
      pattern: .*\S.*
      minLength: 1
      maxLength: 2048
    EncryptionType:
      type: string
      enum:
      - CUSTOMER_KMS
      - AWS_OWNED_KMS_KEY
    DimensionValue:
      type: string
      pattern: ^[a-zA-Z0-9-_ ]+$
      minLength: 1
      maxLength: 128
    Flags:
      type: array
      items:
        $ref: '#/components/schemas/TCPFlag'
    RuleDefinition:
      type: object
      required:
      - MatchAttributes
      - Actions
      properties:
        MatchAttributes:
          allOf:
          - $ref: '#/components/schemas/MatchAttributes'
          - description: 'Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection. Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags. '
        Actions:
          allOf:
          - $ref: '#/components/schemas/StatelessActions'
          - description: <p>The actions to take on a packet that matches one of the stateless rule definition's match attributes. You must specify a standard action and you can add custom actions. </p> <note> <p>Network Firewall only forwards a packet for stateful rule inspection if you specify <code>aws:forward_to_sfe</code> for a rule that the packet matches, or if the packet doesn't match any stateless rule and you specify <code>aws:forward_to_sfe</code> for the <code>StatelessDefaultActions</code> setting for the <a>FirewallPolicy</a>.</p> </note> <p>For every rule, you must specify exactly one of the following standard actions. </p> <ul> <li> <p> <b>aws:pass</b> - Discontinues all inspection of the packet and permits it to go to its intended destination.</p> </li> <li> <p> <b>aws:drop</b> - Discontinues all inspection of the packet and blocks it from going to its intended destination.</p> </li> <li> <p> <b>aws:forward_to_sfe</b> - Discontinues stateless inspection of the packet and forwards it to the stateful rule engine for inspection. </p> </li> </ul> <p>Additionally, you can specify a custom action. To do this, you define a custom action by name and type, then provide the name you've assigned to the action in this <code>Actions</code> setting. For information about the options, see <a>CustomAction</a>. </p> <p>To provide more than one action in this setting, separate the settings with a comma. For example, if you have a custom <code>PublishMetrics</code> action that you've named <code>MyMetricsAction</code>, then you could specify the standard action <code>aws:pass</code> and the custom action with <code>[“aws:pass”, “MyMetricsAction”]</code>. </p>
      description: The inspection criteria and action for a single stateless rule. Network Firewall inspects each packet for the specified matching criteria. When a packet matches the criteria, Network Firewall performs the rule's actions on the packet.
    StatefulRuleDirection:
      type: string
      enum:
      - FORWARD
      - ANY
    NumberOfAssociations:
      type: integer
    StatefulRuleOptions:
      type: object
      properties:
        RuleOrder:
          allOf:
          - $ref: '#/components/schemas/RuleOrder'
          - description: 'Indicates how to manage the order of the rule evaluation for the rule group. <code>DEFAULT_ACTION_ORDER</code> is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html">Evaluation order for stateful rules</a> in the <i>Network Firewall Developer Guide</i>. '
      description: Additional options governing how Network Firewall handles the rule group. You can only use these for stateful rule groups.
    MatchAttributes:
      type: object
      properties:
        Sources:
          allOf:
          - $ref: '#/components/schemas/Addresses'
          - description: 'The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. '
        Destinations:
          allOf:
          - $ref: '#/components/schemas/Addresses'
          - description: 'The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. '
        SourcePorts:
          allOf:
          - $ref: '#/components/schemas/PortRanges'
          - description: <p>The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP). </p> <p>You can specify individual ports, for example <code>1994</code> and you can specify port ranges, for example <code>1990:1994</code>. </p>
        DestinationPorts:
          allOf:
          - $ref: '#/components/schemas/PortRanges'
          - description: <p>The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP). </p> <p>You can specify individual ports, for example <code>1994</code> and you can specify port ranges, for example <code>1990:1994</code>. </p>
        Protocols:
          allOf:
          - $ref: '#/components/schemas/ProtocolNumbers'
          - description: 'The protocols to inspect for, specified using each protocol''s assigned internet protocol number (IANA). If not specified, this matches with any protocol. '
        TCPFlags:
          allOf:
          - $ref: '#/components/schemas/TCPFlags'
          - description: The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
      description: 'Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection. Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags. '
    Dimension:
      type: object
      required:
      - Value
      properties:
        Value:
          allOf:
          - $ref: '#/components/schemas/DimensionValue'
          - description: The value to use in the custom metric dimension.
      description: <p>The value to use in an Amazon CloudWatch custom metri

# --- truncated at 32 KB (59 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-network-firewall/refs/heads/main/openapi/amazon-network-firewall-x-amz-target-networkfirewall-20201112-updaterulegroup-api-openapi.yml