Class PortProps
Properties to create a port range.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortProps : IPortProps
Syntax (vb)
Public Class PortProps Implements IPortProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var portProps = new PortProps {
Protocol = Protocol.ALL,
StringRepresentation = "stringRepresentation",
// the properties below are optional
FromPort = 123,
ToPort = 123
};
Synopsis
Constructors
| PortProps() | Properties to create a port range. |
Properties
| FromPort | The starting port for the range. |
| Protocol | The protocol for the range. |
| StringRepresentation | String representation for this object. |
| ToPort | The ending port for the range. |
Constructors
PortProps()
Properties to create a port range.
public PortProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var portProps = new PortProps {
Protocol = Protocol.ALL,
StringRepresentation = "stringRepresentation",
// the properties below are optional
FromPort = 123,
ToPort = 123
};
Properties
FromPort
The starting port for the range.
public double? FromPort { get; set; }
Property Value
Remarks
Default: - Not included in the rule
Protocol
The protocol for the range.
public Protocol Protocol { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
StringRepresentation
String representation for this object.
public string StringRepresentation { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
ToPort
The ending port for the range.
public double? ToPort { get; set; }
Property Value
Remarks
Default: - Not included in the rule