Interface ConnectionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ConnectionProps
- All Known Implementing Classes:
ConnectionOptions.Jsii$Proxy,ConnectionProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.glue.*;
import software.amazon.awscdk.interfaces.secretsmanager.*;
ConnectionNetwork connectionNetwork;
ISecretRef secretRef;
SecurityGroup securityGroup;
ConnectionOptions connectionOptions = ConnectionOptions.builder()
.connectionName("connectionName")
.description("description")
.matchCriteria(List.of("matchCriteria"))
.network(connectionNetwork)
.properties(Map.of(
"propertiesKey", "properties"))
.secret(secretRef)
.securityGroups(List.of(securityGroup))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forConnectionOptionsstatic final classAn implementation forConnectionOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionOptions.Builderbuilder()default StringThe name of the connection.default StringThe description of the connection.A list of criteria that can be used in selecting this connection.default ConnectionNetworkThe VPC network placement for this connection, so it can reach resources inside a VPC.Key-Value pairs that define parameters for the connection.default ISecretRefA reference to a Secrets Manager secret holding the credentials for this connection.default List<ISecurityGroup> The list of security groups needed to successfully make this connection e.g.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConnectionName
The name of the connection.Default: cloudformation generated name
-
getDescription
The description of the connection.Default: no description
-
getMatchCriteria
A list of criteria that can be used in selecting this connection.This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html
Default: no match criteria
-
getNetwork
The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.Build it with
ConnectionNetwork.subnet(subnet)to pin a specific subnet, orConnectionNetwork.vpc(vpc, vpcSubnets?)to let the CDK select one.Default: - no VPC network placement
-
getProperties
Key-Value pairs that define parameters for the connection.Default: empty properties
- See Also:
-
getSecret
A reference to a Secrets Manager secret holding the credentials for this connection.The secret is referenced through the connection's
SECRET_IDproperty, so Glue reads the credentials at runtime and the secret value never appears in the synthesized template. Prefer this over placing credentials directly inproperties. Accepts anysecretsmanager.ISecret.Default: - no secret; any credentials must be supplied via `properties`
-
getSecurityGroups
The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.Default: no security group
-
builder
- Returns:
- a
ConnectionOptions.BuilderofConnectionOptions
-