ConnectionsProps

class aws_cdk.aws_ec2.ConnectionsProps(*, default_port=None, peer=None, security_groups=None)

Bases: object

Properties to intialize a new Connections object.

Parameters
  • default_port (Optional[Port]) – Default port range for initiating connections to and from this object. Default: - No default port

  • peer (Optional[IPeer]) – Class that represents the rule by which others can connect to this connectable. This object is required, but will be derived from securityGroup if that is passed. Default: Derived from securityGroup if set.

  • security_groups (Optional[List[ISecurityGroup]]) – What securityGroup(s) this object is managing connections for. Default: No security groups

Attributes

default_port

Default port range for initiating connections to and from this object.

Default
  • No default port

Return type

Optional[Port]

peer

Class that represents the rule by which others can connect to this connectable.

This object is required, but will be derived from securityGroup if that is passed.

Default

Derived from securityGroup if set.

Return type

Optional[IPeer]

security_groups

What securityGroup(s) this object is managing connections for.

Default

No security groups

Return type

Optional[List[ISecurityGroup]]