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.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class UpdateCapacityProviderRequest : AmazonECSRequest IAmazonWebServiceRequest
The UpdateCapacityProviderRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
UpdateCapacityProviderRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
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. |
![]() |
Name | System.String |
Gets and sets the property Name. The name of the capacity provider to update. |
This example updates the targetCapacity and instanceWarmupPeriod parameters for the capacity provider MyCapacityProvider to 90 and 150 respectively.
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;
.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