Interface CfnContainerGroupDefinition.IContainerPortRangeProperty
A set of one or more port numbers that can be opened on the container, and the supported network protocol.
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IContainerPortRangeProperty
Syntax (vb)
Public Interface IContainerPortRangeProperty
Remarks
Part of: ContainerPortConfiguration
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.GameLift;
var containerPortRangeProperty = new ContainerPortRangeProperty {
FromPort = 123,
Protocol = "protocol",
ToPort = 123
};
Synopsis
Properties
FromPort | A starting value for the range of allowed port numbers. |
Protocol | The network protocol that these ports support. |
ToPort | An ending value for the range of allowed port numbers. |
Properties
FromPort
A starting value for the range of allowed port numbers.
double FromPort { get; }
Property Value
System.Double
Remarks
Protocol
The network protocol that these ports support.
string Protocol { get; }
Property Value
System.String
Remarks
ToPort
An ending value for the range of allowed port numbers.
double ToPort { get; }
Property Value
System.Double
Remarks
Port numbers are end-inclusive. This value must be equal to or greater than FromPort
.