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.glue.alpha.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.interfaces.secretsmanager.*;
ISecretRef secretRef;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
ConnectionOptions connectionOptions = ConnectionOptions.builder()
.connectionName("connectionName")
.description("description")
.matchCriteria(List.of("matchCriteria"))
.properties(Map.of(
"propertiesKey", "properties"))
.secret(secretRef)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
.vpc(vpc)
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnets(List.of(subnet))
.subnetType(SubnetType.PRIVATE_ISOLATED)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forConnectionOptionsstatic final classAn implementation forConnectionOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionOptions.Builderbuilder()default String(experimental) The name of the connection.default String(experimental) The description of the connection.(experimental) A list of criteria that can be used in selecting this connection.(experimental) Key-Value pairs that define parameters for the connection.default ISecretRef(experimental) A reference to a Secrets Manager secret holding the credentials for this connection.default List<ISecurityGroup> (experimental) The list of security groups needed to successfully make this connection e.g.default ISubnet(experimental) The VPC subnet to connect to resources within a VPC.default IVpcgetVpc()(experimental) The VPC to connect to resources within.default SubnetSelection(experimental) Which subnets ofvpcto select the connection subnet from.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConnectionName
(experimental) The name of the connection.Default: cloudformation generated name
-
getDescription
(experimental) The description of the connection.Default: no description
-
getMatchCriteria
(experimental) 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
-
getProperties
(experimental) Key-Value pairs that define parameters for the connection.Default: empty properties
- See Also:
-
getSecret
(experimental) 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
(experimental) The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.Default: no security group
-
getSubnet
(experimental) The VPC subnet to connect to resources within a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.Mutually exclusive with
vpc: providesubnetto pin the connection to a specific subnet, or providevpc(optionally withvpcSubnets) to let the CDK select one for you.Default: - no subnet, unless `vpc` is provided
-
getVpc
(experimental) The VPC to connect to resources within.When provided, the CDK selects a subnet from this VPC using
vpcSubnets. A Glue connection targets a single subnet, so the first subnet of the selection is used.Mutually exclusive with
subnet.Default: - no VPC, the subnet is taken from `subnet` if provided
-
getVpcSubnets
(experimental) Which subnets ofvpcto select the connection subnet from.Only used when
vpcis provided. Since a Glue connection targets a single subnet, the first subnet of the selection is used.Default: - private subnets
-
builder
- Returns:
- a
ConnectionOptions.BuilderofConnectionOptions
-