Class ScalableTaskCountProps
The properties of a scalable attribute representing task count.
Inheritance
System.Object
ScalableTaskCountProps
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ScalableTaskCountProps : Object, IScalableTaskCountProps, IBaseScalableAttributeProps, IEnableScalingProps
Syntax (vb)
Public Class ScalableTaskCountProps
Inherits Object
Implements IScalableTaskCountProps, IBaseScalableAttributeProps, IEnableScalingProps
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.AWS.ApplicationAutoScaling;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.IAM;
Role role;
var scalableTaskCountProps = new ScalableTaskCountProps {
Dimension = "dimension",
MaxCapacity = 123,
ResourceId = "resourceId",
Role = role,
ServiceNamespace = ServiceNamespace.ECS,
// the properties below are optional
MinCapacity = 123
};
Synopsis
Constructors
ScalableTaskCountProps() |
Properties
Dimension | Scalable dimension of the attribute. |
MaxCapacity | Maximum capacity to scale to. |
MinCapacity | Minimum capacity to scale to. |
ResourceId | Resource ID of the attribute. |
Role | Role to use for scaling. |
ServiceNamespace | Service namespace of the scalable attribute. |
Constructors
ScalableTaskCountProps()
public ScalableTaskCountProps()
Properties
Dimension
Scalable dimension of the attribute.
public string Dimension { get; set; }
Property Value
System.String
MaxCapacity
Maximum capacity to scale to.
public double MaxCapacity { get; set; }
Property Value
System.Double
MinCapacity
Minimum capacity to scale to.
public Nullable<double> MinCapacity { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 1
ResourceId
Resource ID of the attribute.
public string ResourceId { get; set; }
Property Value
System.String
Role
ServiceNamespace
Service namespace of the scalable attribute.
public ServiceNamespace ServiceNamespace { get; set; }
Property Value