Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 3.7 KB

API.md

File metadata and controls

81 lines (47 loc) · 3.7 KB

API Reference

Classes

Name Description
FargateFastAutoscaler No description

Structs

Name Description
FargateFastAutoscalerProps No description

class FargateFastAutoscaler

Implements: IConstruct, IConstruct, 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 (ContainerDefinitionOptions) backend container.
    • backendContainerPortMapping (Array<PortMapping>) container port for the backend container.
    • vpc (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 (ITopic) SNS Topic to publish the notification. Default: do not publish to SNS

Properties

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

struct FargateFastAutoscalerProps

Name Type Description
backendContainer ContainerDefinitionOptions backend container.
backendContainerPortMapping Array<PortMapping> container port for the backend container.
vpc 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? ITopic SNS Topic to publish the notification.
Default: do not publish to SNS