3.2.0 • Published 7 months ago

maq-ecs-construct v3.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

API Reference

Constructs

MAQService

Initializers

import { MAQService } from 'maq-ecs-construct'

new MAQService(scope: Construct, id: string, props: ServiceProps)
NameTypeDescription
scopeconstructs.ConstructNo description.
idstringNo description.
propsServicePropsNo description.

scopeRequired
  • Type: constructs.Construct

idRequired
  • Type: string

propsRequired
  • Type: ServiceProps

Methods

NameDescription
toStringReturns a string representation of this construct.
addLinkNo description.

toString
public toString(): string

Returns a string representation of this construct.

addLink
public addLink(sourceContainer: string, destinationContainer: string): void
sourceContainerRequired
  • Type: string

destinationContainerRequired
  • Type: string

Static Functions

NameDescription
isConstructChecks if x is a construct.

isConstruct
import { MAQService } from 'maq-ecs-construct'

MAQService.isConstruct(x: any)

Checks if x is a construct.

xRequired
  • Type: any

Any object.


Properties

NameTypeDescription
nodeconstructs.NodeThe tree node.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


Structs

AppContainerProps

Initializer

import { AppContainerProps } from 'maq-ecs-construct'

const appContainerProps: AppContainerProps = { ... }

Properties

NameTypeDescription
containerPortnumberNo description.
idstringNo description.
repositoryaws-cdk-lib.aws_ecr.RepositoryNo description.
softLimitnumberNo description.
environment{ key: string : string}No description.
hostnamestringNo description.
linksstring[]No description.
secrets{ key: string : aws-cdk-lib.aws_ecs.Secret}No description.

containerPortRequired
public readonly containerPort: number;
  • Type: number

idRequired
public readonly id: string;
  • Type: string

repositoryRequired
public readonly repository: Repository;
  • Type: aws-cdk-lib.aws_ecr.Repository

softLimitRequired
public readonly softLimit: number;
  • Type: number

environmentOptional
public readonly environment: {[ key: string ]: string};

hostnameOptional
public readonly hostname: string;
  • Type: string

linksOptional
public readonly links: string[];
  • Type: string[]

secretsOptional
public readonly secrets: {[ key: string ]: Secret};

ClusterProps

Initializer

import { ClusterProps } from 'maq-ecs-construct'

const clusterProps: ClusterProps = { ... }

Properties

NameTypeDescription
clusterArnstringNo description.
clusterNamestringNo description.

clusterArnRequired
public readonly clusterArn: string;
  • Type: string

clusterNameRequired
public readonly clusterName: string;
  • Type: string

LoadBalancerProps

Initializer

import { LoadBalancerProps } from 'maq-ecs-construct'

const loadBalancerProps: LoadBalancerProps = { ... }

Properties

NameTypeDescription
isSecurebooleanNo description.
listenerArnstringNo description.
portnumberNo description.

isSecureRequired
public readonly isSecure: boolean;
  • Type: boolean

listenerArnRequired
public readonly listenerArn: string;
  • Type: string

portOptional
public readonly port: number;
  • Type: number

ScalingCapacity

Initializer

import { ScalingCapacity } from 'maq-ecs-construct'

const scalingCapacity: ScalingCapacity = { ... }

Properties

NameTypeDescription
desiredCountnumberNo description.
maxCapacitynumberNo description.
minCapacitynumberNo description.

desiredCountRequired
public readonly desiredCount: number;
  • Type: number

maxCapacityRequired
public readonly maxCapacity: number;
  • Type: number

minCapacityRequired
public readonly minCapacity: number;
  • Type: number

ServiceProps

Initializer

import { ServiceProps } from 'maq-ecs-construct'

const serviceProps: ServiceProps = { ... }

Properties

NameTypeDescription
clusterClusterPropsNo description.
containersAppContainerProps[]No description.
healthCheckPathstringNo description.
loadBalancerLoadBalancerPropsNo description.
serviceNamestringNo description.
targetGroupTargetGroupNo description.
vpcaws-cdk-lib.aws_ec2.IVpcNo description.
executionRoleaws-cdk-lib.aws_iam.RoleNo description.
scalingCapacityScalingCapacityNo description.
taskRoleaws-cdk-lib.aws_iam.RoleNo description.

clusterRequired
public readonly cluster: ClusterProps;
  • Type: ClusterProps

containersRequired
public readonly containers: AppContainerProps[];
  • Type: AppContainerProps[]

healthCheckPathRequired
public readonly healthCheckPath: string;
  • Type: string

loadBalancerRequired
public readonly loadBalancer: LoadBalancerProps;
  • Type: LoadBalancerProps

serviceNameRequired
public readonly serviceName: string;
  • Type: string

targetGroupRequired
public readonly targetGroup: TargetGroup;
  • Type: TargetGroup

vpcRequired
public readonly vpc: IVpc;
  • Type: aws-cdk-lib.aws_ec2.IVpc

executionRoleOptional
public readonly executionRole: Role;
  • Type: aws-cdk-lib.aws_iam.Role

scalingCapacityOptional
public readonly scalingCapacity: ScalingCapacity;
  • Type: ScalingCapacity

taskRoleOptional
public readonly taskRole: Role;
  • Type: aws-cdk-lib.aws_iam.Role

TargetGroup

Initializer

import { TargetGroup } from 'maq-ecs-construct'

const targetGroup: TargetGroup = { ... }

Properties

NameTypeDescription
prioritynumberNo description.
hostnamesstring[]No description.
pathPatternsstring[]No description.

priorityRequired
public readonly priority: number;
  • Type: number

hostnamesOptional
public readonly hostnames: string[];
  • Type: string[]

pathPatternsOptional
public readonly pathPatterns: string[];
  • Type: string[]

3.2.0

7 months ago

3.1.0

7 months ago

3.0.0

1 year ago

1.0.0

2 years ago

2.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago