{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mq/json-schema/amazon-mq-update-broker-request-schema.json",
  "title": "UpdateBrokerRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mq-brokers-api-openapi.yml#/components/schemas/UpdateBrokerRequest",
  "type": "object",
  "properties": {
    "AuthenticationStrategy": {
      "type": "string",
      "enum": [
        "SIMPLE",
        "LDAP",
        "CONFIG_MANAGED"
      ],
      "description": "Optional. The authentication strategy used to secure the broker. The default is SIMPLE."
    },
    "AutoMinorVersionUpgrade": {
      "type": "boolean",
      "description": "Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot. Must be set to true for ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above."
    },
    "BrokerId": {
      "type": "string",
      "description": "The unique ID that Amazon MQ generates for the broker."
    },
    "Configuration": {
      "$ref": "#/$defs/ConfigurationId"
    },
    "EngineVersion": {
      "type": "string",
      "description": "The broker engine version. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide. When upgrading to ActiveMQ version 5.18 and above or RabbitMQ version 3.13 and above, you must have autoMinorVersionUpgrade set to true for the broker."
    },
    "HostInstanceType": {
      "type": "string",
      "description": "The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types."
    },
    "LdapServerMetadata": {
      "$ref": "#/$defs/LdapServerMetadataInput"
    },
    "Logs": {
      "$ref": "#/$defs/Logs"
    },
    "MaintenanceWindowStartTime": {
      "$ref": "#/$defs/WeeklyStartTime"
    },
    "ResourceShareArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of resource shares to update on the broker"
    },
    "SecurityGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers."
    },
    "StorageSize": {
      "type": "integer",
      "description": "The broker's storage size in GB."
    },
    "DataReplicationMode": {
      "type": "string",
      "enum": [
        "NONE",
        "CRDR"
      ],
      "description": "Defines whether this broker is a part of a data replication pair."
    }
  },
  "required": [
    "BrokerId"
  ],
  "$defs": {
    "ConfigurationId": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "Required. The unique ID that Amazon MQ generates for the configuration."
        },
        "Revision": {
          "type": "integer",
          "description": "The revision number of the configuration."
        }
      },
      "required": [
        "Id"
      ]
    },
    "LdapServerMetadataInput": {
      "type": "object",
      "properties": {
        "Hosts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server."
        },
        "RoleBase": {
          "type": "string",
          "description": "The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com."
        },
        "RoleName": {
          "type": "string",
          "description": "Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query."
        },
        "RoleSearchMatching": {
          "type": "string",
          "description": "The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase."
        },
        "RoleSearchSubtree": {
          "type": "boolean",
          "description": "The directory search scope for the role. If set to true, scope is to search the entire subtree."
        },
        "ServiceAccountPassword": {
          "type": "string",
          "description": "Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com."
        },
        "ServiceAccountUsername": {
          "type": "string",
          "description": "Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com."
        },
        "UserBase": {
          "type": "string",
          "description": "Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com."
        },
        "UserRoleName": {
          "type": "string",
          "description": "Specifies the name of the LDAP attribute for the user group membership."
        },
        "UserSearchMatching": {
          "type": "string",
          "description": "The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com."
        },
        "UserSearchSubtree": {
          "type": "boolean",
          "description": "The directory search scope for the user. If set to true, scope is to search the entire subtree."
        }
      },
      "required": [
        "Hosts",
        "RoleBase",
        "RoleSearchMatching",
        "ServiceAccountPassword",
        "ServiceAccountUsername",
        "UserBase",
        "UserSearchMatching"
      ]
    },
    "Logs": {
      "type": "object",
      "properties": {
        "Audit": {
          "type": "boolean",
          "description": "Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers."
        },
        "General": {
          "type": "boolean",
          "description": "Enables general logging."
        }
      }
    },
    "WeeklyStartTime": {
      "type": "object",
      "properties": {
        "DayOfWeek": {
          "type": "string",
          "enum": [
            "MONDAY",
            "TUESDAY",
            "WEDNESDAY",
            "THURSDAY",
            "FRIDAY",
            "SATURDAY",
            "SUNDAY"
          ],
          "description": "Required. The day of the week."
        },
        "TimeOfDay": {
          "type": "string",
          "description": "Required. The time, in 24-hour format."
        },
        "TimeZone": {
          "type": "string",
          "description": "The time zone, UTC by default, in either the Country/City format, or the UTC offset format."
        }
      },
      "required": [
        "DayOfWeek",
        "TimeOfDay"
      ]
    }
  }
}