{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mq/json-schema/amazon-mq-describe-shared-resources-response-schema.json",
  "title": "DescribeSharedResourcesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mq-operations-api-openapi.yml#/components/schemas/DescribeSharedResourcesResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty."
    },
    "SharedResources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SharedResource"
      },
      "description": "A list of resources shared to the broker."
    }
  },
  "$defs": {
    "SharedResource": {
      "type": "object",
      "properties": {
        "DnsNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The DNS names accessible by the broker."
        },
        "Error": {
          "$ref": "#/$defs/SharedResourceError"
        },
        "ResourceArn": {
          "type": "string",
          "description": "The ARN of the shared resource."
        },
        "ResourceShareArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The resource share ARNs to which the resource belongs."
        },
        "Status": {
          "type": "string",
          "enum": [
            "AVAILABLE",
            "SETUP_IN_PROGRESS",
            "DELETION_IN_PROGRESS",
            "PENDING_CREATE",
            "PENDING_DELETE",
            "ERROR"
          ],
          "description": "The status of the shared resource."
        },
        "Type": {
          "type": "string",
          "enum": [
            "RESOURCE_SHARE",
            "RESOURCE"
          ],
          "description": "The type of shared resource."
        }
      },
      "required": [
        "ResourceArn",
        "Status",
        "Type"
      ]
    },
    "SharedResourceError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "QUOTA_EXCEEDED",
            "SHARE_NOT_FOUND",
            "INVITE_FAILED",
            "SETUP_INCOMPLETE",
            "INTERNAL_ERROR",
            "AZ_MISMATCH",
            "RESOURCE_CONFIGURATION_NOT_FOUND"
          ],
          "description": "The error code associated with the error."
        },
        "Message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    }
  }
}