All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.applicationautoscaling.model

import kotlin.collections.List

public sealed class ScalableDimension {
    public abstract val value: kotlin.String

    public object AppstreamFleetDesiredCapacity : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "appstream:fleet:DesiredCapacity"
        override fun toString(): kotlin.String = "AppstreamFleetDesiredCapacity"
    }

    public object CassandraTableReadCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "cassandra:table:ReadCapacityUnits"
        override fun toString(): kotlin.String = "CassandraTableReadCapacityUnits"
    }

    public object CassandraTableWriteCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "cassandra:table:WriteCapacityUnits"
        override fun toString(): kotlin.String = "CassandraTableWriteCapacityUnits"
    }

    public object ComprehendDocClassifierEndpointInferenceUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "comprehend:document-classifier-endpoint:DesiredInferenceUnits"
        override fun toString(): kotlin.String = "ComprehendDocClassifierEndpointInferenceUnits"
    }

    public object ComprehendEntityRecognizerEndpointInferenceUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"
        override fun toString(): kotlin.String = "ComprehendEntityRecognizerEndpointInferenceUnits"
    }

    public object CustomResourceScalableDimension : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "custom-resource:ResourceType:Property"
        override fun toString(): kotlin.String = "CustomResourceScalableDimension"
    }

    public object DynamoDbIndexReadCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "dynamodb:index:ReadCapacityUnits"
        override fun toString(): kotlin.String = "DynamoDbIndexReadCapacityUnits"
    }

    public object DynamoDbIndexWriteCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "dynamodb:index:WriteCapacityUnits"
        override fun toString(): kotlin.String = "DynamoDbIndexWriteCapacityUnits"
    }

    public object DynamoDbTableReadCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "dynamodb:table:ReadCapacityUnits"
        override fun toString(): kotlin.String = "DynamoDbTableReadCapacityUnits"
    }

    public object DynamoDbTableWriteCapacityUnits : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "dynamodb:table:WriteCapacityUnits"
        override fun toString(): kotlin.String = "DynamoDbTableWriteCapacityUnits"
    }

    public object Ec2SpotFleetRequestTargetCapacity : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "ec2:spot-fleet-request:TargetCapacity"
        override fun toString(): kotlin.String = "Ec2SpotFleetRequestTargetCapacity"
    }

    public object EcsServiceDesiredCount : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "ecs:service:DesiredCount"
        override fun toString(): kotlin.String = "EcsServiceDesiredCount"
    }

    public object EmrInstanceGroupInstanceCount : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "elasticmapreduce:instancegroup:InstanceCount"
        override fun toString(): kotlin.String = "EmrInstanceGroupInstanceCount"
    }

    public object ElastiCacheReplicationGroupNodeGroups : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "elasticache:replication-group:NodeGroups"
        override fun toString(): kotlin.String = "ElastiCacheReplicationGroupNodeGroups"
    }

    public object ElastiCacheReplicationGroupReplicas : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "elasticache:replication-group:Replicas"
        override fun toString(): kotlin.String = "ElastiCacheReplicationGroupReplicas"
    }

    public object KafkaBrokerStorageVolumeSize : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "kafka:broker-storage:VolumeSize"
        override fun toString(): kotlin.String = "KafkaBrokerStorageVolumeSize"
    }

    public object LambdaFunctionProvisionedConcurrency : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "lambda:function:ProvisionedConcurrency"
        override fun toString(): kotlin.String = "LambdaFunctionProvisionedConcurrency"
    }

    public object NeptuneClusterReadReplicaCount : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "neptune:cluster:ReadReplicaCount"
        override fun toString(): kotlin.String = "NeptuneClusterReadReplicaCount"
    }

    public object RdsClusterReadReplicaCount : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "rds:cluster:ReadReplicaCount"
        override fun toString(): kotlin.String = "RdsClusterReadReplicaCount"
    }

    public object SageMakerVariantDesiredInstanceCount : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "sagemaker:variant:DesiredInstanceCount"
        override fun toString(): kotlin.String = "SageMakerVariantDesiredInstanceCount"
    }

    public object SageMakerVariantDesiredProvisionedConcurrency : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override val value: kotlin.String = "sagemaker:variant:DesiredProvisionedConcurrency"
        override fun toString(): kotlin.String = "SageMakerVariantDesiredProvisionedConcurrency"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension = when (value) {
            "appstream:fleet:DesiredCapacity" -> AppstreamFleetDesiredCapacity
            "cassandra:table:ReadCapacityUnits" -> CassandraTableReadCapacityUnits
            "cassandra:table:WriteCapacityUnits" -> CassandraTableWriteCapacityUnits
            "comprehend:document-classifier-endpoint:DesiredInferenceUnits" -> ComprehendDocClassifierEndpointInferenceUnits
            "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" -> ComprehendEntityRecognizerEndpointInferenceUnits
            "custom-resource:ResourceType:Property" -> CustomResourceScalableDimension
            "dynamodb:index:ReadCapacityUnits" -> DynamoDbIndexReadCapacityUnits
            "dynamodb:index:WriteCapacityUnits" -> DynamoDbIndexWriteCapacityUnits
            "dynamodb:table:ReadCapacityUnits" -> DynamoDbTableReadCapacityUnits
            "dynamodb:table:WriteCapacityUnits" -> DynamoDbTableWriteCapacityUnits
            "ec2:spot-fleet-request:TargetCapacity" -> Ec2SpotFleetRequestTargetCapacity
            "ecs:service:DesiredCount" -> EcsServiceDesiredCount
            "elasticmapreduce:instancegroup:InstanceCount" -> EmrInstanceGroupInstanceCount
            "elasticache:replication-group:NodeGroups" -> ElastiCacheReplicationGroupNodeGroups
            "elasticache:replication-group:Replicas" -> ElastiCacheReplicationGroupReplicas
            "kafka:broker-storage:VolumeSize" -> KafkaBrokerStorageVolumeSize
            "lambda:function:ProvisionedConcurrency" -> LambdaFunctionProvisionedConcurrency
            "neptune:cluster:ReadReplicaCount" -> NeptuneClusterReadReplicaCount
            "rds:cluster:ReadReplicaCount" -> RdsClusterReadReplicaCount
            "sagemaker:variant:DesiredInstanceCount" -> SageMakerVariantDesiredInstanceCount
            "sagemaker:variant:DesiredProvisionedConcurrency" -> SageMakerVariantDesiredProvisionedConcurrency
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            AppstreamFleetDesiredCapacity,
            CassandraTableReadCapacityUnits,
            CassandraTableWriteCapacityUnits,
            ComprehendDocClassifierEndpointInferenceUnits,
            ComprehendEntityRecognizerEndpointInferenceUnits,
            CustomResourceScalableDimension,
            DynamoDbIndexReadCapacityUnits,
            DynamoDbIndexWriteCapacityUnits,
            DynamoDbTableReadCapacityUnits,
            DynamoDbTableWriteCapacityUnits,
            Ec2SpotFleetRequestTargetCapacity,
            EcsServiceDesiredCount,
            EmrInstanceGroupInstanceCount,
            ElastiCacheReplicationGroupNodeGroups,
            ElastiCacheReplicationGroupReplicas,
            KafkaBrokerStorageVolumeSize,
            LambdaFunctionProvisionedConcurrency,
            NeptuneClusterReadReplicaCount,
            RdsClusterReadReplicaCount,
            SageMakerVariantDesiredInstanceCount,
            SageMakerVariantDesiredProvisionedConcurrency,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy