package awscdkgluealpha import ( _init_ "github.com/aws/aws-cdk-go/awscdkgluealpha/v2/jsii" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // The type of the glue connection. // // If you need to use a connection type that doesn't exist as a static member, you // can instantiate a `ConnectionType` object, e.g: `new ConnectionType('NEW_TYPE')`. // // Example: // var securityGroup securityGroup // var subnet subnet // // glue.NewConnection(this, jsii.String("MyConnection"), &ConnectionProps{ // Type: glue.ConnectionType_NETWORK(), // // The security groups granting AWS Glue inbound access to the data source within the VPC // SecurityGroups: []iSecurityGroup{ // securityGroup, // }, // // The VPC subnet which contains the data source // Subnet: Subnet, // }) // // Experimental. type ConnectionType interface { // The name of this ConnectionType, as expected by Connection resource. // Experimental. Name() *string // The connection type name as expected by Connection resource. // Experimental. ToString() *string } // The jsii proxy struct for ConnectionType type jsiiProxy_ConnectionType struct { _ byte // padding } func (j *jsiiProxy_ConnectionType) Name() *string { var returns *string _jsii_.Get( j, "name", &returns, ) return returns } // Experimental. func NewConnectionType(name *string) ConnectionType { _init_.Initialize() if err := validateNewConnectionTypeParameters(name); err != nil { panic(err) } j := jsiiProxy_ConnectionType{} _jsii_.Create( "@aws-cdk/aws-glue-alpha.ConnectionType", []interface{}{name}, &j, ) return &j } // Experimental. func NewConnectionType_Override(c ConnectionType, name *string) { _init_.Initialize() _jsii_.Create( "@aws-cdk/aws-glue-alpha.ConnectionType", []interface{}{name}, c, ) } func ConnectionType_JDBC() ConnectionType { _init_.Initialize() var returns ConnectionType _jsii_.StaticGet( "@aws-cdk/aws-glue-alpha.ConnectionType", "JDBC", &returns, ) return returns } func ConnectionType_KAFKA() ConnectionType { _init_.Initialize() var returns ConnectionType _jsii_.StaticGet( "@aws-cdk/aws-glue-alpha.ConnectionType", "KAFKA", &returns, ) return returns } func ConnectionType_MONGODB() ConnectionType { _init_.Initialize() var returns ConnectionType _jsii_.StaticGet( "@aws-cdk/aws-glue-alpha.ConnectionType", "MONGODB", &returns, ) return returns } func ConnectionType_NETWORK() ConnectionType { _init_.Initialize() var returns ConnectionType _jsii_.StaticGet( "@aws-cdk/aws-glue-alpha.ConnectionType", "NETWORK", &returns, ) return returns } func (c *jsiiProxy_ConnectionType) ToString() *string { var returns *string _jsii_.Invoke( c, "toString", nil, // no parameters &returns, ) return returns }