Interface ConnectionsProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ConnectionsProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.299Z") @Stability(Stable) public interface ConnectionsProps extends software.amazon.jsii.JsiiSerializable
Properties to intialize a new Connections object.

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.*;
 IPeer peer;
 Port port;
 SecurityGroup securityGroup;
 ConnectionsProps connectionsProps = ConnectionsProps.builder()
         .defaultPort(port)
         .peer(peer)
         .securityGroups(List.of(securityGroup))
         .build();
 
  • Method Details

    • getDefaultPort

      @Stability(Stable) @Nullable default Port getDefaultPort()
      Default port range for initiating connections to and from this object.

      Default: - No default port

    • getPeer

      @Stability(Stable) @Nullable default IPeer getPeer()
      Class that represents the rule by which others can connect to this connectable.

      This object is required, but will be derived from securityGroup if that is passed.

      Default: Derived from securityGroup if set.

    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      What securityGroup(s) this object is managing connections for.

      Default: No security groups

    • builder

      @Stability(Stable) static ConnectionsProps.Builder builder()
      Returns:
      a ConnectionsProps.Builder of ConnectionsProps