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