Show / Hide Table of Contents

Interface CfnContainerGroupDefinition.IGameServerContainerDefinitionProperty

Describes the game server container in an existing game server container group.

Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnContainerGroupDefinition.IGameServerContainerDefinitionProperty
Syntax (vb)
Public Interface CfnContainerGroupDefinition.IGameServerContainerDefinitionProperty
Remarks

A game server container identifies a container image with your game server build. A game server container is automatically considered essential; if an essential container fails, the entire container group restarts.

You can update a container definition and deploy the updates to an existing fleet. When creating or updating a game server container group definition, use the property .

Part of: ContainerGroupDefinition

Returned by: DescribeContainerGroupDefinition , ListContainerGroupDefinitions , UpdateContainerGroupDefinition

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html

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 gameServerContainerDefinitionProperty = new GameServerContainerDefinitionProperty {
                 ContainerName = "containerName",
                 ImageUri = "imageUri",
                 ServerSdkVersion = "serverSdkVersion",

                 // the properties below are optional
                 DependsOn = new [] { new ContainerDependencyProperty {
                     Condition = "condition",
                     ContainerName = "containerName"
                 } },
                 EnvironmentOverride = new [] { new ContainerEnvironmentProperty {
                     Name = "name",
                     Value = "value"
                 } },
                 MountPoints = new [] { new ContainerMountPointProperty {
                     InstancePath = "instancePath",

                     // the properties below are optional
                     AccessLevel = "accessLevel",
                     ContainerPath = "containerPath"
                 } },
                 PortConfiguration = new PortConfigurationProperty {
                     ContainerPortRanges = new [] { new ContainerPortRangeProperty {
                         FromPort = 123,
                         Protocol = "protocol",
                         ToPort = 123
                     } }
                 },
                 ResolvedImageDigest = "resolvedImageDigest"
             };

Synopsis

Properties

ContainerName

The container definition identifier.

DependsOn

Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences.

EnvironmentOverride

A set of environment variables that's passed to the container on startup.

ImageUri

The URI to the image that Amazon GameLift Servers uses when deploying this container to a container fleet.

MountPoints

A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.

PortConfiguration

The set of ports that are available to bind to processes in the container.

ResolvedImageDigest

A unique and immutable identifier for the container image.

ServerSdkVersion

The Amazon GameLift Servers server SDK version that the game server is integrated with.

Properties

ContainerName

The container definition identifier.

string ContainerName { get; }
Property Value

string

Remarks

Container names are unique within a container group definition.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-containername

DependsOn

Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences.

object? DependsOn { get; }
Property Value

object

Remarks

A container might have dependencies on multiple containers.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-dependson

Type union: either IResolvable or (either IResolvable or CfnContainerGroupDefinition.IContainerDependencyProperty)[]

EnvironmentOverride

A set of environment variables that's passed to the container on startup.

object? EnvironmentOverride { get; }
Property Value

object

Remarks

See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-environmentoverride

Type union: either IResolvable or (either IResolvable or CfnContainerGroupDefinition.IContainerEnvironmentProperty)[]

ImageUri

The URI to the image that Amazon GameLift Servers uses when deploying this container to a container fleet.

string ImageUri { get; }
Property Value

string

Remarks

For a more specific identifier, see ResolvedImageDigest .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-imageuri

MountPoints

A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.

object? MountPoints { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-mountpoints

Type union: either IResolvable or (either IResolvable or CfnContainerGroupDefinition.IContainerMountPointProperty)[]

PortConfiguration

The set of ports that are available to bind to processes in the container.

object? PortConfiguration { get; }
Property Value

object

Remarks

For example, a game server process requires a container port to allow game clients to connect to it. Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet's ConnectionPortRange .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-portconfiguration

Type union: either IResolvable or CfnContainerGroupDefinition.IPortConfigurationProperty

ResolvedImageDigest

A unique and immutable identifier for the container image.

string? ResolvedImageDigest { get; }
Property Value

string

Remarks

The digest is a SHA 256 hash of the container image manifest.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-resolvedimagedigest

ServerSdkVersion

The Amazon GameLift Servers server SDK version that the game server is integrated with.

string ServerSdkVersion { get; }
Property Value

string

Remarks

Only game servers using 5.2.0 or higher are compatible with container fleets.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-gameservercontainerdefinition.html#cfn-gamelift-containergroupdefinition-gameservercontainerdefinition-serversdkversion

Back to top Generated by DocFX