Class Connection.Builder

java.lang.Object
software.amazon.awscdk.services.glue.alpha.Connection.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Connection>
Enclosing class:
Connection

@Stability(Deprecated) @Deprecated public static final class Connection.Builder extends Object implements software.amazon.jsii.Builder<Connection>
Deprecated.
(deprecated) A fluent builder for Connection.
  • Method Details

    • create

      @Stability(Deprecated) @Deprecated public static Connection.Builder create(software.constructs.Construct scope, String id)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Connection.Builder.
    • connectionName

      @Stability(Deprecated) @Deprecated public Connection.Builder connectionName(String connectionName)
      Deprecated.
      (deprecated) The name of the connection.

      Default: cloudformation generated name

      Parameters:
      connectionName - The name of the connection. This parameter is required.
      Returns:
      this
    • description

      @Stability(Deprecated) @Deprecated public Connection.Builder description(String description)
      Deprecated.
      (deprecated) The description of the connection.

      Default: no description

      Parameters:
      description - The description of the connection. This parameter is required.
      Returns:
      this
    • matchCriteria

      @Stability(Deprecated) @Deprecated public Connection.Builder matchCriteria(List<String> matchCriteria)
      Deprecated.
      (deprecated) 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
    • network

      @Stability(Deprecated) @Deprecated public Connection.Builder network(ConnectionNetwork network)
      Deprecated.
      (deprecated) 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, or ConnectionNetwork.vpc(vpc, vpcSubnets?) to let the CDK select one.

      Default: - no VPC network placement

      Parameters:
      network - 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. This parameter is required.
      Returns:
      this
    • properties

      @Stability(Deprecated) @Deprecated public Connection.Builder properties(Map<String,String> properties)
      Deprecated.
      (deprecated) 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

      @Stability(Deprecated) @Deprecated public Connection.Builder secret(ISecretRef secret)
      Deprecated.
      (deprecated) A reference to a Secrets Manager secret holding the credentials for this connection.

      The secret is referenced through the connection's SECRET_ID property, so Glue reads the credentials at runtime and the secret value never appears in the synthesized template. Prefer this over placing credentials directly in properties. Accepts any secretsmanager.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(Deprecated) @Deprecated public Connection.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      Deprecated.
      (deprecated) 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
    • type

      @Stability(Deprecated) @Deprecated public Connection.Builder type(ConnectionType type)
      Deprecated.
      (deprecated) The type of the connection.

      Parameters:
      type - The type of the connection. This parameter is required.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public Connection build()
      Deprecated.
      Specified by:
      build in interface software.amazon.jsii.Builder<Connection>
      Returns:
      a newly built instance of Connection.