Show / Hide Table of Contents

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

App Stream.

public const ServiceNamespace APPSTREAM
Field Value
Type Description
ServiceNamespace

COMPREHEND

Comprehend.

public const ServiceNamespace COMPREHEND
Field Value
Type Description
ServiceNamespace

CUSTOM_RESOURCE

Custom Resource.

public const ServiceNamespace CUSTOM_RESOURCE
Field Value
Type Description
ServiceNamespace

DYNAMODB

Dynamo DB.

public const ServiceNamespace DYNAMODB
Field Value
Type Description
ServiceNamespace

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

Kafka.

public const ServiceNamespace KAFKA
Field Value
Type Description
ServiceNamespace

LAMBDA

Lambda.

public const ServiceNamespace LAMBDA
Field Value
Type Description
ServiceNamespace

RDS

Relational Database Service.

public const ServiceNamespace RDS
Field Value
Type Description
ServiceNamespace

SAGEMAKER

SageMaker.

public const ServiceNamespace SAGEMAKER
Field Value
Type Description
ServiceNamespace

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX