toScalableDimension method
Implementation
ScalableDimension toScalableDimension() {
switch (this) {
case 'ecs:service:DesiredCount':
return ScalableDimension.ecsServiceDesiredCount;
case 'ec2:spot-fleet-request:TargetCapacity':
return ScalableDimension.ec2SpotFleetRequestTargetCapacity;
case 'elasticmapreduce:instancegroup:InstanceCount':
return ScalableDimension.elasticmapreduceInstancegroupInstanceCount;
case 'appstream:fleet:DesiredCapacity':
return ScalableDimension.appstreamFleetDesiredCapacity;
case 'dynamodb:table:ReadCapacityUnits':
return ScalableDimension.dynamodbTableReadCapacityUnits;
case 'dynamodb:table:WriteCapacityUnits':
return ScalableDimension.dynamodbTableWriteCapacityUnits;
case 'dynamodb:index:ReadCapacityUnits':
return ScalableDimension.dynamodbIndexReadCapacityUnits;
case 'dynamodb:index:WriteCapacityUnits':
return ScalableDimension.dynamodbIndexWriteCapacityUnits;
case 'rds:cluster:ReadReplicaCount':
return ScalableDimension.rdsClusterReadReplicaCount;
case 'sagemaker:variant:DesiredInstanceCount':
return ScalableDimension.sagemakerVariantDesiredInstanceCount;
case 'custom-resource:ResourceType:Property':
return ScalableDimension.customResourceResourceTypeProperty;
case 'comprehend:document-classifier-endpoint:DesiredInferenceUnits':
return ScalableDimension
.comprehendDocumentClassifierEndpointDesiredInferenceUnits;
case 'comprehend:entity-recognizer-endpoint:DesiredInferenceUnits':
return ScalableDimension
.comprehendEntityRecognizerEndpointDesiredInferenceUnits;
case 'lambda:function:ProvisionedConcurrency':
return ScalableDimension.lambdaFunctionProvisionedConcurrency;
case 'cassandra:table:ReadCapacityUnits':
return ScalableDimension.cassandraTableReadCapacityUnits;
case 'cassandra:table:WriteCapacityUnits':
return ScalableDimension.cassandraTableWriteCapacityUnits;
case 'kafka:broker-storage:VolumeSize':
return ScalableDimension.kafkaBrokerStorageVolumeSize;
}
throw Exception('$this is not known in enum ScalableDimension');
}