# NetworkAclEntrySetProperty

The configuration of the first and last rules for the network ACL policy, and the remediation settings for each.

- Source: Generated code
- Type last changed: v2.163.0 · 22 Oct 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fms as fms } from 'aws-cdk-lib';
const networkAclEntrySetProperty: fms.CfnPolicy.NetworkAclEntrySetProperty = {
  forceRemediateForFirstEntries: false,
  forceRemediateForLastEntries: false,

  // the properties below are optional
  firstEntries: [{
    egress: false,
    protocol: 'protocol',
    ruleAction: 'ruleAction',

    // the properties below are optional
    cidrBlock: 'cidrBlock',
    icmpTypeCode: {
      code: 123,
      type: 123,
    },
    ipv6CidrBlock: 'ipv6CidrBlock',
    portRange: {
      from: 123,
      to: 123,
    },
  }],
  lastEntries: [{
    egress: false,
    protocol: 'protocol',
    ruleAction: 'ruleAction',

    // the properties below are optional
    cidrBlock: 'cidrBlock',
    icmpTypeCode: {
      code: 123,
      type: 123,
    },
    ipv6CidrBlock: 'ipv6CidrBlock',
    portRange: {
      from: 123,
      to: 123,
    },
  }],
};
```

## Properties

- `firstEntries`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPolicy.NetworkAclEntryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_fms.CfnPolicy.NetworkAclEntryProperty.html)[] — The rules that you want to run first in the Firewall Manager managed network ACLs.

  > Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates.

  You must specify at least one first entry or one last entry in any network ACL policy.

- `forceRemediateForFirstEntries`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Applies only when remediation is enabled for the policy as a whole.

  Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries.

  If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see [Remediation for managed network ACLs](https://docs.aws.amazon.com/waf/latest/developerguide/network-acl-policies.html#network-acls-remediation) in the *AWS Firewall Manager Developer Guide* .

- `forceRemediateForLastEntries`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Applies only when remediation is enabled for the policy as a whole.

  Firewall Manager uses this setting when it finds policy violations that involve conflicts between the custom entries and the policy entries.

  If forced remediation is disabled, Firewall Manager marks the network ACL as noncompliant and does not try to remediate. For more information about the remediation behavior, see [Remediation for managed network ACLs](https://docs.aws.amazon.com/waf/latest/developerguide/network-acl-policies.html#network-acls-remediation) in the *AWS Firewall Manager Developer Guide* .

- `lastEntries`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPolicy.NetworkAclEntryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_fms.CfnPolicy.NetworkAclEntryProperty.html)[] — The rules that you want to run last in the Firewall Manager managed network ACLs.

  > Provide these in the order in which you want them to run. Firewall Manager will assign the specific rule numbers for you, in the network ACLs that it creates.

  You must specify at least one first entry or one last entry in any network ACL policy.
