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>,
pub authentication_configuration: Option<AuthenticationConfigurationInput>,
pub validate_credentials: bool,
}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.
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.
-
-
SALESFORCE- Designates a connection to Salesforce using OAuth authencation.-
Requires the
AuthenticationConfigurationmember to be configured.
-
-
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>The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.
authentication_configuration: Option<AuthenticationConfigurationInput>The authentication properties of the connection. Used for a Salesforce connection.
validate_credentials: boolA flag to validate the credentials during create connection. Used for a Salesforce connection. Default is true.
Implementations§
source§impl ConnectionInput
impl ConnectionInput
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.
-
-
SALESFORCE- Designates a connection to Salesforce using OAuth authencation.-
Requires the
AuthenticationConfigurationmember to be configured.
-
-
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>
The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.
sourcepub fn authentication_configuration(
&self,
) -> Option<&AuthenticationConfigurationInput>
pub fn authentication_configuration( &self, ) -> Option<&AuthenticationConfigurationInput>
The authentication properties of the connection. Used for a Salesforce connection.
sourcepub fn validate_credentials(&self) -> bool
pub fn validate_credentials(&self) -> bool
A flag to validate the credentials during create connection. Used for a Salesforce connection. Default is true.
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 ==.impl StructuralPartialEq for ConnectionInput
Auto Trait Implementations§
impl Freeze for ConnectionInput
impl RefUnwindSafe for ConnectionInput
impl Send for ConnectionInput
impl Sync for ConnectionInput
impl Unpin for ConnectionInput
impl UnwindSafe for ConnectionInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more