{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eventbridge/json-schema/amazon-eventbridge-describe-connection-response-schema.json",
  "title": "DescribeConnectionResponse",
  "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/DescribeConnectionResponse",
  "type": "object",
  "properties": {
    "ConnectionArn": {
      "type": "string",
      "description": "The ARN of the connection retrieved."
    },
    "Name": {
      "type": "string",
      "description": "The name of the connection retrieved."
    },
    "Description": {
      "type": "string",
      "description": "The description for the connection retrieved."
    },
    "InvocationConnectivityParameters": {
      "$ref": "#/$defs/DescribeConnectionConnectivityParameters"
    },
    "ConnectionState": {
      "type": "string",
      "enum": [
        "CREATING",
        "UPDATING",
        "DELETING",
        "AUTHORIZED",
        "DEAUTHORIZED",
        "AUTHORIZING",
        "DEAUTHORIZING",
        "ACTIVE",
        "FAILED_CONNECTIVITY"
      ],
      "description": "The state of the connection retrieved."
    },
    "StateReason": {
      "type": "string",
      "description": "The reason that the connection is in the current connection state."
    },
    "AuthorizationType": {
      "type": "string",
      "enum": [
        "BASIC",
        "OAUTH_CLIENT_CREDENTIALS",
        "API_KEY"
      ],
      "description": "The type of authorization specified for the connection."
    },
    "SecretArn": {
      "type": "string",
      "description": "The ARN of the secret created from the authorization parameters specified for the connection."
    },
    "KmsKeyIdentifier": {
      "type": "string",
      "description": "The identifier of the KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified. For more information, see Encrypting connections in the Amazon EventBridge User Guide."
    },
    "AuthParameters": {
      "$ref": "#/$defs/ConnectionAuthResponseParameters"
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "A time stamp for the time that the connection was created."
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A time stamp for the time that the connection was last modified."
    },
    "LastAuthorizedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A time stamp for the time that the connection was last authorized."
    }
  },
  "$defs": {
    "ConnectionApiKeyAuthResponseParameters": {
      "type": "object",
      "properties": {
        "ApiKeyName": {
          "type": "string",
          "description": "The name of the header to use for the APIKeyValue used for authorization."
        }
      }
    },
    "ConnectionAuthResponseParameters": {
      "type": "object",
      "properties": {
        "BasicAuthParameters": {
          "$ref": "#/$defs/ConnectionBasicAuthResponseParameters"
        },
        "OAuthParameters": {
          "$ref": "#/$defs/ConnectionOAuthResponseParameters"
        },
        "ApiKeyAuthParameters": {
          "$ref": "#/$defs/ConnectionApiKeyAuthResponseParameters"
        },
        "InvocationHttpParameters": {
          "$ref": "#/$defs/ConnectionHttpParameters"
        },
        "ConnectivityParameters": {
          "$ref": "#/$defs/DescribeConnectionConnectivityParameters"
        }
      }
    },
    "ConnectionBasicAuthResponseParameters": {
      "type": "object",
      "properties": {
        "Username": {
          "type": "string",
          "description": "The user name to use for Basic authorization."
        }
      }
    },
    "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."
        }
      }
    },
    "ConnectionOAuthClientResponseParameters": {
      "type": "object",
      "properties": {
        "ClientID": {
          "type": "string",
          "description": "The client ID associated with the response to the connection request."
        }
      }
    },
    "ConnectionOAuthResponseParameters": {
      "type": "object",
      "properties": {
        "ClientParameters": {
          "$ref": "#/$defs/ConnectionOAuthClientResponseParameters"
        },
        "AuthorizationEndpoint": {
          "type": "string",
          "description": "The URL to the HTTP endpoint that authorized the request."
        },
        "HttpMethod": {
          "type": "string",
          "enum": [
            "GET",
            "POST",
            "PUT"
          ],
          "description": "The method used to connect to the HTTP endpoint."
        },
        "OAuthHttpParameters": {
          "$ref": "#/$defs/ConnectionHttpParameters"
        }
      }
    },
    "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."
        }
      }
    },
    "DescribeConnectionConnectivityParameters": {
      "type": "object",
      "properties": {
        "ResourceParameters": {
          "$ref": "#/$defs/DescribeConnectionResourceParameters"
        }
      },
      "required": [
        "ResourceParameters"
      ]
    },
    "DescribeConnectionResourceParameters": {
      "type": "object",
      "properties": {
        "ResourceConfigurationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the resource configuration for the private API."
        },
        "ResourceAssociationArn": {
          "type": "string",
          "description": "For connections to private APIs, the Amazon Resource Name (ARN) of the resource association EventBridge created between the connection and the private API's resource configuration. For more information, see Managing service network resource associations for connections in the Amazon EventBridge User Guide ."
        }
      },
      "required": [
        "ResourceConfigurationArn",
        "ResourceAssociationArn"
      ]
    }
  }
}