@cosmos-building-blocks/service

@cosmos-building-blocks/serviceGlobals

Index

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

MutableListenerCondition

Ƭ MutableListenerCondition: ListenerCondition & object

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-service.ts:38

Variables

CLUSTER

CLUSTER: undefined | string

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:20


Const IGNORE_TAG

IGNORE_TAG: "ecs:rebalance:ignore" = "ecs:rebalance:ignore"

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:2


TIMEOUT

TIMEOUT: undefined | string

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:20


Const TIMEOUT_MS

TIMEOUT_MS: number = Number(TIMEOUT) * 1000

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:23


Const charMapping

charMapping: string[] = [ '*', '?', '&', '_', '@', '+', "'", '"', '~', '$', '.', ':', '-', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '/', ]

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:70


Const client

client: ECS‹› = new ECS()

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:26

Functions

Const Timeout

Timeout(mills: number): (Anonymous function)

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:162

Parameters:

NameType
millsnumber

Returns: (Anonymous function)


Const delay

delay(delay: number): Promise‹void›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:160

Parameters:

NameType
delaynumber

Returns: Promise‹void›


Const fetchAllServices

fetchAllServices(): Promise‹string[]›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:110

Returns: Promise‹string[]›


Const fetchService

fetchService(service: string, tags: boolean): Promise‹Service›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:135

Parameters:

NameTypeDefault
servicestring-
tagsbooleanfalse

Returns: Promise‹Service›


Const forceNewDeployment

forceNewDeployment(service: string): Promise‹void›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:64

Parameters:

NameType
servicestring

Returns: Promise‹void›


Const forceNewDeploymentForServices

forceNewDeploymentForServices(services: string[]): Promise‹void›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:54

Parameters:

NameType
servicesstring[]

Returns: Promise‹void›


Const getRoutingPriority

getRoutingPriority(routes: string[]): number

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:50

Parameters:

NameType
routesstring[]

Returns: number


Const getRoutingPriorityFromListenerProps

getRoutingPriorityFromListenerProps(scope: Construct, props: Partial‹ApplicationListenerRuleProps›): number

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:14

Parameters:

NameType
scopeConstruct
propsPartial‹ApplicationListenerRuleProps›

Returns: number


Const getStringValue

getStringValue(str?: undefined | string): number

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:61

Parameters:

NameType
str?undefined | string

Returns: number


Const handler

handler(event: EcsEvent): Promise‹any›

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:28

Parameters:

NameType
eventEcsEvent

Returns: Promise‹any›


Const serviceHasIgnoreTag

serviceHasIgnoreTag(service: Service): undefined | false | true

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:152

Parameters:

NameType
serviceService

Returns: undefined | false | true


Const serviceIsDeploying

serviceIsDeploying(service: Service): undefined | false | true

Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-rebalance/handler/index.ts:156

Parameters:

NameType
serviceService

Returns: undefined | false | true


synthesizeBlockDeviceMappings

synthesizeBlockDeviceMappings(construct: Construct, blockDevices: BlockDevice[]): BlockDeviceMappingProperty[]

Defined in packages/@cosmos-building-blocks/service/src/autoscaling.ts:158

Parameters:

NameType
constructConstruct
blockDevicesBlockDevice[]

Returns: BlockDeviceMappingProperty[]