@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.050Z") @Stability(value=Experimental) public class Connections extends software.amazon.jsii.JsiiObject implements IConnectable
Security Groups can be thought of as a firewall for network-connected devices. This class makes it easy to allow network connections to and from security groups, and between security groups individually. When establishing connectivity between security groups, it will automatically add rules in both security groups
This object can manage one or more security groups.
| Modifier and Type | Class and Description |
|---|---|
static class |
Connections.Builder
(experimental) A fluent builder for
Connections. |
software.amazon.jsii.JsiiObject.InitializationModeIConnectable.Jsii$Default, IConnectable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Connections() |
|
Connections(ConnectionsProps props) |
protected |
Connections(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Connections(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityGroup(ISecurityGroup... securityGroups)
(experimental) Add a security group to the list of security groups managed by this object.
|
void |
allowDefaultPortFrom(IConnectable other)
(experimental) Allow connections from the peer on our default port.
|
void |
allowDefaultPortFrom(IConnectable other,
String description)
(experimental) Allow connections from the peer on our default port.
|
void |
allowDefaultPortFromAnyIpv4()
(experimental) Allow default connections from all IPv4 ranges.
|
void |
allowDefaultPortFromAnyIpv4(String description)
(experimental) Allow default connections from all IPv4 ranges.
|
void |
allowDefaultPortInternally()
(experimental) Allow hosts inside the security group to connect to each other.
|
void |
allowDefaultPortInternally(String description)
(experimental) Allow hosts inside the security group to connect to each other.
|
void |
allowDefaultPortTo(IConnectable other)
(experimental) Allow connections from the peer on our default port.
|
void |
allowDefaultPortTo(IConnectable other,
String description)
(experimental) Allow connections from the peer on our default port.
|
void |
allowFrom(IConnectable other,
Port portRange)
(experimental) Allow connections from the peer on the given port.
|
void |
allowFrom(IConnectable other,
Port portRange,
String description)
(experimental) Allow connections from the peer on the given port.
|
void |
allowFromAnyIpv4(Port portRange)
(experimental) Allow from any IPv4 ranges.
|
void |
allowFromAnyIpv4(Port portRange,
String description)
(experimental) Allow from any IPv4 ranges.
|
void |
allowInternally(Port portRange)
(experimental) Allow hosts inside the security group to connect to each other on the given port.
|
void |
allowInternally(Port portRange,
String description)
(experimental) Allow hosts inside the security group to connect to each other on the given port.
|
void |
allowTo(IConnectable other,
Port portRange)
(experimental) Allow connections to the peer on the given port.
|
void |
allowTo(IConnectable other,
Port portRange,
String description)
(experimental) Allow connections to the peer on the given port.
|
void |
allowToAnyIpv4(Port portRange)
(experimental) Allow to all IPv4 ranges.
|
void |
allowToAnyIpv4(Port portRange,
String description)
(experimental) Allow to all IPv4 ranges.
|
void |
allowToDefaultPort(IConnectable other)
(experimental) Allow connections to the security group on their default port.
|
void |
allowToDefaultPort(IConnectable other,
String description)
(experimental) Allow connections to the security group on their default port.
|
Connections |
getConnections() |
Port |
getDefaultPort()
(experimental) The default port configured for this connection peer, if available.
|
List<ISecurityGroup> |
getSecurityGroups() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Connections(software.amazon.jsii.JsiiObjectRef objRef)
protected Connections(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Connections(@Nullable
ConnectionsProps props)
props - @Stability(value=Experimental) public Connections()
@Stability(value=Experimental)
public void addSecurityGroup(@NotNull
ISecurityGroup... securityGroups)
securityGroups - This parameter is required.@Stability(value=Experimental)
public void allowDefaultPortFrom(@NotNull
IConnectable other,
@Nullable
String description)
Even if the peer has a default port, we will always use our default port.
other - This parameter is required.description - @Stability(value=Experimental)
public void allowDefaultPortFrom(@NotNull
IConnectable other)
Even if the peer has a default port, we will always use our default port.
other - This parameter is required.@Stability(value=Experimental)
public void allowDefaultPortFromAnyIpv4(@Nullable
String description)
description - @Stability(value=Experimental) public void allowDefaultPortFromAnyIpv4()
@Stability(value=Experimental)
public void allowDefaultPortInternally(@Nullable
String description)
description - @Stability(value=Experimental) public void allowDefaultPortInternally()
@Stability(value=Experimental)
public void allowDefaultPortTo(@NotNull
IConnectable other,
@Nullable
String description)
Even if the peer has a default port, we will always use our default port.
other - This parameter is required.description - @Stability(value=Experimental)
public void allowDefaultPortTo(@NotNull
IConnectable other)
Even if the peer has a default port, we will always use our default port.
other - This parameter is required.@Stability(value=Experimental)
public void allowFrom(@NotNull
IConnectable other,
@NotNull
Port portRange,
@Nullable
String description)
other - This parameter is required.portRange - This parameter is required.description - @Stability(value=Experimental)
public void allowFrom(@NotNull
IConnectable other,
@NotNull
Port portRange)
other - This parameter is required.portRange - This parameter is required.@Stability(value=Experimental)
public void allowFromAnyIpv4(@NotNull
Port portRange,
@Nullable
String description)
portRange - This parameter is required.description - @Stability(value=Experimental)
public void allowFromAnyIpv4(@NotNull
Port portRange)
portRange - This parameter is required.@Stability(value=Experimental)
public void allowInternally(@NotNull
Port portRange,
@Nullable
String description)
portRange - This parameter is required.description - @Stability(value=Experimental)
public void allowInternally(@NotNull
Port portRange)
portRange - This parameter is required.@Stability(value=Experimental)
public void allowTo(@NotNull
IConnectable other,
@NotNull
Port portRange,
@Nullable
String description)
other - This parameter is required.portRange - This parameter is required.description - @Stability(value=Experimental)
public void allowTo(@NotNull
IConnectable other,
@NotNull
Port portRange)
other - This parameter is required.portRange - This parameter is required.@Stability(value=Experimental)
public void allowToAnyIpv4(@NotNull
Port portRange,
@Nullable
String description)
portRange - This parameter is required.description - @Stability(value=Experimental)
public void allowToAnyIpv4(@NotNull
Port portRange)
portRange - This parameter is required.@Stability(value=Experimental)
public void allowToDefaultPort(@NotNull
IConnectable other,
@Nullable
String description)
other - This parameter is required.description - @Stability(value=Experimental)
public void allowToDefaultPort(@NotNull
IConnectable other)
other - This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public List<ISecurityGroup> getSecurityGroups()
@Stability(value=Experimental) @Nullable public Port getDefaultPort()
Copyright © 2021. All rights reserved.