Class: Aws::GameLift::Types::GameServerContainerDefinitionInput

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-gamelift/types.rb

Overview

Describes the configuration for a container that runs your game server executable. This definition includes container configuration, resources, and start instructions. Use this data type when creating or updating a game server container group definition. For properties of a deployed container, see [GameServerContainerDefinition]. A game server container is automatically considered essential; if an essential container fails, the entire container group restarts.

Use with: [CreateContainerGroupDefinition],

UpdateContainerGroupDefinition][3

[1]: docs.aws.amazon.com/gamelift/latest/apireference/API_GameServerContainerDefinition.html [2]: docs.aws.amazon.com/gamelift/latest/apireference/API_CreateContainerGroupDefinition.html [3]: docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateContainerGroupDefinition.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#container_nameString

A string that uniquely identifies the container definition within a container group.

Returns:

  • (String)


6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#depends_onArray<Types::ContainerDependency>

Establishes dependencies between this container and the status of other containers in the same container group. A container can have dependencies on multiple different containers.

You can use dependencies to establish a startup/shutdown sequence across the container group. For example, you might specify that ContainerB has a ‘START` dependency on ContainerA. This dependency means that ContainerB can’t start until after ContainerA has started. This dependency is reversed on shutdown, which means that ContainerB must shut down before ContainerA can shut down.

Returns:



6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#environment_overrideArray<Types::ContainerEnvironment>

A set of environment variables to pass to the container on startup. See the [ContainerDefinition::environment] parameter in the *Amazon Elastic Container Service API Reference*.

[1]: docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html#ECS-Type-ContainerDefinition-environment

Returns:



6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#image_uriString

The location of the container image to deploy to a container fleet. Provide an image in an Amazon Elastic Container Registry public or private repository. The repository must be in the same Amazon Web Services account and Amazon Web Services Region where you’re creating the container group definition. For limits on image size, see [Amazon GameLift Servers endpoints and quotas]. You can use any of the following image URI formats:

  • Image ID only: ‘[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]`

  • Image ID and digest: ‘[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]@`

  • Image ID and tag: ‘[AWS account].dkr.ecr.[AWS region].amazonaws.com/[repository ID]:`

[1]: docs.aws.amazon.com/general/latest/gr/gamelift.html

Returns:

  • (String)


6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#mount_pointsArray<Types::ContainerMountPoint>

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.

Returns:



6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#port_configurationTypes::ContainerPortConfiguration

A set of ports that Amazon GameLift Servers can assign to processes in a container. The container port configuration must have enough ports for each container process that accepts inbound traffic connections. For example, a game server process requires a container port to allow game clients to connect to it. A container port configuration can have can have one or more container port ranges. Each range specifies starting and ending values as well as the supported network protocol.

Container ports aren’t directly accessed by inbound traffic. Amazon GameLift Servers maps each container port to an externally accessible connection port (see the container fleet property ‘ConnectionPortRange`).



6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end

#server_sdk_versionString

The Amazon GameLift Servers server SDK version that the game server is integrated with. Only game servers using 5.2.0 or higher are compatible with container fleets.

Returns:

  • (String)


6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
# File 'lib/aws-sdk-gamelift/types.rb', line 6267

class GameServerContainerDefinitionInput < Struct.new(
  :container_name,
  :depends_on,
  :mount_points,
  :environment_override,
  :image_uri,
  :port_configuration,
  :server_sdk_version)
  SENSITIVE = []
  include Aws::Structure
end