Interface ICfnContainerFleetProps
Properties for defining a CfnContainerFleet
.
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnContainerFleetProps
Syntax (vb)
Public Interface ICfnContainerFleetProps
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 cfnContainerFleetProps = new CfnContainerFleetProps {
FleetRoleArn = "fleetRoleArn",
// the properties below are optional
BillingType = "billingType",
DeploymentConfiguration = new DeploymentConfigurationProperty {
ImpairmentStrategy = "impairmentStrategy",
MinimumHealthyPercentage = 123,
ProtectionStrategy = "protectionStrategy"
},
Description = "description",
GameServerContainerGroupDefinitionName = "gameServerContainerGroupDefinitionName",
GameServerContainerGroupsPerInstance = 123,
GameSessionCreationLimitPolicy = new GameSessionCreationLimitPolicyProperty {
NewGameSessionsPerCreator = 123,
PolicyPeriodInMinutes = 123
},
InstanceConnectionPortRange = new ConnectionPortRangeProperty {
FromPort = 123,
ToPort = 123
},
InstanceInboundPermissions = new [] { new IpPermissionProperty {
FromPort = 123,
IpRange = "ipRange",
Protocol = "protocol",
ToPort = 123
} },
InstanceType = "instanceType",
Locations = new [] { new LocationConfigurationProperty {
Location = "location",
// the properties below are optional
LocationCapacity = new LocationCapacityProperty {
DesiredEc2Instances = 123,
MaxSize = 123,
MinSize = 123
},
StoppedActions = new [] { "stoppedActions" }
} },
LogConfiguration = new LogConfigurationProperty {
LogDestination = "logDestination",
S3BucketName = "s3BucketName"
},
MetricGroups = new [] { "metricGroups" },
NewGameSessionProtectionPolicy = "newGameSessionProtectionPolicy",
PerInstanceContainerGroupDefinitionName = "perInstanceContainerGroupDefinitionName",
ScalingPolicies = new [] { new ScalingPolicyProperty {
MetricName = "metricName",
Name = "name",
// the properties below are optional
ComparisonOperator = "comparisonOperator",
EvaluationPeriods = 123,
PolicyType = "policyType",
ScalingAdjustment = 123,
ScalingAdjustmentType = "scalingAdjustmentType",
TargetConfiguration = new TargetConfigurationProperty {
TargetValue = 123
},
Threshold = 123
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
BillingType | Indicates whether the fleet uses On-Demand or Spot instances for this fleet. |
DeploymentConfiguration | Set of rules for processing a deployment for a container fleet update. |
Description | A meaningful description of the container fleet. |
FleetRoleArn | The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift. |
GameServerContainerGroupDefinitionName | The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance. |
GameServerContainerGroupsPerInstance | The number of times to replicate the game server container group on each fleet instance. |
GameSessionCreationLimitPolicy | A policy that limits the number of game sessions that each individual player can create on instances in this fleet. |
InstanceConnectionPortRange | The set of port numbers to open on each instance in a container fleet. |
InstanceInboundPermissions | The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. |
InstanceType | The Amazon EC2 instance type to use for all instances in the fleet. |
Locations | |
LogConfiguration | The method that is used to collect container logs for the fleet. |
MetricGroups | The name of an AWS CloudWatch metric group to add this fleet to. |
NewGameSessionProtectionPolicy | Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players. |
PerInstanceContainerGroupDefinitionName | The name of the fleet's per-instance container group definition. |
ScalingPolicies | A list of rules that control how a fleet is scaled. |
Tags | An array of key-value pairs to apply to this resource. |
Properties
BillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet.
virtual string BillingType { get; }
Property Value
System.String
Remarks
Learn more about when to use On-Demand versus Spot Instances . You can't update this fleet property.
By default, this property is set to ON_DEMAND
.
DeploymentConfiguration
Set of rules for processing a deployment for a container fleet update.
virtual object DeploymentConfiguration { get; }
Property Value
System.Object
Remarks
Description
A meaningful description of the container fleet.
virtual string Description { get; }
Property Value
System.String
Remarks
FleetRoleArn
The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift.
string FleetRoleArn { get; }
Property Value
System.String
Remarks
See Set up an IAM service role . This fleet property can't be changed.
GameServerContainerGroupDefinitionName
The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.
virtual string GameServerContainerGroupDefinitionName { get; }
Property Value
System.String
Remarks
GameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance.
virtual Nullable<double> GameServerContainerGroupsPerInstance { get; }
Property Value
System.Nullable<System.Double>
Remarks
GameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet.
virtual object GameSessionCreationLimitPolicy { get; }
Property Value
System.Object
Remarks
The limit applies for a specified span of time.
InstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet.
virtual object InstanceConnectionPortRange { get; }
Property Value
System.Object
Remarks
Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.
InstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
virtual object InstanceInboundPermissions { get; }
Property Value
System.Object
Remarks
InstanceType
The Amazon EC2 instance type to use for all instances in the fleet.
virtual string InstanceType { get; }
Property Value
System.String
Remarks
Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.
Locations
virtual object Locations { get; }
Property Value
System.Object
Remarks
LogConfiguration
The method that is used to collect container logs for the fleet.
virtual object LogConfiguration { get; }
Property Value
System.Object
Remarks
Amazon GameLift saves all standard output for each container in logs, including game session logs.
MetricGroups
The name of an AWS CloudWatch metric group to add this fleet to.
virtual string[] MetricGroups { get; }
Property Value
System.String[]
Remarks
Metric groups aggregate metrics for multiple fleets.
NewGameSessionProtectionPolicy
Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players.
virtual string NewGameSessionProtectionPolicy { get; }
Property Value
System.String
Remarks
Amazon GameLift might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession .
PerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition.
virtual string PerInstanceContainerGroupDefinitionName { get; }
Property Value
System.String
Remarks
ScalingPolicies
A list of rules that control how a fleet is scaled.
virtual object ScalingPolicies { get; }
Property Value
System.Object
Remarks
Tags
An array of key-value pairs to apply to this resource.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]