@cosmos-building-blocks/service
@cosmos-building-blocks/service › Globals
Index
Classes
- AutoScalingGroupLT
- CloudWatchAgent
- CloudWatchMetricBuilder
- EcsEc2ServiceRebalance
- EcsService
- ImportedRedis
- Redis
Interfaces
- AutoScalingGroupLTProps
- CloudWatchAgentProps
- CloudWatchMetric
- EcsEc2ServiceRebalanceProps
- EcsEvent
- EcsServiceProps
- IRedis
- ListenerConditionRender
- RedisAttributes
- RedisProps
Type aliases
Variables
Functions
- Timeout
- delay
- fetchAllServices
- fetchService
- forceNewDeployment
- forceNewDeploymentForServices
- getRoutingPriority
- getRoutingPriorityFromListenerProps
- getStringValue
- handler
- serviceHasIgnoreTag
- serviceIsDeploying
- synthesizeBlockDeviceMappings
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:
Name | Type |
---|---|
mills | number |
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:
Name | Type |
---|---|
delay | number |
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:
Name | Type | Default |
---|---|---|
service | string | - |
tags | boolean | false |
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:
Name | Type |
---|---|
service | string |
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:
Name | Type |
---|---|
services | string[] |
Returns: Promise‹void›
Const
getRoutingPriority
▸ getRoutingPriority(routes
: string[]): number
Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:50
Parameters:
Name | Type |
---|---|
routes | string[] |
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:
Name | Type |
---|---|
scope | Construct |
props | Partial‹ApplicationListenerRuleProps› |
Returns: number
Const
getStringValue
▸ getStringValue(str?
: undefined | string): number
Defined in packages/@cosmos-building-blocks/service/src/ecs/ecs-routing.ts:61
Parameters:
Name | Type |
---|---|
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:
Name | Type |
---|---|
event | EcsEvent |
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:
Name | Type |
---|---|
service | Service |
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:
Name | Type |
---|---|
service | Service |
Returns: undefined | false | true
synthesizeBlockDeviceMappings
▸ synthesizeBlockDeviceMappings(construct
: Construct, blockDevices
: BlockDevice[]): BlockDeviceMappingProperty[]
Defined in packages/@cosmos-building-blocks/service/src/autoscaling.ts:158
Parameters:
Name | Type |
---|---|
construct | Construct |
blockDevices | BlockDevice[] |
Returns: BlockDeviceMappingProperty[]