Class PortProps
Properties to create a port range.
Inheritance
System.Object
PortProps
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortProps : Object, IPortProps
Syntax (vb)
Public Class PortProps
Inherits Object
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
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()
public PortProps()
Properties
FromPort
The starting port for the range.
public Nullable<double> FromPort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - Not included in the rule
Protocol
StringRepresentation
String representation for this object.
public string StringRepresentation { get; set; }
Property Value
System.String
ToPort
The ending port for the range.
public Nullable<double> ToPort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - Not included in the rule