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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forConnectionsProps
static final class
An implementation forConnectionsProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionsProps.Builder
builder()
default Port
Default port range for initiating connections to and from this object.default IPeer
getPeer()
Class that represents the rule by which others can connect to this connectable.default List<ISecurityGroup>
What securityGroup(s) this object is managing connections for.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultPort
Default port range for initiating connections to and from this object.Default: - No default port
-
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
What securityGroup(s) this object is managing connections for.Default: No security groups
-
builder
- Returns:
- a
ConnectionsProps.Builder
ofConnectionsProps
-