AWS SDK Version 4 for .NET
API Reference

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

Inheritance Hierarchy

System.Object
  Amazon.GameLift.Model.ContainerPortMapping

Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z

Syntax

C#
public class ContainerPortMapping

The ContainerPortMapping type exposes the following members

Constructors

NameDescription
Public Method ContainerPortMapping()

Properties

NameTypeDescription
Public Property 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.

Public Property 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.

Public Property Protocol Amazon.GameLift.IpProtocol

Gets and sets the property Protocol.

The network protocol for the port mapping. Valid values are TCP or UDP.

Version Information

.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