Class Connection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Connection>
- Enclosing class:
Connection
Connection.-
Method Summary
Modifier and TypeMethodDescriptionbuild()connectionName(String connectionName) (experimental) The name of the connection.static Connection.Builderdescription(String description) (experimental) The description of the connection.matchCriteria(List<String> matchCriteria) (experimental) A list of criteria that can be used in selecting this connection.properties(Map<String, String> properties) (experimental) Key-Value pairs that define parameters for the connection.secret(ISecretRef secret) (experimental) A reference to a Secrets Manager secret holding the credentials for this connection.securityGroups(List<? extends ISecurityGroup> securityGroups) (experimental) The list of security groups needed to successfully make this connection e.g.(experimental) The VPC subnet to connect to resources within a VPC.type(ConnectionType type) (experimental) The type of the connection.(experimental) The VPC to connect to resources within.vpcSubnets(SubnetSelection vpcSubnets) (experimental) Which subnets ofvpcto select the connection subnet from.
-
Method Details
-
create
@Stability(Experimental) public static Connection.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
Connection.Builder.
-
connectionName
(experimental) The name of the connection.Default: cloudformation generated name
- Parameters:
connectionName- The name of the connection. This parameter is required.- Returns:
this
-
description
(experimental) The description of the connection.Default: no description
- Parameters:
description- The description of the connection. This parameter is required.- Returns:
this
-
matchCriteria
(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
- Parameters:
matchCriteria- A list of criteria that can be used in selecting this connection. This parameter is required.- Returns:
this
-
properties
(experimental) Key-Value pairs that define parameters for the connection.Default: empty properties
- Parameters:
properties- Key-Value pairs that define parameters for the connection. This parameter is required.- Returns:
this- See Also:
-
secret
(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`
- Parameters:
secret- A reference to a Secrets Manager secret holding the credentials for this connection. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public Connection.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) (experimental) The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.Default: no security group
- Parameters:
securityGroups- The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC. This parameter is required.- Returns:
this
-
subnet
(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
- Parameters:
subnet- The VPC subnet to connect to resources within a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html. This parameter is required.- Returns:
this
-
vpc
(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
- Parameters:
vpc- The VPC to connect to resources within. This parameter is required.- Returns:
this
-
vpcSubnets
(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
- Parameters:
vpcSubnets- Which subnets ofvpcto select the connection subnet from. This parameter is required.- Returns:
this
-
type
(experimental) The type of the connection.- Parameters:
type- The type of the connection. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Connection>- Returns:
- a newly built instance of
Connection.
-