Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
81 lines (47 loc) · 3.75 KB

API.md

File metadata and controls

81 lines (47 loc) · 3.75 KB

API Reference

Classes

Name Description
FargateFastAutoscaler No description

Structs

Name Description
FargateFastAutoscalerProps No description

class FargateFastAutoscaler

Implements: IConstruct, IDependable Extends: Construct

Initializer

new FargateFastAutoscaler(scope: Construct, id: string, props: FargateFastAutoscalerProps)
  • scope (Construct) No description
  • id (string) No description
  • props (FargateFastAutoscalerProps) No description
    • backendContainer (aws_ecs.ContainerDefinitionOptions) backend container.
    • backendContainerPortMapping (Array<aws_ecs.PortMapping>) container port for the backend container.
    • vpc (aws_ec2.IVpc) The VPC for the stack.
    • awsCliLayerArn (string) AWS CLI Lambda layer ARN in Serverless App Repository. Default: 'arn:aws:serverlessrepo:us-east-1:903779448426:applications/lambda-layer-awscli'
    • awsCliLayerVersion (string) The version of the Serverless App for AWS CLI Lambda layer. Default: AWSCLI_LAYER_VERSION
    • disableScaleIn (boolean) disable scale in. Default: true
    • initialTaskNumber (number) initial number of tasks for the service. Default: 2
    • snsTopic (aws_sns.ITopic) SNS Topic to publish the notification. Default: do not publish to SNS

Properties

Name Type Description
fargateService aws_ecs.FargateService
fargateTaskDef aws_ecs.FargateTaskDefinition
fargateWatcherFuncArn string
layerVersionArn string
region string
vpc aws_ec2.IVpc

struct FargateFastAutoscalerProps

Name Type Description
backendContainer aws_ecs.ContainerDefinitionOptions backend container.
backendContainerPortMapping Array<aws_ecs.PortMapping> container port for the backend container.
vpc aws_ec2.IVpc The VPC for the stack.
awsCliLayerArn? string AWS CLI Lambda layer ARN in Serverless App Repository.
Default: 'arn:aws:serverlessrepo:us-east-1:903779448426:applications/lambda-layer-awscli'
awsCliLayerVersion? string The version of the Serverless App for AWS CLI Lambda layer.
Default: AWSCLI_LAYER_VERSION
disableScaleIn? boolean disable scale in.
Default: true
initialTaskNumber? number initial number of tasks for the service.
Default: 2
snsTopic? aws_sns.ITopic SNS Topic to publish the notification.
Default: do not publish to SNS