Enum ServiceNamespace
java.lang.Object
java.lang.Enum<ServiceNamespace>
software.amazon.awscdk.services.applicationautoscaling.ServiceNamespace
- All Implemented Interfaces:
Serializable
,Comparable<ServiceNamespace>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.375Z")
@Stability(Stable)
public enum ServiceNamespace
extends Enum<ServiceNamespace>
The service that supports Application AutoScaling.
Example:
import software.amazon.awscdk.services.lambda.*; Code code; Function handler = Function.Builder.create(this, "MyFunction") .runtime(Runtime.PYTHON_3_7) .handler("index.handler") .code(code) .reservedConcurrentExecutions(2) .build(); Version fnVer = handler.getCurrentVersion(); ScalableTarget target = ScalableTarget.Builder.create(this, "ScalableTarget") .serviceNamespace(ServiceNamespace.LAMBDA) .maxCapacity(100) .minCapacity(10) .resourceId(String.format("function:%s:%s", handler.getFunctionName(), fnVer.getVersion())) .scalableDimension("lambda:function:ProvisionedConcurrency") .build(); target.scaleToTrackMetric("PceTracking", BasicTargetTrackingScalingPolicyProps.builder() .targetValue(0.9) .predefinedMetric(PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApp Stream.Comprehend.Custom Resource.Dynamo DB.Elastic Compute Cloud.Elastic Container Service.Elastic Map Reduce.ElastiCache.Kafka.Lambda.Relational Database Service.SageMaker. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceNamespace
Returns the enum constant of this type with the specified name.static ServiceNamespace[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ECS
Elastic Container Service. -
ELASTIC_MAP_REDUCE
Elastic Map Reduce. -
EC2
Elastic Compute Cloud. -
APPSTREAM
App Stream. -
DYNAMODB
Dynamo DB. -
RDS
Relational Database Service. -
SAGEMAKER
SageMaker. -
CUSTOM_RESOURCE
Custom Resource. -
LAMBDA
Lambda. -
COMPREHEND
Comprehend. -
KAFKA
Kafka. -
ELASTICACHE
ElastiCache.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-