AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Connection

import "github.com/aws/aws-sdk-go/service/glue"

type Connection struct { ConnectionProperties map[string]*string `type:"map"` ConnectionType *string `type:"string" enum:"ConnectionType"` CreationTime *time.Time `type:"timestamp"` Description *string `type:"string"` LastUpdatedBy *string `min:"1" type:"string"` LastUpdatedTime *time.Time `type:"timestamp"` MatchCriteria []*string `type:"list"` Name *string `min:"1" type:"string"` PhysicalConnectionRequirements *PhysicalConnectionRequirements `type:"structure"` }

Defines a connection to a data source.

ConnectionProperties

Type: map[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.

  • 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 ConnectionPasswordEncryption in the Data Catalog encryption settings, this field stores the key you designate to encrypt the password.

  • JDBC_DRIVER_JAR_URI - The S3 path of the a jar file that contains the JDBC driver to use.

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

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

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

  • CONFIG_FILES - (Reserved for future use).

  • INSTANCE_ID - The instance ID to use.

  • JDBC_CONNECTION_URL - The URL for the JDBC connection.

  • JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether SSL with hostname matching will be enforced for the JDBC connection on the client. The default is false.

ConnectionType

Type: *string

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

CreationTime

Type: *time.Time

The time this connection definition was created.

Description

Type: *string

Description of the connection.

LastUpdatedBy

Type: *string

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

LastUpdatedTime

Type: *time.Time

The last time this connection definition was updated.

MatchCriteria

Type: []*string

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

Name

Type: *string

The name of the connection definition.

PhysicalConnectionRequirements

Specifies the physical requirements for a connection.

Method

GoString

func (s Connection) GoString() string

GoString returns the string representation

SetConnectionProperties

func (s *Connection) SetConnectionProperties(v map[string]*string) *Connection

SetConnectionProperties sets the ConnectionProperties field's value.

SetConnectionType

func (s *Connection) SetConnectionType(v string) *Connection

SetConnectionType sets the ConnectionType field's value.

SetCreationTime

func (s *Connection) SetCreationTime(v time.Time) *Connection

SetCreationTime sets the CreationTime field's value.

SetDescription

func (s *Connection) SetDescription(v string) *Connection

SetDescription sets the Description field's value.

SetLastUpdatedBy

func (s *Connection) SetLastUpdatedBy(v string) *Connection

SetLastUpdatedBy sets the LastUpdatedBy field's value.

SetLastUpdatedTime

func (s *Connection) SetLastUpdatedTime(v time.Time) *Connection

SetLastUpdatedTime sets the LastUpdatedTime field's value.

SetMatchCriteria

func (s *Connection) SetMatchCriteria(v []*string) *Connection

SetMatchCriteria sets the MatchCriteria field's value.

SetName

func (s *Connection) SetName(v string) *Connection

SetName sets the Name field's value.

SetPhysicalConnectionRequirements

func (s *Connection) SetPhysicalConnectionRequirements(v *PhysicalConnectionRequirements) *Connection

SetPhysicalConnectionRequirements sets the PhysicalConnectionRequirements field's value.

String

func (s Connection) String() string

String returns the string representation

On this page: