{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-connection-input-schema.json",
  "title": "CreateConnectionInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-connections-api-openapi.yml#/components/schemas/CreateConnectionInput",
  "type": "object",
  "properties": {
    "awsLocation": {
      "$ref": "#/$defs/AwsLocation"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that is provided to ensure the idempotency of the request."
    },
    "configurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Configuration"
      },
      "description": "The configurations of the connection."
    },
    "description": {
      "type": "string",
      "description": "A connection description."
    },
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the domain where the connection is created."
    },
    "environmentIdentifier": {
      "type": "string",
      "description": "The ID of the environment where the connection is created."
    },
    "name": {
      "type": "string",
      "description": "The connection name."
    },
    "props": {
      "$ref": "#/$defs/ConnectionPropertiesInput"
    },
    "enableTrustedIdentityPropagation": {
      "type": "boolean",
      "description": "Specifies whether the trusted identity propagation is enabled."
    },
    "scope": {
      "type": "string",
      "enum": [
        "DOMAIN",
        "PROJECT"
      ],
      "description": "The scope of the connection."
    }
  },
  "required": [
    "domainIdentifier",
    "name"
  ],
  "$defs": {
    "AmazonQPropertiesInput": {
      "type": "object",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Specifies whether Amazon Q is enabled for the connection."
        },
        "profileArn": {
          "type": "string",
          "description": "The profile ARN of the connection's Amazon Q properties."
        },
        "authMode": {
          "type": "string",
          "description": "The authentication mode of the connection's Amazon Q properties."
        }
      },
      "required": [
        "isEnabled"
      ]
    },
    "AthenaPropertiesInput": {
      "type": "object",
      "properties": {
        "workgroupName": {
          "type": "string",
          "description": "The Amazon Athena workgroup name of a connection."
        }
      }
    },
    "AuthenticationConfigurationInput": {
      "type": "object",
      "properties": {
        "authenticationType": {
          "type": "string",
          "enum": [
            "BASIC",
            "OAUTH2",
            "CUSTOM"
          ],
          "description": "The authentication type of a connection."
        },
        "oAuth2Properties": {
          "$ref": "#/$defs/OAuth2Properties"
        },
        "secretArn": {
          "type": "string",
          "description": "The secret ARN of a connection."
        },
        "kmsKeyArn": {
          "type": "string",
          "description": "The KMS key ARN of a connection."
        },
        "basicAuthenticationCredentials": {
          "$ref": "#/$defs/BasicAuthenticationCredentials"
        },
        "customAuthenticationCredentials": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The custom authentication credentials of a connection."
        }
      }
    },
    "AuthorizationCodeProperties": {
      "type": "object",
      "properties": {
        "authorizationCode": {
          "type": "string",
          "description": "The authorization code of a connection."
        },
        "redirectUri": {
          "type": "string",
          "description": "The redirect URI of a connection."
        }
      }
    },
    "AwsLocation": {
      "type": "object",
      "properties": {
        "accessRole": {
          "type": "string",
          "description": "The access role of a connection."
        },
        "awsAccountId": {
          "type": "string",
          "description": "The account ID of a connection."
        },
        "awsRegion": {
          "type": "string",
          "description": "The Region of a connection."
        },
        "iamConnectionId": {
          "type": "string",
          "description": "The IAM connection ID of a connection."
        }
      }
    },
    "BasicAuthenticationCredentials": {
      "type": "object",
      "properties": {
        "userName": {
          "type": "string",
          "description": "The user name for the connecion."
        },
        "password": {
          "type": "string",
          "description": "The password for a connection."
        }
      }
    },
    "Configuration": {
      "type": "object",
      "properties": {
        "classification": {
          "type": "string",
          "description": "The classification of the connection configuration."
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The properties of the connection configuration."
        }
      }
    },
    "ConnectionPropertiesInput": {
      "type": "object",
      "properties": {
        "athenaProperties": {
          "$ref": "#/$defs/AthenaPropertiesInput"
        },
        "glueProperties": {
          "$ref": "#/$defs/GluePropertiesInput"
        },
        "hyperPodProperties": {
          "$ref": "#/$defs/HyperPodPropertiesInput"
        },
        "iamProperties": {
          "$ref": "#/$defs/IamPropertiesInput"
        },
        "redshiftProperties": {
          "$ref": "#/$defs/RedshiftPropertiesInput"
        },
        "sparkEmrProperties": {
          "$ref": "#/$defs/SparkEmrPropertiesInput"
        },
        "sparkGlueProperties": {
          "$ref": "#/$defs/SparkGluePropertiesInput"
        },
        "s3Properties": {
          "$ref": "#/$defs/S3PropertiesInput"
        },
        "snowflakeProperties": {
          "$ref": "#/$defs/SnowflakePropertiesInput"
        },
        "amazonQProperties": {
          "$ref": "#/$defs/AmazonQPropertiesInput"
        },
        "mlflowProperties": {
          "$ref": "#/$defs/MlflowPropertiesInput"
        },
        "workflowsMwaaProperties": {
          "$ref": "#/$defs/WorkflowsMwaaPropertiesInput"
        },
        "workflowsServerlessProperties": {
          "$ref": "#/$defs/WorkflowsServerlessPropertiesInput"
        },
        "lakehouseProperties": {
          "$ref": "#/$defs/LakehousePropertiesInput"
        },
        "vpcProperties": {
          "$ref": "#/$defs/VpcPropertiesInput"
        },
        "gitProperties": {
          "$ref": "#/$defs/GitPropertiesInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConnectivityProperties": {
      "type": "object",
      "properties": {
        "connectionProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The connection properties for this configuration."
        },
        "physicalConnectionRequirements": {
          "$ref": "#/$defs/PhysicalConnectionRequirements"
        },
        "name": {
          "type": "string",
          "description": "The name of the connectivity configuration."
        },
        "description": {
          "type": "string",
          "description": "The description of the connectivity configuration."
        },
        "validateCredentials": {
          "type": "boolean",
          "description": "Specifies whether to validate credentials for the connectivity configuration. Defaults to true if not specified."
        },
        "validateForComputeEnvironments": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SPARK",
              "ATHENA",
              "PYTHON"
            ]
          },
          "description": "The compute environments to use when validating connectivity. The service validates that the connection is reachable from each specified environment."
        },
        "sparkProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Spark properties for this configuration."
        },
        "athenaProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Athena properties for this configuration."
        },
        "pythonProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Python properties for this configuration."
        },
        "authenticationConfiguration": {
          "$ref": "#/$defs/AuthenticationConfigurationInput"
        }
      }
    },
    "GitPropertiesInput": {
      "type": "object",
      "properties": {
        "codeConnectionArn": {
          "type": "string",
          "description": "The ARN of the CodeConnections connection used to connect to the Git repository."
        },
        "repositoryId": {
          "type": "string",
          "description": "The ID of the Git repository. This is the owner and repository name, for example, owner/repo-name."
        },
        "defaultBranch": {
          "type": "string",
          "description": "The default branch of the Git repository."
        }
      },
      "required": [
        "codeConnectionArn",
        "repositoryId",
        "defaultBranch"
      ]
    },
    "GlueConnectionInput": {
      "type": "object",
      "properties": {
        "connectionProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The connection properties of the Amazon Web Services Glue connection."
        },
        "physicalConnectionRequirements": {
          "$ref": "#/$defs/PhysicalConnectionRequirements"
        },
        "name": {
          "type": "string",
          "description": "The name of the Amazon Web Services Glue connection."
        },
        "description": {
          "type": "string",
          "description": "The description of the Amazon Web Services Glue connection."
        },
        "connectionType": {
          "type": "string",
          "enum": [
            "SNOWFLAKE",
            "BIGQUERY",
            "DOCUMENTDB",
            "DYNAMODB",
            "MYSQL",
            "OPENSEARCH",
            "ORACLE",
            "POSTGRESQL",
            "REDSHIFT",
            "SAPHANA",
            "SQLSERVER",
            "TERADATA",
            "VERTICA",
            "ICEBERGRESTCATALOG",
            "SNOWFLAKEICEBERGRESTCATALOG",
            "DATABRICKSICEBERGRESTCATALOG",
            "WORKDAYICEBERGRESTCATALOG",
            "WORKDAYLDQ"
          ],
          "description": "The connection type of the Amazon Web Services Glue connection."
        },
        "matchCriteria": {
          "type": "string",
          "description": "The match criteria of the Amazon Web Services Glue connection."
        },
        "validateCredentials": {
          "type": "boolean",
          "description": "Speciefies whether to validate credentials of the Amazon Web Services Glue connection."
        },
        "validateForComputeEnvironments": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SPARK",
              "ATHENA",
              "PYTHON"
            ]
          },
          "description": "Speciefies whether to validate for compute environments of the Amazon Web Services Glue connection."
        },
        "sparkProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Spark properties of the Amazon Web Services Glue connection."
        },
        "athenaProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Amazon Athena properties of the Amazon Web Services Glue connection."
        },
        "pythonProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Python properties of the Amazon Web Services Glue connection."
        },
        "authenticationConfiguration": {
          "$ref": "#/$defs/AuthenticationConfigurationInput"
        }
      }
    },
    "GlueOAuth2Credentials": {
      "type": "object",
      "properties": {
        "userManagedClientApplicationClientSecret": {
          "type": "string",
          "description": "The user managed client application client secret of the connection."
        },
        "accessToken": {
          "type": "string",
          "description": "The access token of a connection."
        },
        "refreshToken": {
          "type": "string",
          "description": "The refresh token of the connection."
        },
        "jwtToken": {
          "type": "string",
          "description": "The jwt token of the connection."
        }
      }
    },
    "GluePropertiesInput": {
      "type": "object",
      "properties": {
        "glueConnectionInput": {
          "$ref": "#/$defs/GlueConnectionInput"
        }
      }
    },
    "HyperPodPropertiesInput": {
      "type": "object",
      "properties": {
        "clusterName": {
          "type": "string",
          "description": "The cluster name the hyper pod properties."
        }
      },
      "required": [
        "clusterName"
      ]
    },
    "IamPropertiesInput": {
      "type": "object",
      "properties": {
        "glueLineageSyncEnabled": {
          "type": "boolean",
          "description": "Specifies whether Amazon Web Services Glue lineage sync is enabled for a connection."
        },
        "roleArn": {
          "type": "string",
          "description": "The ARN of the IAM role to associate with the connection as the project user role. To use this operation, you must have iam:PassRole permission for this role."
        }
      }
    },
    "IdentityMapping": {
      "type": "object",
      "properties": {
        "usernameAttribute": {
          "type": "string",
          "description": "The username attribute used for the identity mapping."
        },
        "prefix": {
          "type": "string",
          "description": "The prefix used for the identity mapping."
        }
      },
      "required": [
        "usernameAttribute"
      ]
    },
    "LakehousePropertiesInput": {
      "type": "object",
      "properties": {
        "glueLineageSyncEnabled": {
          "type": "boolean",
          "description": "Specifies whether to enable Glue lineage sync for tables managed by Glue crawlers."
        }
      }
    },
    "LineageSyncInput": {
      "type": "object",
      "properties": {
        "timezone": {
          "type": "string",
          "enum": [
            "UTC",
            "AFRICA_JOHANNESBURG",
            "AMERICA_MONTREAL",
            "AMERICA_SAO_PAULO",
            "ASIA_BAHRAIN",
            "ASIA_BANGKOK",
            "ASIA_CALCUTTA",
            "ASIA_DUBAI",
            "ASIA_HONG_KONG",
            "ASIA_JAKARTA",
            "ASIA_KUALA_LUMPUR",
            "ASIA_SEOUL",
            "ASIA_SHANGHAI",
            "ASIA_SINGAPORE",
            "ASIA_TAIPEI",
            "ASIA_TOKYO",
            "AUSTRALIA_MELBOURNE",
            "AUSTRALIA_SYDNEY",
            "CANADA_CENTRAL",
            "CET",
            "CST6CDT",
            "ETC_GMT",
            "ETC_GMT0",
            "ETC_GMT_ADD_0",
            "ETC_GMT_ADD_1",
            "ETC_GMT_ADD_10",
            "ETC_GMT_ADD_11",
            "ETC_GMT_ADD_12",
            "ETC_GMT_ADD_2",
            "ETC_GMT_ADD_3",
            "ETC_GMT_ADD_4",
            "ETC_GMT_ADD_5",
            "ETC_GMT_ADD_6",
            "ETC_GMT_ADD_7",
            "ETC_GMT_ADD_8",
            "ETC_GMT_ADD_9",
            "ETC_GMT_NEG_0",
            "ETC_GMT_NEG_1",
            "ETC_GMT_NEG_10",
            "ETC_GMT_NEG_11",
            "ETC_GMT_NEG_12",
            "ETC_GMT_NEG_13",
            "ETC_GMT_NEG_14",
            "ETC_GMT_NEG_2",
            "ETC_GMT_NEG_3",
            "ETC_GMT_NEG_4",
            "ETC_GMT_NEG_5",
            "ETC_GMT_NEG_6",
            "ETC_GMT_NEG_7",
            "ETC_GMT_NEG_8",
            "ETC_GMT_NEG_9",
            "EUROPE_DUBLIN",
            "EUROPE_LONDON",
            "EUROPE_PARIS",
            "EUROPE_STOCKHOLM",
            "EUROPE_ZURICH",
            "ISRAEL",
            "MEXICO_GENERAL",
            "MST7MDT",
            "PACIFIC_AUCKLAND",
            "US_CENTRAL",
            "US_EASTERN",
            "US_MOUNTAIN",
            "US_PACIFIC"
          ],
          "description": "The timezone of the lineage sync schedule."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether lineage sync is enabled."
        },
        "schedule": {
          "type": "string",
          "description": "The schedule of the lineage sync."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "LineageSyncSchedule": {
      "type": "object",
      "properties": {
        "schedule": {
          "type": "string",
          "description": "The lineage sync schedule."
        }
      }
    },
    "MlflowPropertiesInput": {
      "type": "object",
      "properties": {
        "trackingServerArn": {
          "type": "string",
          "description": "The tracking server ARN as part of the MLflow properties of a connection."
        }
      }
    },
    "OAuth2ClientApplication": {
      "type": "object",
      "properties": {
        "userManagedClientApplicationClientId": {
          "type": "string",
          "description": "The user managed client application client ID in the OAuth2Client application."
        },
        "aWSManagedClientApplicationReference": {
          "type": "string",
          "description": "The Amazon Web Services managed client application reference in the OAuth2Client application."
        }
      }
    },
    "OAuth2Properties": {
      "type": "object",
      "properties": {
        "oAuth2GrantType": {
          "type": "string",
          "enum": [
            "AUTHORIZATION_CODE",
            "CLIENT_CREDENTIALS",
            "JWT_BEARER"
          ],
          "description": "The OAuth2 grant type of the OAuth2 properties."
        },
        "oAuth2ClientApplication": {
          "$ref": "#/$defs/OAuth2ClientApplication"
        },
        "tokenUrl": {
          "type": "string",
          "description": "The OAuth2 token URL of the OAuth2 properties."
        },
        "tokenUrlParametersMap": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The OAuth2 token URL parameter map of the OAuth2 properties."
        },
        "authorizationCodeProperties": {
          "$ref": "#/$defs/AuthorizationCodeProperties"
        },
        "oAuth2Credentials": {
          "$ref": "#/$defs/GlueOAuth2Credentials"
        }
      }
    },
    "PhysicalConnectionRequirements": {
      "type": "object",
      "properties": {
        "subnetId": {
          "type": "string",
          "description": "The subnet ID of the physical connection requirements of a connection."
        },
        "subnetIdList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The subnet ID list of the physical connection requirements of a connection."
        },
        "securityGroupIdList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The group ID list of the physical connection requirements of a connection."
        },
        "availabilityZone": {
          "type": "string",
          "description": "The availability zone of the physical connection requirements of a connection."
        }
      }
    },
    "RedshiftCredentials": {
      "type": "object",
      "properties": {
        "secretArn": {
          "type": "string",
          "description": "The secret ARN of the Amazon Redshift credentials of a connection."
        },
        "usernamePassword": {
          "$ref": "#/$defs/UsernamePassword"
        }
      },
      "description": "Exactly one member is set."
    },
    "RedshiftLineageSyncConfigurationInput": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether the Amaon Redshift lineage sync configuration is enabled."
        },
        "schedule": {
          "$ref": "#/$defs/LineageSyncSchedule"
        }
      }
    },
    "RedshiftPropertiesInput": {
      "type": "object",
      "properties": {
        "storage": {
          "$ref": "#/$defs/RedshiftStorageProperties"
        },
        "databaseName": {
          "type": "string",
          "description": "The Amazon Redshift database name."
        },
        "host": {
          "type": "string",
          "description": "The Amazon Redshift host."
        },
        "port": {
          "type": "integer",
          "description": "The Amaon Redshift port."
        },
        "credentials": {
          "$ref": "#/$defs/RedshiftCredentials"
        },
        "lineageSync": {
          "$ref": "#/$defs/RedshiftLineageSyncConfigurationInput"
        }
      }
    },
    "RedshiftStorageProperties": {
      "type": "object",
      "properties": {
        "clusterName": {
          "type": "string",
          "description": "The cluster name in the Amazon Redshift storage properties."
        },
        "workgroupName": {
          "type": "string",
          "description": "The workgroup name in the Amazon Redshift storage properties."
        }
      },
      "description": "Exactly one member is set."
    },
    "S3PropertiesInput": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI that's part of the Amazon S3 properties of a connection."
        },
        "s3AccessGrantLocationId": {
          "type": "string",
          "description": "The Amazon S3 Access Grant location ID that's part of the Amazon S3 properties of a connection."
        },
        "registerS3AccessGrantLocation": {
          "type": "boolean",
          "description": "Specifies whether to register the Amazon S3 Access Grant location."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "SnowflakePropertiesInput": {
      "type": "object",
      "properties": {
        "connectivityProperties": {
          "$ref": "#/$defs/ConnectivityProperties"
        },
        "snowflakeRole": {
          "type": "string",
          "description": "The Snowflake role used to access Snowflake resources."
        },
        "identityMapping": {
          "$ref": "#/$defs/IdentityMapping"
        },
        "lineageSync": {
          "$ref": "#/$defs/LineageSyncInput"
        }
      },
      "required": [
        "snowflakeRole",
        "identityMapping"
      ]
    },
    "SparkEmrPropertiesInput": {
      "type": "object",
      "properties": {
        "computeArn": {
          "type": "string",
          "description": "The compute ARN of Spark EMR."
        },
        "instanceProfileArn": {
          "type": "string",
          "description": "The instance profile ARN of Spark EMR."
        },
        "javaVirtualEnv": {
          "type": "string",
          "description": "The java virtual env of the Spark EMR."
        },
        "logUri": {
          "type": "string",
          "description": "The log URI of the Spark EMR."
        },
        "pythonVirtualEnv": {
          "type": "string",
          "description": "The Python virtual env of the Spark EMR."
        },
        "runtimeRole": {
          "type": "string",
          "description": "The runtime role of the Spark EMR."
        },
        "trustedCertificatesS3Uri": {
          "type": "string",
          "description": "The certificates S3 URI of the Spark EMR."
        },
        "managedEndpointArn": {
          "type": "string",
          "description": "The managed endpoint ARN of the EMR on EKS cluster."
        }
      }
    },
    "SparkGlueArgs": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The connection in the Spark Amazon Web Services Glue args."
        }
      }
    },
    "SparkGluePropertiesInput": {
      "type": "object",
      "properties": {
        "additionalArgs": {
          "$ref": "#/$defs/SparkGlueArgs"
        },
        "glueConnectionName": {
          "type": "string",
          "description": "The Amazon Web Services Glue connection name in the Spark Amazon Web Services Glue properties. Specify either glueConnectionName or glueConnectionNames, but not both."
        },
        "glueConnectionNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services Glue connection names in the Spark Amazon Web Services Glue properties. Specify either glueConnectionName or glueConnectionNames, but not both."
        },
        "glueVersion": {
          "type": "string",
          "description": "The Amazon Web Services Glue version in the Spark Amazon Web Services Glue properties."
        },
        "idleTimeout": {
          "type": "integer",
          "description": "The idle timeout in the Spark Amazon Web Services Glue properties."
        },
        "javaVirtualEnv": {
          "type": "string",
          "description": "The Java virtual env in the Spark Amazon Web Services Glue properties."
        },
        "numberOfWorkers": {
          "type": "integer",
          "description": "The number of workers in the Spark Amazon Web Services Glue properties."
        },
        "pythonVirtualEnv": {
          "type": "string",
          "description": "The Python virtual env in the Spark Amazon Web Services Glue properties."
        },
        "workerType": {
          "type": "string",
          "description": "The worker type in the Spark Amazon Web Services Glue properties."
        }
      }
    },
    "UsernamePassword": {
      "type": "object",
      "properties": {
        "password": {
          "type": "string",
          "description": "The password of a connection."
        },
        "username": {
          "type": "string",
          "description": "The username of a connection."
        }
      },
      "required": [
        "password",
        "username"
      ]
    },
    "VpcPropertiesInput": {
      "type": "object",
      "properties": {
        "vpcId": {
          "type": "string",
          "description": "The identifier of the VPC. Must match the pattern ^vpc-[a-z0-9]+$. Maximum length of 32."
        },
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The subnet IDs of the VPC connection. You can specify between 1 and 16 subnet IDs."
        },
        "securityGroupId": {
          "type": "string",
          "description": "The security group ID of the VPC connection. Must match the pattern ^sg-[a-z0-9]+$. Maximum length of 32."
        }
      },
      "required": [
        "vpcId",
        "subnetIds"
      ]
    },
    "WorkflowsMwaaPropertiesInput": {
      "type": "object",
      "properties": {
        "mwaaEnvironmentName": {
          "type": "string",
          "description": "The MWAA environment name."
        }
      }
    },
    "WorkflowsServerlessPropertiesInput": {
      "type": "object",
      "properties": {}
    }
  }
}