PortProps

class aws_cdk.aws_ec2.PortProps(*, protocol, string_representation, from_port=None, to_port=None)

Bases: object

__init__(*, protocol, string_representation, from_port=None, to_port=None)

Properties to create a port range.

Parameters
  • protocol (Protocol) – The protocol for the range.

  • string_representation (str) – String representation for this object.

  • from_port (Union[int, float, None]) – The starting port for the range. Default: - Not included in the rule

  • to_port (Union[int, float, None]) – The ending port for the range. Default: - Not included in the rule

Attributes

from_port

The starting port for the range.

default :default: - Not included in the rule

Return type

Union[int, float, None]

protocol

The protocol for the range.

Return type

Protocol

string_representation

String representation for this object.

Return type

str

to_port

The ending port for the range.

default :default: - Not included in the rule

Return type

Union[int, float, None]