ScalableInstanceCountProps

class aws_cdk.aws_sagemaker_alpha.ScalableInstanceCountProps(*, max_capacity, min_capacity=None, dimension, resource_id, role, service_namespace)

Bases: BaseScalableAttributeProps

(experimental) The properties of a scalable attribute representing task count.

Parameters:
  • max_capacity (Union[int, float]) – Maximum capacity to scale to.

  • min_capacity (Union[int, float, None]) – Minimum capacity to scale to. Default: 1

  • dimension (str) – Scalable dimension of the attribute.

  • resource_id (str) – Resource ID of the attribute.

  • role (IRole) – Role to use for scaling.

  • service_namespace (ServiceNamespace) – Service namespace of the scalable attribute.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sagemaker_alpha as sagemaker_alpha
from aws_cdk import aws_applicationautoscaling as appscaling
from aws_cdk import aws_iam as iam

# role: iam.Role

scalable_instance_count_props = sagemaker_alpha.ScalableInstanceCountProps(
    dimension="dimension",
    max_capacity=123,
    resource_id="resourceId",
    role=role,
    service_namespace=appscaling.ServiceNamespace.ECS,

    # the properties below are optional
    min_capacity=123
)

Attributes

dimension

Scalable dimension of the attribute.

max_capacity

Maximum capacity to scale to.

min_capacity

Minimum capacity to scale to.

Default:

1

resource_id

Resource ID of the attribute.

role

Role to use for scaling.

service_namespace

Service namespace of the scalable attribute.