{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-service-catalog/json-schema/amazon-service-catalog-get-associated-resource-response-schema.json",
  "title": "GetAssociatedResourceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-service-catalog-resources-api-openapi.yml#/components/schemas/GetAssociatedResourceResponse",
  "type": "object",
  "properties": {
    "resource": {
      "$ref": "#/$defs/Resource"
    },
    "options": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "APPLY_APPLICATION_TAG",
          "SKIP_APPLICATION_TAG"
        ]
      },
      "description": "Determines whether an application tag is applied or skipped."
    },
    "applicationTagResult": {
      "$ref": "#/$defs/ApplicationTagResult"
    }
  },
  "$defs": {
    "ApplicationTagResult": {
      "type": "object",
      "properties": {
        "applicationTagStatus": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "SUCCESS",
            "FAILURE"
          ],
          "description": "The application tag is in the process of being applied to a resource, was successfully applied to a resource, or failed to apply to a resource."
        },
        "errorMessage": {
          "type": "string",
          "description": "The message returned if the call fails."
        },
        "resources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourcesListItem"
          },
          "description": "The resources associated with an application"
        },
        "nextToken": {
          "type": "string",
          "description": "A unique pagination token for each page of results. Make the call again with the returned token to retrieve the next page of results."
        }
      }
    },
    "Resource": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the resource."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon resource name (ARN) of the resource."
        },
        "associationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the resource was associated with the application."
        },
        "integrations": {
          "$ref": "#/$defs/ResourceIntegrations"
        }
      }
    },
    "ResourceGroup": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "CREATE_COMPLETE",
            "CREATE_FAILED",
            "UPDATING",
            "UPDATE_COMPLETE",
            "UPDATE_FAILED"
          ],
          "description": "The state of the propagation process for the resource group. The states includes: CREATING if the resource group is in the process of being created. CREATE_COMPLETE if the resource group was created successfully. CREATE_FAILED if the resource group failed to be created. UPDATING if the resource group is in the process of being updated. UPDATE_COMPLETE if the resource group updated successfully. UPDATE_FAILED if the resource group could not update successfully."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon resource name (ARN) of the resource group."
        },
        "errorMessage": {
          "type": "string",
          "description": "The error message that generates when the propagation process for the resource group fails."
        }
      }
    },
    "ResourceIntegrations": {
      "type": "object",
      "properties": {
        "resourceGroup": {
          "$ref": "#/$defs/ResourceGroup"
        }
      }
    },
    "ResourcesListItem": {
      "type": "object",
      "properties": {
        "resourceArn": {
          "type": "string",
          "description": "The Amazon resource name (ARN) of the resource."
        },
        "errorMessage": {
          "type": "string",
          "description": "The message returned if the call fails."
        },
        "status": {
          "type": "string",
          "description": "The status of the list item."
        },
        "resourceType": {
          "type": "string",
          "description": "Provides information about the AppRegistry resource type."
        }
      }
    }
  }
}