Class ServiceNamespace
The service that supports Application AutoScaling.
Inheritance
System.Object
ServiceNamespace
Namespace: Amazon.CDK.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.AWS.ApplicationAutoScaling.dll
Syntax (csharp)
public sealed class ServiceNamespace : Enum
Syntax (vb)
Public NotInheritable Class ServiceNamespace
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Lambda;
Code code;
var handler = new Function(this, "MyFunction", new FunctionProps {
Runtime = Runtime.PYTHON_3_7,
Handler = "index.handler",
Code = code,
ReservedConcurrentExecutions = 2
});
var fnVer = handler.CurrentVersion;
var target = new ScalableTarget(this, "ScalableTarget", new ScalableTargetProps {
ServiceNamespace = ServiceNamespace.LAMBDA,
MaxCapacity = 100,
MinCapacity = 10,
ResourceId = $"function:{handler.functionName}:{fnVer.version}",
ScalableDimension = "lambda:function:ProvisionedConcurrency"
});
target.ScaleToTrackMetric("PceTracking", new BasicTargetTrackingScalingPolicyProps {
TargetValue = 0.9,
PredefinedMetric = PredefinedMetric.LAMBDA_PROVISIONED_CONCURRENCY_UTILIZATION
});
Synopsis
Fields
| 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. |
| value__ |
Fields
APPSTREAM
COMPREHEND
CUSTOM_RESOURCE
Custom Resource.
public const ServiceNamespace CUSTOM_RESOURCE
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
DYNAMODB
EC2
Elastic Compute Cloud.
public const ServiceNamespace EC2
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
ECS
Elastic Container Service.
public const ServiceNamespace ECS
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
ELASTIC_MAP_REDUCE
Elastic Map Reduce.
public const ServiceNamespace ELASTIC_MAP_REDUCE
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
ELASTICACHE
ElastiCache.
public const ServiceNamespace ELASTICACHE
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
KAFKA
LAMBDA
RDS
Relational Database Service.
public const ServiceNamespace RDS
Field Value
| Type | Description |
|---|---|
| ServiceNamespace |
SAGEMAKER
value__
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |