Skip to content
v2.274.0

BaseScalableAttributeProps Struct ​

Properties for a ScalableTableAttribute.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const baseScalableAttributeProps: appscaling.BaseScalableAttributeProps = {
  dimension: 'dimension',
  maxCapacity: 123,
  resourceId: 'resourceId',
  role: role,
  serviceNamespace: appscaling.ServiceNamespace.ECS,

  // the properties below are optional
  minCapacity: 123,
};

Properties ​

dimensionstringdimensionstrdimensionStringDimensionstringDimension*stringrequired#
Scalable dimension of the attribute.
maxCapacitynumbermax_capacityint | floatmaxCapacityNumberMaxCapacitydoubleMaxCapacity*float64required#
Maximum capacity to scale to.
minCapacitynumbermin_capacityint | floatminCapacityNumberMinCapacitydoubleMinCapacity*float64= 1#
Minimum capacity to scale to.
resourceIdstringresource_idstrresourceIdStringResourceIdstringResourceId*stringrequired#
Resource ID of the attribute.
roleIRoleroleIRoleroleIRoleRoleIRoleRoleIRolerequired#
Role to use for scaling.
serviceNamespaceServiceNamespaceservice_namespaceServiceNamespaceserviceNamespaceServiceNamespaceServiceNamespaceServiceNamespaceServiceNamespaceServiceNamespacerequired#
Service namespace of the scalable attribute.