logo
pub struct Connection {
    pub connection_properties: Option<HashMap<String, String>>,
    pub connection_type: Option<String>,
    pub creation_time: Option<f64>,
    pub description: Option<String>,
    pub last_updated_by: Option<String>,
    pub last_updated_time: Option<f64>,
    pub match_criteria: Option<Vec<String>>,
    pub name: Option<String>,
    pub physical_connection_requirements: Option<PhysicalConnectionRequirements>,
}
Expand description

Defines a connection to a data source.

Fields

connection_properties: Option<HashMap<String, String>>

These key-value pairs define parameters for the connection:

  • 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.

  • USERNAME - The name under which to log in to the database. The value string for USERNAME is "USERNAME".

  • PASSWORD - A password, if one is used, for the user name.

  • ENCRYPTEDPASSWORD - When you enable connection password protection by setting ConnectionPasswordEncryption in the Data Catalog encryption settings, this field stores the encrypted password.

  • JDBCDRIVERJARURI - The Amazon Simple Storage Service (Amazon S3) path of the JAR file that contains the JDBC driver to use.

  • JDBCDRIVERCLASSNAME - The class name of the JDBC driver to use.

  • JDBCENGINE - The name of the JDBC engine to use.

  • JDBCENGINEVERSION - The version of the JDBC engine to use.

  • CONFIGFILES - (Reserved for future use.)

  • INSTANCEID - The instance ID to use.

  • JDBCCONNECTIONURL - The URL for connecting to a JDBC data source.

  • JDBCENFORCESSL - A Boolean string (true, false) specifying whether Secure Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection on the client. The default is false.

  • CUSTOMJDBCCERT - An Amazon S3 location specifying the customer's root certificate. Glue uses this root certificate to validate the customer’s certificate when connecting to the customer database. Glue only handles X.509 certificates. The certificate provided must be DER-encoded and supplied in Base64 encoding PEM format.

  • SKIPCUSTOMJDBCCERTVALIDATION - By default, this is false. Glue validates the Signature algorithm and Subject Public Key Algorithm for the customer certificate. The only permitted algorithms for the Signature algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key Algorithm, the key length must be at least 2048. You can set the value of this property to true to skip Glue’s validation of the customer certificate.

  • CUSTOMJDBCCERTSTRING - A custom JDBC certificate string which is used for domain match or distinguished name match to prevent a man-in-the-middle attack. In Oracle database, this is used as the SSLSERVERCERTDN; in Microsoft SQL Server, this is used as the hostNameInCertificate.

  • CONNECTIONURL - The URL for connecting to a general (non-JDBC) data source.

  • KAFKABOOTSTRAPSERVERS - A comma-separated list of host and port pairs that are the addresses of the Apache Kafka brokers in a Kafka cluster to which a Kafka client will connect to and bootstrap itself.

  • KAFKASSLENABLED - Whether to enable or disable SSL on an Apache Kafka connection. Default value is "true".

  • KAFKACUSTOMCERT - The Amazon S3 URL for the private CA cert file (.pem format). The default is an empty string.

  • KAFKASKIPCUSTOMCERTVALIDATION - Whether to skip the validation of the CA cert file or not. Glue validates for three algorithms: SHA256withRSA, SHA384withRSA and SHA512withRSA. Default value is "false".

  • SECRETID - The secret ID used for the secret manager of credentials.

  • CONNECTORURL - The connector URL for a MARKETPLACE or CUSTOM connection.

  • CONNECTORTYPE - The connector type for a MARKETPLACE or CUSTOM connection.

  • CONNECTORCLASSNAME - The connector class name for a MARKETPLACE or CUSTOM connection.

  • KAFKACLIENTKEYSTORE - The Amazon S3 location of the client keystore file for Kafka client side authentication (Optional).

  • KAFKACLIENTKEYSTOREPASSWORD - The password to access the provided keystore (Optional).

  • KAFKACLIENTKEYPASSWORD - A keystore can consist of multiple keys, so this is the password to access the client key to be used with the Kafka server side key (Optional).

  • ENCRYPTEDKAFKACLIENTKEYSTOREPASSWORD - The encrypted version of the Kafka client keystore password (if the user has the Glue encrypt passwords setting selected).

  • ENCRYPTEDKAFKACLIENTKEYPASSWORD - The encrypted version of the Kafka client key password (if the user has the Glue encrypt passwords setting selected).

connection_type: Option<String>

The type of the connection. Currently, SFTP is not supported.

creation_time: Option<f64>

The time that this connection definition was created.

description: Option<String>

The description of the connection.

last_updated_by: Option<String>

The user, group, or role that last updated this connection definition.

last_updated_time: Option<f64>

The last time that this connection definition was updated.

match_criteria: Option<Vec<String>>

A list of criteria that can be used in selecting this connection.

name: Option<String>

The name of the connection definition.

physical_connection_requirements: Option<PhysicalConnectionRequirements>

A map of physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to make this connection successfully.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more