{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-network-firewall/json-schema/amazon-network-firewall-update-firewall-policy-v2-response-schema.json",
  "title": "UpdateFirewallPolicyV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-network-firewall-firewall-policy-v2-api-openapi.yml#/components/schemas/UpdateFirewallPolicyV2Response",
  "type": "object",
  "properties": {
    "UpdateToken": {
      "type": "string",
      "description": "A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again "
    },
    "FirewallPolicyV2Response": {
      "$ref": "#/$defs/FirewallPolicyV2Response"
    }
  },
  "required": [
    "UpdateToken",
    "FirewallPolicyV2Response"
  ],
  "$defs": {
    "EncryptionConfiguration": {
      "type": "object",
      "properties": {
        "KeyId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services Key Management Service (KMS) customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. For more information, see Key ID in the Amazon Web Services KMS Developer Guide."
        },
        "Type": {
          "type": "string",
          "enum": [
            "CUSTOMER_KMS",
            "AWS_OWNED_KMS_KEY"
          ],
          "description": "The type of Amazon Web Services KMS key to use for encryption of your Network Firewall resources."
        }
      },
      "required": [
        "Type"
      ]
    },
    "FirewallPolicyError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "DNS_FIREWALL_RULE_GROUP_UNAVAILABLE",
            "ROUTE53_RESOLVED_IP_VALIDATION_MISSING"
          ],
          "description": "The error code identifies the type of error. Valid values are the following: DNS_FIREWALL_RULE_GROUP_UNAVAILABLE – The Amazon Route 53 Resolver DNS Firewall rule group that resolved IP validation references is unavailable, for example, because it was deleted or is no longer accessible from your account. Update the rule group ID or remove the resolved IP validation configuration. ROUTE53_RESOLVED_IP_VALIDATION_MISSING – An associated stateful rule group uses the aws_route_53_resolved_domain keyword, but the policy doesn't have resolved IP validation configured. The affected rules are inactive u"
        },
        "Message": {
          "type": "string",
          "description": "A description of the error and how to resolve it."
        },
        "ResourceId": {
          "type": "string",
          "description": "The ID of the resource that the error relates to, when applicable. For example, for DNS_FIREWALL_RULE_GROUP_UNAVAILABLE this is the Amazon Route 53 Resolver DNS Firewall rule group ID."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "FirewallPolicyV2Response": {
      "type": "object",
      "properties": {
        "FirewallPolicyV2Name": {
          "type": "string",
          "description": "The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it."
        },
        "FirewallPolicyV2Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Next Generation policy."
        },
        "FirewallPolicyV2Id": {
          "type": "string",
          "description": "The unique identifier of the Next Generation policy. Network Firewall assigns this identifier when you create the policy."
        },
        "Description": {
          "type": "string",
          "description": "A description of the Next Generation policy."
        },
        "FirewallPolicyV2Status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DELETING",
            "ERROR",
            "UPDATING"
          ],
          "description": "The current status of the Next Generation policy. A policy must be in the ACTIVE state before you can use it in a firewall."
        },
        "StatusMessage": {
          "type": "string",
          "description": "Additional information about the current status of the Next Generation policy."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The key-value tag pairs that are associated with the Next Generation policy."
        },
        "ConsumedFirewallRuleCapacity": {
          "type": "integer",
          "description": "The number of firewall engine rule capacity units that the policy's firewall section currently consumes."
        },
        "ConsumedIpsRuleCapacity": {
          "type": "integer",
          "description": "The number of IPS engine rule capacity units that the policy's IPS section currently consumes."
        },
        "ConsumedIpsDomainCapacity": {
          "type": "integer",
          "description": "The number of IPS domain list capacity units that the policy's IPS section currently consumes."
        },
        "NumberOfAssociations": {
          "type": "integer",
          "description": "The number of firewalls that are associated with the Next Generation policy."
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/EncryptionConfiguration"
        },
        "Errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FirewallPolicyError"
          },
          "description": "Any configuration errors that apply to the Next Generation policy. Network Firewall detects these errors asynchronously, after you create or update the policy, so an error can appear after the request that caused it has already succeeded. Each entry describes the problem and how to resolve it, and Network Firewall clears it automatically after you resolve the problem."
        },
        "LastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time that the Next Generation policy was changed."
        }
      },
      "required": [
        "FirewallPolicyV2Name",
        "FirewallPolicyV2Arn",
        "FirewallPolicyV2Id"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive."
        },
        "Value": {
          "type": "string",
          "description": "The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}