AWS SDK Version 3 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.

Container for the parameters to the UpdateFleetCapacity operation. Updates capacity settings for a fleet. Use this action to specify the number of EC2 instances (hosts) that you want this fleet to contain. Before calling this action, you may want to call DescribeEC2InstanceLimits to get the maximum capacity based on the fleet's EC2 instance type.

Specify minimum and maximum number of instances. Amazon GameLift will not change fleet capacity to values fall outside of this range. This is particularly important when using auto-scaling (see PutScalingPolicy) to allow capacity to adjust based on player demand while imposing limits on automatic adjustments.

To update fleet capacity, specify the fleet ID and the number of instances you want the fleet to host. If successful, Amazon GameLift starts or terminates instances so that the fleet's active instance count matches the desired instance count. You can view a fleet's current capacity information by calling DescribeFleetCapacity. If the desired instance count is higher than the instance type's limit, the "Limit Exceeded" exception occurs.

Fleet-related operations include:

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.GameLift.AmazonGameLiftRequest
      Amazon.GameLift.Model.UpdateFleetCapacityRequest

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

Syntax

C#
public class UpdateFleetCapacityRequest : AmazonGameLiftRequest
         IAmazonWebServiceRequest

The UpdateFleetCapacityRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DesiredInstances System.Int32

Gets and sets the property DesiredInstances.

Number of EC2 instances you want this fleet to host.

Public Property FleetId System.String

Gets and sets the property FleetId.

Unique identifier for a fleet to update capacity for.

Public Property MaxSize System.Int32

Gets and sets the property MaxSize.

Maximum value allowed for the fleet's instance count. Default if not set is 1.

Public Property MinSize System.Int32

Gets and sets the property MinSize.

Minimum value allowed for the fleet's instance count. Default if not set is 0.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms