Class ConnectionProps.Builder

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

@Stability(Experimental) public static final class ConnectionProps.Builder extends Object implements software.amazon.jsii.Builder<ConnectionProps>
A builder for ConnectionProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      @Stability(Experimental) public ConnectionProps.Builder type(ConnectionType type)
      Sets the value of ConnectionProps.getType()
      Parameters:
      type - The type of the connection. This parameter is required.
      Returns:
      this
    • connectionName

      @Stability(Experimental) public ConnectionProps.Builder connectionName(String connectionName)
      Parameters:
      connectionName - The name of the connection.
      Returns:
      this
    • description

      @Stability(Experimental) public ConnectionProps.Builder description(String description)
      Parameters:
      description - The description of the connection.
      Returns:
      this
    • matchCriteria

      @Stability(Experimental) public ConnectionProps.Builder matchCriteria(List<String> matchCriteria)
      Parameters:
      matchCriteria - 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
      Returns:
      this
    • network

      @Stability(Experimental) public ConnectionProps.Builder network(ConnectionNetwork network)
      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. Build it with ConnectionNetwork.subnet(subnet) to pin a specific subnet, or ConnectionNetwork.vpc(vpc, vpcSubnets?) to let the CDK select one.
      Returns:
      this
    • properties

      @Stability(Experimental) public ConnectionProps.Builder properties(Map<String,String> properties)
      Parameters:
      properties - Key-Value pairs that define parameters for the connection.
      Returns:
      this
    • secret

      @Stability(Experimental) public ConnectionProps.Builder secret(ISecretRef secret)
      Parameters:
      secret - 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.
      Returns:
      this
    • securityGroups

      @Stability(Experimental) public ConnectionProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      Parameters:
      securityGroups - The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.
      Returns:
      this
    • build

      @Stability(Experimental) public ConnectionProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ConnectionProps>
      Returns:
      a new instance of ConnectionProps
      Throws:
      NullPointerException - if any required attribute was not provided