interface IPeer
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.IPeer |
Java | software.amazon.awscdk.services.ec2.IPeer |
Python | aws_cdk.aws_ec2.IPeer |
TypeScript (source) | @aws-cdk/aws-ec2 » IPeer |
Implemented by
Security
Obtainable from
Peer.anyIpv4(), Peer.anyIpv6(), Peer.ipv4(), Peer.ipv6(), Peer.prefixList(), Peer.securityGroupId(), Endpoint.connectionsPeer()
Interface for classes that provide the peer-specification parts of a security group rule.
Properties
| Name | Type | Description |
|---|---|---|
| can | boolean | Whether the rule can be inlined into a SecurityGroup or not. |
| connections | Connections | The network connections associated with this resource. |
| unique | string | A unique identifier for this connection peer. |
canInlineRule
Type:
boolean
Whether the rule can be inlined into a SecurityGroup or not.
connections
Type:
Connections
The network connections associated with this resource.
uniqueId
Type:
string
A unique identifier for this connection peer.
Methods
| Name | Description |
|---|---|
| to | Produce the egress rule JSON for the given connection. |
| to | Produce the ingress rule JSON for the given connection. |
toEgressRuleConfig()
public toEgressRuleConfig(): any
Returns
any
Produce the egress rule JSON for the given connection.
toIngressRuleConfig()
public toIngressRuleConfig(): any
Returns
any
Produce the ingress rule JSON for the given connection.

.NET
Java
Python
TypeScript (