Class CfnContainerGroupDefinitionProps
Properties for defining a CfnContainerGroupDefinition
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainerGroupDefinitionProps : Object, ICfnContainerGroupDefinitionProps
Syntax (vb)
Public Class CfnContainerGroupDefinitionProps
Inherits Object
Implements ICfnContainerGroupDefinitionProps
Remarks
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 cfnContainerGroupDefinitionProps = new CfnContainerGroupDefinitionProps {
Name = "name",
OperatingSystem = "operatingSystem",
TotalMemoryLimitMebibytes = 123,
TotalVcpuLimit = 123,
// the properties below are optional
ContainerGroupType = "containerGroupType",
GameServerContainerDefinition = 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"
},
SourceVersionNumber = 123,
SupportContainerDefinitions = new [] { new SupportContainerDefinitionProperty {
ContainerName = "containerName",
ImageUri = "imageUri",
// the properties below are optional
DependsOn = new [] { new ContainerDependencyProperty {
Condition = "condition",
ContainerName = "containerName"
} },
EnvironmentOverride = new [] { new ContainerEnvironmentProperty {
Name = "name",
Value = "value"
} },
Essential = false,
HealthCheck = new ContainerHealthCheckProperty {
Command = new [] { "command" },
// the properties below are optional
Interval = 123,
Retries = 123,
StartPeriod = 123,
Timeout = 123
},
MemoryHardLimitMebibytes = 123,
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",
Vcpu = 123
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VersionDescription = "versionDescription"
};
Synopsis
Constructors
CfnContainerGroupDefinitionProps() |
Properties
ContainerGroupType | The type of container group. |
GameServerContainerDefinition | The definition for the game server container in this group. |
Name | A descriptive identifier for the container group definition. |
OperatingSystem | The platform that all containers in the container group definition run on. |
SourceVersionNumber | A specific ContainerGroupDefinition version to be updated. |
SupportContainerDefinitions | The set of definitions for support containers in this group. |
Tags | An array of key-value pairs to apply to this resource. |
TotalMemoryLimitMebibytes | The amount of memory (in MiB) on a fleet instance to allocate for the container group. |
TotalVcpuLimit | The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units). |
VersionDescription | An optional description that was provided for a container group definition update. |
Constructors
CfnContainerGroupDefinitionProps()
public CfnContainerGroupDefinitionProps()
Properties
ContainerGroupType
The type of container group.
public string ContainerGroupType { get; set; }
Property Value
System.String
Remarks
Container group type determines how Amazon GameLift deploys the container group on each fleet instance.
GameServerContainerDefinition
The definition for the game server container in this group.
public object GameServerContainerDefinition { get; set; }
Property Value
System.Object
Remarks
This property is used only when the container group type is GAME_SERVER
. This container definition specifies a container image with the game server build.
Name
A descriptive identifier for the container group definition.
public string Name { get; set; }
Property Value
System.String
Remarks
The name value is unique in an AWS Region.
OperatingSystem
The platform that all containers in the container group definition run on.
public string OperatingSystem { get; set; }
Property Value
System.String
Remarks
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs . For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.
SourceVersionNumber
A specific ContainerGroupDefinition version to be updated.
public Nullable<double> SourceVersionNumber { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
SupportContainerDefinitions
The set of definitions for support containers in this group.
public object SupportContainerDefinitions { get; set; }
Property Value
System.Object
Remarks
A container group definition might have zero support container definitions. Support container can be used in any type of container group.
Tags
An array of key-value pairs to apply to this resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
TotalMemoryLimitMebibytes
The amount of memory (in MiB) on a fleet instance to allocate for the container group.
public double TotalMemoryLimitMebibytes { get; set; }
Property Value
System.Double
Remarks
All containers in the group share these resources.
You can set a limit for each container definition in the group. If individual containers have limits, this total value must be greater than any individual container's memory limit.
TotalVcpuLimit
The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units).
public double TotalVcpuLimit { get; set; }
Property Value
System.Double
Remarks
All containers in the group share these resources. You can set a limit for each container definition in the group. If individual containers have limits, this total value must be equal to or greater than the sum of the limits for each container in the group.
VersionDescription
An optional description that was provided for a container group definition update.
public string VersionDescription { get; set; }
Property Value
System.String
Remarks
Each version can have a unique description.