{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eventbridge/json-schema/amazon-eventbridge-update-connection-request-schema.json",
  "title": "UpdateConnectionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eventbridge-connection-api-openapi.yml#/components/schemas/UpdateConnectionRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the connection to update."
    },
    "Description": {
      "type": "string",
      "description": "A description for the connection."
    },
    "AuthorizationType": {
      "type": "string",
      "enum": [
        "BASIC",
        "OAUTH_CLIENT_CREDENTIALS",
        "API_KEY"
      ],
      "description": "The type of authorization to use for the connection."
    },
    "AuthParameters": {
      "$ref": "#/$defs/UpdateConnectionAuthRequestParameters"
    },
    "InvocationConnectivityParameters": {
      "$ref": "#/$defs/ConnectivityResourceParameters"
    },
    "KmsKeyIdentifier": {
      "type": "string",
      "description": "The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt the connection. For more information, see Identify and view keys in the Key Management Service Developer Guide."
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "ConnectionBodyParameter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the parameter."
        },
        "Value": {
          "type": "string",
          "description": "The value associated with the key."
        },
        "IsValueSecret": {
          "type": "boolean",
          "description": "Specifies whether the value is secret."
        }
      }
    },
    "ConnectionHeaderParameter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the parameter."
        },
        "Value": {
          "type": "string",
          "description": "The value associated with the key."
        },
        "IsValueSecret": {
          "type": "boolean",
          "description": "Specifies whether the value is a secret."
        }
      }
    },
    "ConnectionHttpParameters": {
      "type": "object",
      "properties": {
        "HeaderParameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionHeaderParameter"
          },
          "description": "Any additional header parameters for the connection."
        },
        "QueryStringParameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionQueryStringParameter"
          },
          "description": "Any additional query string parameters for the connection."
        },
        "BodyParameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionBodyParameter"
          },
          "description": "Any additional body string parameters for the connection."
        }
      }
    },
    "ConnectionQueryStringParameter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for a query string parameter."
        },
        "Value": {
          "type": "string",
          "description": "The value associated with the key for the query string parameter."
        },
        "IsValueSecret": {
          "type": "boolean",
          "description": "Specifies whether the value is secret."
        }
      }
    },
    "ConnectivityResourceConfigurationArn": {
      "type": "object",
      "properties": {
        "ResourceConfigurationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon VPC Lattice resource configuration for the resource endpoint."
        }
      },
      "required": [
        "ResourceConfigurationArn"
      ]
    },
    "ConnectivityResourceParameters": {
      "type": "object",
      "properties": {
        "ResourceParameters": {
          "$ref": "#/$defs/ConnectivityResourceConfigurationArn"
        }
      },
      "required": [
        "ResourceParameters"
      ]
    },
    "UpdateConnectionApiKeyAuthRequestParameters": {
      "type": "object",
      "properties": {
        "ApiKeyName": {
          "type": "string",
          "description": "The name of the API key to use for authorization."
        },
        "ApiKeyValue": {
          "type": "string",
          "description": "The value associated with the API key to use for authorization."
        }
      }
    },
    "UpdateConnectionAuthRequestParameters": {
      "type": "object",
      "properties": {
        "BasicAuthParameters": {
          "$ref": "#/$defs/UpdateConnectionBasicAuthRequestParameters"
        },
        "OAuthParameters": {
          "$ref": "#/$defs/UpdateConnectionOAuthRequestParameters"
        },
        "ApiKeyAuthParameters": {
          "$ref": "#/$defs/UpdateConnectionApiKeyAuthRequestParameters"
        },
        "InvocationHttpParameters": {
          "$ref": "#/$defs/ConnectionHttpParameters"
        },
        "ConnectivityParameters": {
          "$ref": "#/$defs/ConnectivityResourceParameters"
        }
      }
    },
    "UpdateConnectionBasicAuthRequestParameters": {
      "type": "object",
      "properties": {
        "Username": {
          "type": "string",
          "description": "The user name to use for Basic authorization."
        },
        "Password": {
          "type": "string",
          "description": "The password associated with the user name to use for Basic authorization."
        }
      }
    },
    "UpdateConnectionOAuthClientRequestParameters": {
      "type": "object",
      "properties": {
        "ClientID": {
          "type": "string",
          "description": "The client ID to use for OAuth authorization."
        },
        "ClientSecret": {
          "type": "string",
          "description": "The client secret assciated with the client ID to use for OAuth authorization."
        }
      }
    },
    "UpdateConnectionOAuthRequestParameters": {
      "type": "object",
      "properties": {
        "ClientParameters": {
          "$ref": "#/$defs/UpdateConnectionOAuthClientRequestParameters"
        },
        "AuthorizationEndpoint": {
          "type": "string",
          "description": "The URL to the authorization endpoint when OAuth is specified as the authorization type."
        },
        "HttpMethod": {
          "type": "string",
          "enum": [
            "GET",
            "POST",
            "PUT"
          ],
          "description": "The method used to connect to the HTTP endpoint."
        },
        "OAuthHttpParameters": {
          "$ref": "#/$defs/ConnectionHttpParameters"
        }
      }
    }
  }
}