Struct aws_sdk_glue::types::ConnectionInput
source · #[non_exhaustive]pub struct ConnectionInput {
pub name: String,
pub description: Option<String>,
pub connection_type: ConnectionType,
pub match_criteria: Option<Vec<String>>,
pub connection_properties: HashMap<ConnectionPropertyKey, String>,
pub physical_connection_requirements: Option<PhysicalConnectionRequirements>,
}Expand description
A structure that is used to specify a connection to create or update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the connection. Connection will not function as expected without a name.
description: Option<String>The description of the connection.
connection_type: ConnectionTypeThe type of the connection. Currently, these types are supported:
-
JDBC- Designates a connection to a database through Java Database Connectivity (JDBC).JDBCConnections use the following ConnectionParameters.-
Required: All of (
HOST,PORT,JDBC_ENGINE) orJDBC_CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID. -
Optional:
JDBC_ENFORCE_SSL,CUSTOM_JDBC_CERT,CUSTOM_JDBC_CERT_STRING,SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.
-
-
KAFKA- Designates a connection to an Apache Kafka streaming platform.KAFKAConnections use the following ConnectionParameters.-
Required:
KAFKA_BOOTSTRAP_SERVERS. -
Optional:
KAFKA_SSL_ENABLED,KAFKA_CUSTOM_CERT,KAFKA_SKIP_CUSTOM_CERT_VALIDATION. These parameters are used to configure SSL withKAFKA. -
Optional:
KAFKA_CLIENT_KEYSTORE,KAFKA_CLIENT_KEYSTORE_PASSWORD,KAFKA_CLIENT_KEY_PASSWORD,ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD,ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD. These parameters are used to configure TLS client configuration with SSL inKAFKA. -
Optional:
KAFKA_SASL_MECHANISM. Can be specified asSCRAM-SHA-512,GSSAPI, orAWS_MSK_IAM. -
Optional:
KAFKA_SASL_SCRAM_USERNAME,KAFKA_SASL_SCRAM_PASSWORD,ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD. These parameters are used to configure SASL/SCRAM-SHA-512 authentication withKAFKA. -
Optional:
KAFKA_SASL_GSSAPI_KEYTAB,KAFKA_SASL_GSSAPI_KRB5_CONF,KAFKA_SASL_GSSAPI_SERVICE,KAFKA_SASL_GSSAPI_PRINCIPAL. These parameters are used to configure SASL/GSSAPI authentication withKAFKA.
-
-
MONGODB- Designates a connection to a MongoDB document database.MONGODBConnections use the following ConnectionParameters.-
Required:
CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID.
-
-
NETWORK- Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).NETWORKConnections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements. -
MARKETPLACE- Uses configuration settings contained in a connector purchased from Amazon Web Services Marketplace to read from and write to data stores that are not natively supported by Glue.MARKETPLACEConnections use the following ConnectionParameters.-
Required:
CONNECTOR_TYPE,CONNECTOR_URL,CONNECTOR_CLASS_NAME,CONNECTION_URL. -
Required for
JDBCCONNECTOR_TYPEconnections: All of (USERNAME,PASSWORD) orSECRET_ID.
-
-
CUSTOM- Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by Glue.
SFTP is not supported.
For more information about how optional ConnectionProperties are used to configure features in Glue, consult Glue connection properties.
For more information about how optional ConnectionProperties are used to configure features in Glue Studio, consult Using connectors and connections.
match_criteria: Option<Vec<String>>A list of criteria that can be used in selecting this connection.
connection_properties: HashMap<ConnectionPropertyKey, String>These key-value pairs define parameters for the connection.
physical_connection_requirements: Option<PhysicalConnectionRequirements>A map of physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.
Implementations§
source§impl ConnectionInput
impl ConnectionInput
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the connection. Connection will not function as expected without a name.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the connection.
sourcepub fn connection_type(&self) -> &ConnectionType
pub fn connection_type(&self) -> &ConnectionType
The type of the connection. Currently, these types are supported:
-
JDBC- Designates a connection to a database through Java Database Connectivity (JDBC).JDBCConnections use the following ConnectionParameters.-
Required: All of (
HOST,PORT,JDBC_ENGINE) orJDBC_CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID. -
Optional:
JDBC_ENFORCE_SSL,CUSTOM_JDBC_CERT,CUSTOM_JDBC_CERT_STRING,SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.
-
-
KAFKA- Designates a connection to an Apache Kafka streaming platform.KAFKAConnections use the following ConnectionParameters.-
Required:
KAFKA_BOOTSTRAP_SERVERS. -
Optional:
KAFKA_SSL_ENABLED,KAFKA_CUSTOM_CERT,KAFKA_SKIP_CUSTOM_CERT_VALIDATION. These parameters are used to configure SSL withKAFKA. -
Optional:
KAFKA_CLIENT_KEYSTORE,KAFKA_CLIENT_KEYSTORE_PASSWORD,KAFKA_CLIENT_KEY_PASSWORD,ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD,ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD. These parameters are used to configure TLS client configuration with SSL inKAFKA. -
Optional:
KAFKA_SASL_MECHANISM. Can be specified asSCRAM-SHA-512,GSSAPI, orAWS_MSK_IAM. -
Optional:
KAFKA_SASL_SCRAM_USERNAME,KAFKA_SASL_SCRAM_PASSWORD,ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD. These parameters are used to configure SASL/SCRAM-SHA-512 authentication withKAFKA. -
Optional:
KAFKA_SASL_GSSAPI_KEYTAB,KAFKA_SASL_GSSAPI_KRB5_CONF,KAFKA_SASL_GSSAPI_SERVICE,KAFKA_SASL_GSSAPI_PRINCIPAL. These parameters are used to configure SASL/GSSAPI authentication withKAFKA.
-
-
MONGODB- Designates a connection to a MongoDB document database.MONGODBConnections use the following ConnectionParameters.-
Required:
CONNECTION_URL. -
Required: All of (
USERNAME,PASSWORD) orSECRET_ID.
-
-
NETWORK- Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).NETWORKConnections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements. -
MARKETPLACE- Uses configuration settings contained in a connector purchased from Amazon Web Services Marketplace to read from and write to data stores that are not natively supported by Glue.MARKETPLACEConnections use the following ConnectionParameters.-
Required:
CONNECTOR_TYPE,CONNECTOR_URL,CONNECTOR_CLASS_NAME,CONNECTION_URL. -
Required for
JDBCCONNECTOR_TYPEconnections: All of (USERNAME,PASSWORD) orSECRET_ID.
-
-
CUSTOM- Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by Glue.
SFTP is not supported.
For more information about how optional ConnectionProperties are used to configure features in Glue, consult Glue connection properties.
For more information about how optional ConnectionProperties are used to configure features in Glue Studio, consult Using connectors and connections.
sourcepub fn match_criteria(&self) -> &[String]
pub fn match_criteria(&self) -> &[String]
A list of criteria that can be used in selecting this connection.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .match_criteria.is_none().
sourcepub fn connection_properties(&self) -> &HashMap<ConnectionPropertyKey, String>
pub fn connection_properties(&self) -> &HashMap<ConnectionPropertyKey, String>
These key-value pairs define parameters for the connection.
sourcepub fn physical_connection_requirements(
&self
) -> Option<&PhysicalConnectionRequirements>
pub fn physical_connection_requirements( &self ) -> Option<&PhysicalConnectionRequirements>
A map of physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.
source§impl ConnectionInput
impl ConnectionInput
sourcepub fn builder() -> ConnectionInputBuilder
pub fn builder() -> ConnectionInputBuilder
Creates a new builder-style object to manufacture ConnectionInput.
Trait Implementations§
source§impl Clone for ConnectionInput
impl Clone for ConnectionInput
source§fn clone(&self) -> ConnectionInput
fn clone(&self) -> ConnectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ConnectionInput
impl Debug for ConnectionInput
source§impl PartialEq for ConnectionInput
impl PartialEq for ConnectionInput
source§fn eq(&self, other: &ConnectionInput) -> bool
fn eq(&self, other: &ConnectionInput) -> bool
self and other values to be equal, and is used
by ==.