AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes a mapping between a container port and a connection port on a fleet instance. You define container ports in a container group definition. Amazon GameLift Servers assigns connection ports when it deploys the container group to an instance.
Part of: ContainerGroupPortMapping
Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public class ContainerPortMapping
The ContainerPortMapping type exposes the following members
| Name | Description | |
|---|---|---|
|
ContainerPortMapping() |
| Name | Type | Description | |
|---|---|---|---|
|
ConnectionPort | System.Nullable<System.Int32> |
Gets and sets the property ConnectionPort. The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance. |
|
ContainerPort | System.Nullable<System.Int32> |
Gets and sets the property ContainerPort. The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition. |
|
Protocol | Amazon.GameLift.IpProtocol |
Gets and sets the property Protocol.
The network protocol for the port mapping. Valid values are |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer