Amazon.GameLift.AmazonGameLiftClient.UpdateFleetCapacity C# (CSharp) Method

UpdateFleetCapacity() public method

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.

If you're using autoscaling (see PutScalingPolicy), you may want to specify a minimum and/or maximum capacity. If you don't provide these, autoscaling can set capacity anywhere between zero and the service limits.

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.

/// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// The service encountered an unrecoverable internal failure while processing the request. /// Clients can retry such requests immediately or after a waiting period. /// /// The requested operation would cause a conflict with the current state of a resource /// associated with the request and/or the fleet. Resolve the conflict before retrying. /// /// One or more parameter values in the request are invalid. Correct the invalid parameter /// values before retrying. /// /// The requested operation would cause the resource to exceed the allowed service limit. /// Resolve the issue before retrying. /// /// A service resource associated with the request could not be found. Clients should /// not retry such requests. /// /// The client failed authentication. Clients should not retry such requests. ///
public UpdateFleetCapacity ( UpdateFleetCapacityRequest request ) : Amazon.GameLift.Model.UpdateFleetCapacityResponse
request Amazon.GameLift.Model.UpdateFleetCapacityRequest Container for the necessary parameters to execute the UpdateFleetCapacity service method.
return Amazon.GameLift.Model.UpdateFleetCapacityResponse
        public UpdateFleetCapacityResponse UpdateFleetCapacity(UpdateFleetCapacityRequest request)
        {
            var marshaller = new UpdateFleetCapacityRequestMarshaller();
            var unmarshaller = UpdateFleetCapacityResponseUnmarshaller.Instance;

            return Invoke<UpdateFleetCapacityRequest,UpdateFleetCapacityResponse>(request, marshaller, unmarshaller);
        }
AmazonGameLiftClient