IPeer

class aws_cdk.aws_ec2.IPeer(*args, **kwargs)

Bases: aws_cdk.aws_ec2.IConnectable, typing_extensions.Protocol

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

__init__(*args, **kwargs)

Methods

to_egress_rule_config()

Produce the egress rule JSON for the given connection.

Return type

Any

to_ingress_rule_config()

Produce the ingress rule JSON for the given connection.

Return type

Any

Attributes

can_inline_rule

Whether the rule can be inlined into a SecurityGroup or not.

Return type

bool

connections
Return type

Connections

unique_id

A unique identifier for this connection peer.

Return type

str