@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.108Z") @Stability(value=Experimental) public class Peer extends software.amazon.jsii.JsiiObject
The static methods on this object can be used to create peer objects which represent a connection partner in Security Group rules.
Use this object if you need to represent connection partners using plain IP addresses, or a prefix list ID.
If you want to address a connection partner by Security Group, you can just
use the Security Group (or the construct that contains a Security Group)
directly, as it already implements IPeer.
| Modifier | Constructor and Description |
|---|---|
|
Peer() |
protected |
Peer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Peer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IPeer |
anyIpv4()
(experimental) Any IPv4 address.
|
static IPeer |
anyIpv6()
(experimental) Any IPv6 address.
|
static IPeer |
ipv4(String cidrIp)
(experimental) Create an IPv4 peer from a CIDR.
|
static IPeer |
ipv6(String cidrIp)
(experimental) Create an IPv6 peer from a CIDR.
|
static IPeer |
prefixList(String prefixListId)
(experimental) A prefix list.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Peer(software.amazon.jsii.JsiiObjectRef objRef)
protected Peer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public Peer()
@Stability(value=Experimental) @NotNull public static IPeer anyIpv4()
@Stability(value=Experimental) @NotNull public static IPeer anyIpv6()
@Stability(value=Experimental) @NotNull public static IPeer ipv4(@NotNull String cidrIp)
cidrIp - This parameter is required.@Stability(value=Experimental) @NotNull public static IPeer ipv6(@NotNull String cidrIp)
cidrIp - This parameter is required.Copyright © 2021. All rights reserved.