@Generated(value="jsii-pacmak/1.9.0 (build 5c646d5)", date="2020-07-28T21:12:25.965Z") @Stability(value=Stable) 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
A fluent builder for
Connections . |
software.amazon.jsii.JsiiObject.InitializationMode
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)
Add a security group to the list of security groups managed by this object.
|
void |
allowDefaultPortFrom(IConnectable other)
Allow connections from the peer on our default port.
|
void |
allowDefaultPortFrom(IConnectable other,
String description)
Allow connections from the peer on our default port.
|
void |
allowDefaultPortFromAnyIpv4()
Allow default connections from all IPv4 ranges.
|
void |
allowDefaultPortFromAnyIpv4(String description)
Allow default connections from all IPv4 ranges.
|
void |
allowDefaultPortInternally()
Allow hosts inside the security group to connect to each other.
|
void |
allowDefaultPortInternally(String description)
Allow hosts inside the security group to connect to each other.
|
void |
allowDefaultPortTo(IConnectable other)
Allow connections from the peer on our default port.
|
void |
allowDefaultPortTo(IConnectable other,
String description)
Allow connections from the peer on our default port.
|
void |
allowFrom(IConnectable other,
Port portRange)
Allow connections from the peer on the given port.
|
void |
allowFrom(IConnectable other,
Port portRange,
String description)
Allow connections from the peer on the given port.
|
void |
allowFromAnyIpv4(Port portRange)
Allow from any IPv4 ranges.
|
void |
allowFromAnyIpv4(Port portRange,
String description)
Allow from any IPv4 ranges.
|
void |
allowInternally(Port portRange)
Allow hosts inside the security group to connect to each other on the given port.
|
void |
allowInternally(Port portRange,
String description)
Allow hosts inside the security group to connect to each other on the given port.
|
void |
allowTo(IConnectable other,
Port portRange)
Allow connections to the peer on the given port.
|
void |
allowTo(IConnectable other,
Port portRange,
String description)
Allow connections to the peer on the given port.
|
void |
allowToAnyIpv4(Port portRange)
Allow to all IPv4 ranges.
|
void |
allowToAnyIpv4(Port portRange,
String description)
Allow to all IPv4 ranges.
|
void |
allowToDefaultPort(IConnectable other)
Allow connections to the security group on their default port.
|
void |
allowToDefaultPort(IConnectable other,
String description)
Allow connections to the security group on their default port.
|
Connections |
getConnections() |
Port |
getDefaultPort()
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
protected Connections(software.amazon.jsii.JsiiObjectRef objRef)
protected Connections(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public Connections(@Nullable ConnectionsProps props)
props
- @Stability(value=Stable) public Connections()
@Stability(value=Stable) public void addSecurityGroup(@NotNull ISecurityGroup... securityGroups)
securityGroups
- This parameter is required.@Stability(value=Stable) 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=Stable) 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=Stable) public void allowDefaultPortFromAnyIpv4(@Nullable String description)
description
- @Stability(value=Stable) public void allowDefaultPortFromAnyIpv4()
@Stability(value=Stable) public void allowDefaultPortInternally(@Nullable String description)
description
- @Stability(value=Stable) public void allowDefaultPortInternally()
@Stability(value=Stable) 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=Stable) 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=Stable) 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=Stable) public void allowFrom(@NotNull IConnectable other, @NotNull Port portRange)
other
- This parameter is required.portRange
- This parameter is required.@Stability(value=Stable) public void allowFromAnyIpv4(@NotNull Port portRange, @Nullable String description)
portRange
- This parameter is required.description
- @Stability(value=Stable) public void allowFromAnyIpv4(@NotNull Port portRange)
portRange
- This parameter is required.@Stability(value=Stable) public void allowInternally(@NotNull Port portRange, @Nullable String description)
portRange
- This parameter is required.description
- @Stability(value=Stable) public void allowInternally(@NotNull Port portRange)
portRange
- This parameter is required.@Stability(value=Stable) 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=Stable) public void allowTo(@NotNull IConnectable other, @NotNull Port portRange)
other
- This parameter is required.portRange
- This parameter is required.@Stability(value=Stable) public void allowToAnyIpv4(@NotNull Port portRange, @Nullable String description)
portRange
- This parameter is required.description
- @Stability(value=Stable) public void allowToAnyIpv4(@NotNull Port portRange)
portRange
- This parameter is required.@Stability(value=Stable) public void allowToDefaultPort(@NotNull IConnectable other, @Nullable String description)
other
- This parameter is required.description
- @Stability(value=Stable) public void allowToDefaultPort(@NotNull IConnectable other)
other
- This parameter is required.@Stability(value=Stable) @NotNull public Connections getConnections()
getConnections
in interface IConnectable
@Stability(value=Stable) @NotNull public List<ISecurityGroup> getSecurityGroups()
@Stability(value=Stable) @Nullable public Port getDefaultPort()
Copyright © 2020. All rights reserved.