{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-firewall-manager/json-schema/amazon-firewall-manager-put-admin-account-request-schema.json",
  "title": "PutAdminAccountRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-firewall-manager-admin-accounts-api-openapi.yml#/components/schemas/PutAdminAccountRequest",
  "type": "object",
  "properties": {
    "AdminAccount": {
      "type": "string",
      "description": "The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization."
    },
    "AdminScope": {
      "$ref": "#/$defs/AdminScope"
    }
  },
  "required": [
    "AdminAccount"
  ],
  "$defs": {
    "AccountScope": {
      "type": "object",
      "properties": {
        "Accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of accounts within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of ExcludeSpecifiedAccounts. If ExcludeSpecifiedAccounts is set to true, then the Firewall Manager administrator can apply policies to all members of the organization except for the accounts in this list. If ExcludeSpecifiedAccounts is set to false, then the Firewall Manager administrator can only apply policies to the accounts in this list."
        },
        "AllAccountsEnabled": {
          "type": "boolean",
          "description": "A boolean value that indicates if the administrator can apply policies to all accounts within an organization. If true, the administrator can apply policies to all accounts within the organization. You can either enable management of all accounts through this operation, or you can specify a list of accounts to manage in AccountScope$Accounts. You cannot specify both."
        },
        "ExcludeSpecifiedAccounts": {
          "type": "boolean",
          "description": "A boolean value that excludes the accounts in AccountScope$Accounts from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all members of the organization except for the accounts listed in AccountScope$Accounts. You can either specify a list of accounts to exclude by AccountScope$Accounts, or you can enable management of all accounts by AccountScope$AllAccountsEnabled. You cannot specify both."
        }
      }
    },
    "AdminScope": {
      "type": "object",
      "properties": {
        "AccountScope": {
          "$ref": "#/$defs/AccountScope"
        },
        "OrganizationalUnitScope": {
          "$ref": "#/$defs/OrganizationalUnitScope"
        },
        "RegionScope": {
          "$ref": "#/$defs/RegionScope"
        },
        "PolicyTypeScope": {
          "$ref": "#/$defs/PolicyTypeScope"
        }
      }
    },
    "OrganizationalUnitScope": {
      "type": "object",
      "properties": {
        "OrganizationalUnits": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of OUs within the organization that the specified Firewall Manager administrator either can or cannot apply policies to, based on the value of OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits. If OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits is set to true, then the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs in this list. If OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits is set to false, then the Firewall Manager administrator can only apply policies to the OUs in this list."
        },
        "AllOrganizationalUnitsEnabled": {
          "type": "boolean",
          "description": "A boolean value that indicates if the administrator can apply policies to all OUs within an organization. If true, the administrator can manage all OUs within the organization. You can either enable management of all OUs through this operation, or you can specify OUs to manage in OrganizationalUnitScope$OrganizationalUnits. You cannot specify both."
        },
        "ExcludeSpecifiedOrganizationalUnits": {
          "type": "boolean",
          "description": "A boolean value that excludes the OUs in OrganizationalUnitScope$OrganizationalUnits from the administrator's scope. If true, the Firewall Manager administrator can apply policies to all OUs in the organization except for the OUs listed in OrganizationalUnitScope$OrganizationalUnits. You can either specify a list of OUs to exclude by OrganizationalUnitScope$OrganizationalUnits, or you can enable management of all OUs by OrganizationalUnitScope$AllOrganizationalUnitsEnabled. You cannot specify both."
        }
      }
    },
    "PolicyTypeScope": {
      "type": "object",
      "properties": {
        "PolicyTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "WAF",
              "WAFV2",
              "SHIELD_ADVANCED",
              "SECURITY_GROUPS_COMMON",
              "SECURITY_GROUPS_CONTENT_AUDIT",
              "SECURITY_GROUPS_USAGE_AUDIT",
              "NETWORK_FIREWALL",
              "DNS_FIREWALL",
              "THIRD_PARTY_FIREWALL",
              "IMPORT_NETWORK_FIREWALL",
              "NETWORK_ACL_COMMON"
            ]
          },
          "description": "The list of policy types that the specified Firewall Manager administrator can manage."
        },
        "AllPolicyTypesEnabled": {
          "type": "boolean",
          "description": "Allows the specified Firewall Manager administrator to manage all Firewall Manager policy types, except for third-party policy types. Third-party policy types can only be managed by the Firewall Manager default administrator."
        }
      }
    },
    "RegionScope": {
      "type": "object",
      "properties": {
        "Regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services Regions that the specified Firewall Manager administrator can perform actions in."
        },
        "AllRegionsEnabled": {
          "type": "boolean",
          "description": "Allows the specified Firewall Manager administrator to manage all Amazon Web Services Regions."
        }
      }
    }
  }
}