{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-get-connection-response-schema.json",
  "title": "GetConnectionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-getconnection-api-api-openapi.yml#/components/schemas/GetConnectionResponse",
  "type": "object",
  "properties": {
    "Connection": {
      "$ref": "#/$defs/Connection"
    }
  },
  "$defs": {
    "AuthenticationConfiguration": {
      "type": "object",
      "properties": {
        "AuthenticationType": {
          "type": "string",
          "enum": [
            "BASIC",
            "OAUTH2",
            "CUSTOM",
            "IAM"
          ],
          "description": "A structure containing the authentication configuration."
        },
        "SecretArn": {
          "type": "string",
          "description": "The secret manager ARN to store credentials."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt sensitive authentication information. This key is used to protect credentials and other sensitive data stored within the authentication configuration."
        },
        "OAuth2Properties": {
          "$ref": "#/$defs/OAuth2Properties"
        }
      }
    },
    "Connection": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the connection definition."
        },
        "Description": {
          "type": "string",
          "description": "The description of the connection."
        },
        "ConnectionType": {
          "type": "string",
          "enum": [
            "JDBC",
            "SFTP",
            "MONGODB",
            "KAFKA",
            "NETWORK",
            "MARKETPLACE",
            "CUSTOM",
            "SALESFORCE",
            "VIEW_VALIDATION_REDSHIFT",
            "VIEW_VALIDATION_ATHENA",
            "GOOGLEADS",
            "GOOGLESHEETS",
            "GOOGLEANALYTICS4",
            "SERVICENOW",
            "MARKETO",
            "SAPODATA",
            "ZENDESK",
            "JIRACLOUD",
            "NETSUITEERP",
            "HUBSPOT",
            "FACEBOOKADS",
            "INSTAGRAMADS",
            "ZOHOCRM",
            "SALESFORCEPARDOT",
            "SALESFORCEMARKETINGCLOUD",
            "ADOBEANALYTICS",
            "SLACK",
            "LINKEDIN",
            "MIXPANEL",
            "ASANA",
            "STRIPE",
            "SMARTSHEET",
            "DATADOG",
            "WOOCOMMERCE",
            "INTERCOM",
            "SNAPCHATADS",
            "PAYPAL",
            "QUICKBOOKS",
            "FACEBOOKPAGEINSIGHTS",
            "FRESHDESK",
            "TWILIO",
            "DOCUSIGNMONITOR",
            "FRESHSALES",
            "ZOOM",
            "GOOGLESEARCHCONSOLE",
            "SALESFORCECOMMERCECLOUD",
            "SAPCONCUR",
            "DYNATRACE",
            "MICROSOFTDYNAMIC365FINANCEANDOPS",
            "MICROSOFTTEAMS",
            "BLACKBAUDRAISEREDGENXT",
            "MAILCHIMP",
            "GITLAB",
            "PENDO",
            "PRODUCTBOARD",
            "CIRCLECI",
            "PIPEDIVE",
            "SENDGRID",
            "AZURECOSMOS",
            "AZURESQL",
            "BIGQUERY",
            "BLACKBAUD",
            "CLOUDERAHIVE",
            "CLOUDERAIMPALA",
            "CLOUDWATCH",
            "CLOUDWATCHMETRICS",
            "CMDB",
            "DATALAKEGEN2",
            "DB2",
            "DB2AS400",
            "DOCUMENTDB",
            "DOMO",
            "DYNAMODB",
            "GOOGLECLOUDSTORAGE",
            "HBASE",
            "KUSTOMER",
            "MICROSOFTDYNAMICS365CRM",
            "MONDAY",
            "MYSQL",
            "OKTA",
            "OPENSEARCH",
            "ORACLE",
            "PIPEDRIVE",
            "POSTGRESQL",
            "SAPHANA",
            "SQLSERVER",
            "SYNAPSE",
            "TERADATA",
            "TERADATANOS",
            "TIMESTREAM",
            "TPCDS",
            "VERTICA"
          ],
          "description": "The type of the connection. Currently, SFTP is not supported."
        },
        "MatchCriteria": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of criteria that can be used in selecting this connection."
        },
        "ConnectionProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "These key-value pairs define parameters for the connection when using the version 1 Connection schema: HOST - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host. PORT - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections. USER_NAME - The name under which to log in to the database. The value string for USER_NAME is \"USERNAME\". PASSWORD - A password, if one is used, for the user name. ENCRYPTED_PASSWORD - When you enable connection password protection by setting ConnectionPasswordE"
        },
        "SparkProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Connection properties specific to the Spark compute environment."
        },
        "AthenaProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Connection properties specific to the Athena compute environment."
        },
        "PythonProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Connection properties specific to the Python compute environment."
        },
        "PhysicalConnectionRequirements": {
          "$ref": "#/$defs/PhysicalConnectionRequirements"
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the time that this connection definition was created."
        },
        "LastUpdatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the last time the connection definition was updated."
        },
        "LastUpdatedBy": {
          "type": "string",
          "description": "The user, group, or role that last updated this connection definition."
        },
        "Status": {
          "type": "string",
          "enum": [
            "READY",
            "IN_PROGRESS",
            "FAILED"
          ],
          "description": "The status of the connection. Can be one of: READY, IN_PROGRESS, or FAILED."
        },
        "StatusReason": {
          "type": "string",
          "description": "The reason for the connection status."
        },
        "LastConnectionValidationTime": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp of the time this connection was last validated."
        },
        "AuthenticationConfiguration": {
          "$ref": "#/$defs/AuthenticationConfiguration"
        },
        "ConnectionSchemaVersion": {
          "type": "integer",
          "description": "The version of the connection schema for this connection. Version 2 supports properties for specific compute environments."
        },
        "CompatibleComputeEnvironments": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SPARK",
              "ATHENA",
              "PYTHON"
            ]
          },
          "description": "A list of compute environments compatible with the connection."
        }
      }
    },
    "OAuth2ClientApplication": {
      "type": "object",
      "properties": {
        "UserManagedClientApplicationClientId": {
          "type": "string",
          "description": "The client application clientID if the ClientAppType is USER_MANAGED."
        },
        "AWSManagedClientApplicationReference": {
          "type": "string",
          "description": "The reference to the SaaS-side client app that is Amazon Web Services managed."
        }
      }
    },
    "OAuth2Properties": {
      "type": "object",
      "properties": {
        "OAuth2GrantType": {
          "type": "string",
          "enum": [
            "AUTHORIZATION_CODE",
            "CLIENT_CREDENTIALS",
            "JWT_BEARER",
            "REFRESH_TOKEN"
          ],
          "description": "The OAuth2 grant type. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS."
        },
        "OAuth2ClientApplication": {
          "$ref": "#/$defs/OAuth2ClientApplication"
        },
        "TokenUrl": {
          "type": "string",
          "description": "The URL of the provider's authentication server, to exchange an authorization code for an access token."
        },
        "TokenUrlParametersMap": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of parameters that are added to the token GET request."
        }
      }
    },
    "PhysicalConnectionRequirements": {
      "type": "object",
      "properties": {
        "SubnetId": {
          "type": "string",
          "description": "The subnet ID used by the connection."
        },
        "SecurityGroupIdList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The security group ID list used by the connection."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The connection's Availability Zone."
        }
      }
    }
  }
}