Class CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty
Configuration that defines how the capacity provider scales compute instances based on demand and policies.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lambda
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty : CfnCapacityProviderPropsMixin.ICapacityProviderScalingConfigProperty
Syntax (vb)
Public Class CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty Implements CfnCapacityProviderPropsMixin.ICapacityProviderScalingConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Lambda;
var capacityProviderScalingConfigProperty = new CapacityProviderScalingConfigProperty {
MaxVCpuCount = 123,
ScalingMode = "scalingMode",
ScalingPolicies = new [] { new TargetTrackingScalingPolicyProperty {
PredefinedMetricType = "predefinedMetricType",
TargetValue = 123
} }
};
Synopsis
Constructors
| CapacityProviderScalingConfigProperty() | Configuration that defines how the capacity provider scales compute instances based on demand and policies. |
Properties
| MaxVCpuCount | The maximum number of vCPUs that the capacity provider can provision across all compute instances. |
| ScalingMode | The scaling mode that determines how the capacity provider responds to changes in demand. |
| ScalingPolicies | A list of target tracking scaling policies for the capacity provider. |
Constructors
CapacityProviderScalingConfigProperty()
Configuration that defines how the capacity provider scales compute instances based on demand and policies.
public CapacityProviderScalingConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Lambda;
var capacityProviderScalingConfigProperty = new CapacityProviderScalingConfigProperty {
MaxVCpuCount = 123,
ScalingMode = "scalingMode",
ScalingPolicies = new [] { new TargetTrackingScalingPolicyProperty {
PredefinedMetricType = "predefinedMetricType",
TargetValue = 123
} }
};
Properties
MaxVCpuCount
The maximum number of vCPUs that the capacity provider can provision across all compute instances.
public double? MaxVCpuCount { get; set; }
Property Value
Remarks
ScalingMode
The scaling mode that determines how the capacity provider responds to changes in demand.
public string? ScalingMode { get; set; }
Property Value
Remarks
ScalingPolicies
A list of target tracking scaling policies for the capacity provider.
public object? ScalingPolicies { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCapacityProviderPropsMixin.ITargetTrackingScalingPolicyProperty)[]