{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mq/json-schema/amazon-mq-update-broker-response-schema.json",
  "title": "UpdateBrokerResponse",
  "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/UpdateBrokerResponse",
  "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."
    },
    "BrokerId": {
      "type": "string",
      "description": "Required. The unique ID that Amazon MQ generates for the broker."
    },
    "Configuration": {
      "$ref": "#/$defs/ConfigurationId"
    },
    "EngineVersion": {
      "type": "string",
      "description": "The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide."
    },
    "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/LdapServerMetadataOutput"
    },
    "Logs": {
      "$ref": "#/$defs/Logs"
    },
    "MaintenanceWindowStartTime": {
      "$ref": "#/$defs/WeeklyStartTime"
    },
    "ResourceShareArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The pending broker's target list of resource shares"
    },
    "SecurityGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers."
    },
    "DataReplicationMetadata": {
      "$ref": "#/$defs/DataReplicationMetadataOutput"
    },
    "DataReplicationMode": {
      "type": "string",
      "enum": [
        "NONE",
        "CRDR"
      ],
      "description": "Describes whether this broker is a part of a data replication pair."
    },
    "PendingDataReplicationMetadata": {
      "$ref": "#/$defs/DataReplicationMetadataOutput"
    },
    "PendingDataReplicationMode": {
      "type": "string",
      "enum": [
        "NONE",
        "CRDR"
      ],
      "description": "Describes whether this broker will be a part of a data replication pair after reboot."
    },
    "StorageSize": {
      "type": "integer",
      "description": "The broker's storage size in GB."
    }
  },
  "$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"
      ]
    },
    "DataReplicationCounterpart": {
      "type": "object",
      "properties": {
        "BrokerId": {
          "type": "string",
          "description": "Required. The unique broker id generated by Amazon MQ."
        },
        "Region": {
          "type": "string",
          "description": "Required. The region of the broker."
        }
      },
      "required": [
        "BrokerId",
        "Region"
      ]
    },
    "DataReplicationMetadataOutput": {
      "type": "object",
      "properties": {
        "DataReplicationCounterpart": {
          "$ref": "#/$defs/DataReplicationCounterpart"
        },
        "DataReplicationRole": {
          "type": "string",
          "description": "Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged."
        }
      },
      "required": [
        "DataReplicationRole"
      ]
    },
    "LdapServerMetadataOutput": {
      "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."
        },
        "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",
        "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"
      ]
    }
  }
}