aws-cdk-lib.aws_ec2.IPeer

interface IPeer

LanguageType name
.NETAmazon.CDK.AWS.EC2.IPeer
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#IPeer
Javasoftware.amazon.awscdk.services.ec2.IPeer
Pythonaws_cdk.aws_ec2.IPeer
TypeScript (source)aws-cdk-lib » aws_ec2 » IPeer

Implemented by SecurityGroup

Obtainable from Peer.anyIpv4(), Peer.anyIpv6(), Peer.ipv4(), Peer.ipv6(), Peer.prefixList(), Peer.securityGroupId(), EndpointGroup.connectionsPeer()

Interface for classes that provide the peer-specification parts of a security group rule.

Properties

NameTypeDescription
canInlineRulebooleanWhether the rule can be inlined into a SecurityGroup or not.
connectionsConnectionsThe network connections associated with this resource.
uniqueIdstringA 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

NameDescription
toEgressRuleConfig()Produce the egress rule JSON for the given connection.
toIngressRuleConfig()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.