@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.415Z") @Stability(value=Stable) public enum ServiceNamespace extends Enum<ServiceNamespace>
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());
| Enum Constant and Description |
|---|
APPSTREAM
App Stream.
|
COMPREHEND
Comprehend.
|
CUSTOM_RESOURCE
Custom Resource.
|
DYNAMODB
Dynamo DB.
|
EC2
Elastic Compute Cloud.
|
ECS
Elastic Container Service.
|
ELASTIC_MAP_REDUCE
Elastic Map Reduce.
|
ELASTICACHE
ElastiCache.
|
KAFKA
Kafka.
|
LAMBDA
Lambda.
|
RDS
Relational Database Service.
|
SAGEMAKER
SageMaker.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceNamespace |
valueOf(String name)
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.
|
@Stability(value=Stable) public static final ServiceNamespace ECS
@Stability(value=Stable) public static final ServiceNamespace ELASTIC_MAP_REDUCE
@Stability(value=Stable) public static final ServiceNamespace EC2
@Stability(value=Stable) public static final ServiceNamespace APPSTREAM
@Stability(value=Stable) public static final ServiceNamespace DYNAMODB
@Stability(value=Stable) public static final ServiceNamespace RDS
@Stability(value=Stable) public static final ServiceNamespace SAGEMAKER
@Stability(value=Stable) public static final ServiceNamespace CUSTOM_RESOURCE
@Stability(value=Stable) public static final ServiceNamespace LAMBDA
@Stability(value=Stable) public static final ServiceNamespace COMPREHEND
@Stability(value=Stable) public static final ServiceNamespace KAFKA
@Stability(value=Stable) public static final ServiceNamespace ELASTICACHE
public static ServiceNamespace[] values()
for (ServiceNamespace c : ServiceNamespace.values()) System.out.println(c);
public static ServiceNamespace valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.