Class PortRange
The list of port ranges for the connections from clients to the accelerator.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.GlobalAccelerator
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortRange : IPortRange
Syntax (vb)
Public Class PortRange Implements IPortRange
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.GlobalAccelerator;
var portRange = new PortRange {
FromPort = 123,
// the properties below are optional
ToPort = 123
};
Synopsis
Constructors
PortRange() | The list of port ranges for the connections from clients to the accelerator. |
Properties
FromPort | The first port in the range of ports, inclusive. |
ToPort | The last port in the range of ports, inclusive. |
Constructors
PortRange()
The list of port ranges for the connections from clients to the accelerator.
public PortRange()
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.GlobalAccelerator;
var portRange = new PortRange {
FromPort = 123,
// the properties below are optional
ToPort = 123
};
Properties
FromPort
The first port in the range of ports, inclusive.
public double FromPort { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
ToPort
The last port in the range of ports, inclusive.
public double? ToPort { get; set; }
Property Value
Remarks
Default: - same as fromPort