{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-application-request-schema.json",
  "title": "UpdateApplicationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-applications-api-openapi.yml#/components/schemas/UpdateApplicationRequest",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Application."
    },
    "Name": {
      "type": "string",
      "description": "The name of the application."
    },
    "Description": {
      "type": "string",
      "description": "The description of the application."
    },
    "ApplicationSourceConfig": {
      "$ref": "#/$defs/ApplicationSourceConfig"
    },
    "Subscriptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Subscription"
      },
      "description": "The events that the application subscribes."
    },
    "Publications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Publication"
      },
      "description": "The events that the application publishes."
    },
    "Permissions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The configuration of events or requests that the application has access to."
    },
    "IsService": {
      "type": "boolean",
      "description": "Indicates whether the application is a service."
    },
    "InitializationTimeout": {
      "type": "integer",
      "description": "The maximum time in milliseconds allowed to establish a connection with the workspace."
    },
    "ApplicationConfig": {
      "$ref": "#/$defs/ApplicationConfig"
    },
    "IframeConfig": {
      "$ref": "#/$defs/IframeConfig"
    },
    "ApplicationType": {
      "type": "string",
      "enum": [
        "STANDARD",
        "SERVICE",
        "MCP_SERVER",
        "A2A_SERVER"
      ],
      "description": "The type of application."
    },
    "AuthConfig": {
      "$ref": "#/$defs/AuthConfig"
    }
  },
  "required": [
    "Arn"
  ],
  "$defs": {
    "ApplicationConfig": {
      "type": "object",
      "properties": {
        "ContactHandling": {
          "$ref": "#/$defs/ContactHandling"
        }
      }
    },
    "ApplicationSourceConfig": {
      "type": "object",
      "properties": {
        "ExternalUrlConfig": {
          "$ref": "#/$defs/ExternalUrlConfig"
        }
      }
    },
    "AuthConfig": {
      "type": "object",
      "properties": {
        "AuthType": {
          "type": "string",
          "enum": [
            "API_KEY",
            "CONNECT_JWT"
          ],
          "description": "The type of authentication that Connect Customer uses to call the external application endpoint. You must specify an authentication type for A2A_SERVER applications. Valid values: API_KEY: Connect Customer sends an API key that is stored in the Secrets Manager secret that you specify in CredentialProviderIdentifier. CONNECT_JWT: Connect Customer issues a short-lived, signed JSON Web Token (JWT). This authentication type doesn't require a stored credential."
        },
        "CredentialProviderIdentifier": {
          "type": "string",
          "description": "The ARN of the Secrets Manager secret that stores the credentials. The secret must be accessible to Connect Customer. You must specify this ARN when AuthType is API_KEY. Don't specify it when AuthType is CONNECT_JWT."
        },
        "AudienceOverride": {
          "type": "string",
          "description": "The value that Connect Customer uses as the audience (aud) claim of the JSON Web Token (JWT) that it issues. You can specify this parameter only when AuthType is CONNECT_JWT. If you don't specify it, the audience is the AccessUrl of the application. The value can't contain connect.amazonaws.com."
        }
      }
    },
    "ContactHandling": {
      "type": "object",
      "properties": {
        "Scope": {
          "type": "string",
          "enum": [
            "CROSS_CONTACTS",
            "PER_CONTACT"
          ],
          "description": "Indicates whether the application refreshes for each contact or refreshes only with each new browser session."
        }
      }
    },
    "ExternalUrlConfig": {
      "type": "object",
      "properties": {
        "AccessUrl": {
          "type": "string",
          "description": "The URL to access the application."
        },
        "ApprovedOrigins": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Additional URLs to allow list if different than the access URL."
        }
      },
      "required": [
        "AccessUrl"
      ]
    },
    "IframeConfig": {
      "type": "object",
      "properties": {
        "Allow": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of features that are allowed in the iframe."
        },
        "Sandbox": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of sandbox attributes for the iframe."
        }
      }
    },
    "Publication": {
      "type": "object",
      "properties": {
        "Event": {
          "type": "string",
          "description": "The name of the publication."
        },
        "Schema": {
          "type": "string",
          "description": "The JSON schema of the publication event."
        },
        "Description": {
          "type": "string",
          "description": "The description of the publication."
        }
      },
      "required": [
        "Event",
        "Schema"
      ]
    },
    "Subscription": {
      "type": "object",
      "properties": {
        "Event": {
          "type": "string",
          "description": "The name of the subscription."
        },
        "Description": {
          "type": "string",
          "description": "The description of the subscription."
        }
      },
      "required": [
        "Event"
      ]
    }
  }
}