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 UpdateCapacityProvider operation. Modifies the parameters for a capacity provider.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ECS.AmazonECSRequest
      Amazon.ECS.Model.UpdateCapacityProviderRequest

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

Syntax

C#
public class UpdateCapacityProviderRequest : AmazonECSRequest
         IAmazonWebServiceRequest

The UpdateCapacityProviderRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AutoScalingGroupProvider Amazon.ECS.Model.AutoScalingGroupProviderUpdate

Gets and sets the property AutoScalingGroupProvider.

An object that represent the parameters to update for the Auto Scaling group capacity provider.

Public Property Name System.String

Gets and sets the property Name.

The name of the capacity provider to update.

Examples

This example updates the targetCapacity and instanceWarmupPeriod parameters for the capacity provider MyCapacityProvider to 90 and 150 respectively.

To update a capacity provider's parameters


var client = new AmazonECSClient();
var response = client.UpdateCapacityProvider(new UpdateCapacityProviderRequest 
{
    Name = "MyCapacityProvider",
    AutoScalingGroupProvider = new AutoScalingGroupProviderUpdate { ManagedScaling = new ManagedScaling {
        InstanceWarmupPeriod = 150,
        Status = "ENABLED",
        TargetCapacity = 90
    } }
});

CapacityProvider capacityProvider = response.CapacityProvider;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5