Constants used for properties of type EC2InstanceType.
Наследование: ConstantClass
Пример #1
0
 /// <summary>
 /// Retrieves the maximum number of instances allowed, per AWS account, for each specified
 /// EC2 instance type. The current usage level for the AWS account is also retrieved.
 /// </summary>
 /// <param name="ec2InstanceType">Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See <a href="https://aws.amazon.com/ec2/instance-types/">Amazon EC2 Instance Types</a> for detailed descriptions of each. Leave this parameter blank to retrieve limits for all types.</param>
 /// 
 /// <returns>The response from the DescribeEC2InstanceLimits service method, as returned by GameLift.</returns>
 /// <exception cref="Amazon.GameLift.Model.InternalServiceException">
 /// The service encountered an unrecoverable internal failure while processing the request.
 /// Such requests can be retried by clients, either immediately or after a back-off period.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.InvalidRequestException">
 /// One or more parameters specified as part of the request are invalid. Please correct
 /// the invalid parameters before retrying.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.UnauthorizedException">
 /// The client failed authentication. Such requests should not be retried without valid
 /// authentication credentials.
 /// </exception>
 public DescribeEC2InstanceLimitsResponse DescribeEC2InstanceLimits(EC2InstanceType ec2InstanceType)
 {
     var request = new DescribeEC2InstanceLimitsRequest();
     request.EC2InstanceType = ec2InstanceType;
     return DescribeEC2InstanceLimits(request);
 }
Пример #2
0
 /// <summary>
 /// Retrieves the following information for the specified EC2 instance type:
 /// 
 ///  <ul> <li> 
 /// <para>
 /// maximum number of instances allowed per AWS account (service limit)
 /// </para>
 ///  </li> <li> 
 /// <para>
 /// current usage level for the AWS account
 /// </para>
 ///  </li> </ul> 
 /// <para>
 /// Service limits vary depending on region. Available regions for GameLift can be found
 /// in the AWS Management Console for GameLift (see the drop-down list in the upper right
 /// corner).
 /// </para>
 /// </summary>
 /// <param name="ec2InstanceType">Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. GameLift supports the following EC2 instance types. See <a href="http://aws.amazon.com/ec2/instance-types/">Amazon EC2 Instance Types</a> for detailed descriptions. Leave this parameter blank to retrieve limits for all types.</param>
 /// <param name="cancellationToken">
 ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// 
 /// <returns>The response from the DescribeEC2InstanceLimits service method, as returned by GameLift.</returns>
 /// <exception cref="Amazon.GameLift.Model.InternalServiceException">
 /// The service encountered an unrecoverable internal failure while processing the request.
 /// Clients can retry such requests immediately or after a waiting period.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.InvalidRequestException">
 /// One or more parameter values in the request are invalid. Correct the invalid parameter
 /// values before retrying.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.UnauthorizedException">
 /// The client failed authentication. Clients should not retry such requests.
 /// </exception>
 public Task<DescribeEC2InstanceLimitsResponse> DescribeEC2InstanceLimitsAsync(EC2InstanceType ec2InstanceType, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new DescribeEC2InstanceLimitsRequest();
     request.EC2InstanceType = ec2InstanceType;
     return DescribeEC2InstanceLimitsAsync(request, cancellationToken);
 }