Skip to content

Latest commit

 

History

History
970 lines (494 loc) · 26.2 KB

API.md

File metadata and controls

970 lines (494 loc) · 26.2 KB

API Reference

Constructs

AutoScaler

Initializer

import { AutoScaler } from '@smallcase/aws-cdk-microservice'

new AutoScaler(scope: Construct, id: string, props: AutoScalerProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

targetGroupArnRequired
  • Type: string

BalancerEntry

Initializer

import { BalancerEntry } from '@smallcase/aws-cdk-microservice'

new BalancerEntry(scope: Construct, id: string, props: LoadBalancerProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Deployment

Initializer

import { Deployment } from '@smallcase/aws-cdk-microservice'

new Deployment(scope: Construct, id: string, props: DeploymentProps)
scopeRequired

idRequired
  • Type: string

propsRequired

MicroService

Initializer

import { MicroService } from '@smallcase/aws-cdk-microservice'

new MicroService(scope: Construct, id: string, props: MicroServiceProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

appNameRequired
  • Type: string

roleRequired

sshKeyRequired
  • Type: string

subnetsRequired
  • Type: string[]

vpcRequired
  • Type: string

applicationTypeOptional
  • Type: string

asgMaxSizeOptional
  • Type: string

asgMinSizeOptional
  • Type: string

createCodedeployApplicationOptional
  • Type: boolean

deploymentPoliciesOptional
  • Type: string[]

diskSizeOptional
  • Type: number

diskTypeOptional
  • Type: string

envOptional
  • Type: string

healthCheckPathOptional
  • Type: string

hostOptional
  • Type: string

instanceLabelsOptional

instanceTypeOptional
  • Type: string

lbArnOptional
  • Type: string

portOptional
  • Type: number

protocolOptional
  • Type: string

securityGroupPropsOptional

sslEnabledOptional
  • Type: boolean

tcpRulesOptional

Structs

ApplicationProps

Initializer

import { ApplicationProps } from '@smallcase/aws-cdk-microservice'

const applicationProps: ApplicationProps = { ... }
applicationNameRequired
  • Type: string

resourceTypeRequired
  • Type: string

typeRequired
  • Type: string

AutoScalerProps

Initializer

import { AutoScalerProps } from '@smallcase/aws-cdk-microservice'

const autoScalerProps: AutoScalerProps = { ... }
asgNameRequired
  • Type: string

maxSizeRequired
  • Type: string

minSizeRequired
  • Type: string

subnetsRequired
  • Type: string[]

templatePropsRequired

tagsOptional

tgPropsOptional

DeploymentProps

Initializer

import { DeploymentProps } from '@smallcase/aws-cdk-microservice'

const deploymentProps: DeploymentProps = { ... }
applicationPropsRequired

asgNamesRequired
  • Type: string[]

deploymentConfigNameRequired
  • Type: string

deploymentGroupNameRequired
  • Type: string

roleArnRequired
  • Type: string

tgNameRequired
  • Type: string

IngressRule

Initializer

import { IngressRule } from '@smallcase/aws-cdk-microservice'

const ingressRule: IngressRule = { ... }
portRequired
  • Type: number

sourceSGRequired
  • Type: string

descriptionOptional
  • Type: string

InstanceStackProps

Initializer

import { InstanceStackProps } from '@smallcase/aws-cdk-microservice'

const instanceStackProps: InstanceStackProps = { ... }
asgNameRequired
  • Type: string

instancePropsRequired

instanceVolumeSizeOptional

roleOptional

securityGroupOptional

tagsOptional
  • Type: {[ key: string ]: string}

targetGroupPropsOptional

vpcOptional

InternalBD

Initializer

import { InternalBD } from '@smallcase/aws-cdk-microservice'

const internalBD: InternalBD = { ... }
nameRequired
  • Type: string

sizeRequired
  • Type: number

typeRequired

InternalLaunchTemplateProps

Initializer

import { InternalLaunchTemplateProps } from '@smallcase/aws-cdk-microservice'

const internalLaunchTemplateProps: InternalLaunchTemplateProps = { ... }
amiImageIdRequired
  • Type: string

blockDeviceRequired

detailedMonitoringRequired
  • Type: boolean

instanceTypeRequired
  • Type: string

roleRequired

securityGroupRequired

sshKeyRequired
  • Type: string

templateNameRequired
  • Type: string

typeRequired
  • Type: string

vpcRequired

existingAttributesOptional

instanceVolumeSizeOptional

InternalRole

Initializer

import { InternalRole } from '@smallcase/aws-cdk-microservice'

const internalRole: InternalRole = { ... }
typeRequired
  • Type: string

additionalPoliciesOptional
  • Type: any[]

roleArnOptional
  • Type: string

roleNameOptional
  • Type: string

InternalSG

Initializer

import { InternalSG } from '@smallcase/aws-cdk-microservice'

const internalSG: InternalSG = { ... }
typeRequired
  • Type: string

allowAllOutboundOptional
  • Type: boolean

descriptionOptional
  • Type: string

disableInlineRulesOptional
  • Type: boolean

ingressRulesOptional

securityGroupNameOptional
  • Type: string

sgGroupIdOptional
  • Type: string

InternalVPC

Initializer

import { InternalVPC } from '@smallcase/aws-cdk-microservice'

const internalVPC: InternalVPC = { ... }
typeRequired
  • Type: string

vpcNameRequired
  • Type: string

vpcPropsOptional

LoadBalancerProps

Initializer

import { LoadBalancerProps } from '@smallcase/aws-cdk-microservice'

const loadBalancerProps: LoadBalancerProps = { ... }
appNameRequired
  • Type: string

hostHeaderRequired
  • Type: string

lbArnRequired
  • Type: string

sslEnabledRequired
  • Type: boolean

targetGroupArnRequired
  • Type: string

MicroServiceProps

Initializer

import { MicroServiceProps } from '@smallcase/aws-cdk-microservice'

const microServiceProps: MicroServiceProps = { ... }
appNameRequired
  • Type: string

envRequired
  • Type: string

roleRequired

sshKeyRequired
  • Type: string

subnetsRequired
  • Type: string[]

vpcRequired
  • Type: string

amiOptional
  • Type: string

applicationTypeOptional
  • Type: string

asgMaxSizeOptional
  • Type: string

asgMinSizeOptional
  • Type: string

createCodedeployApplicationOptional
  • Type: boolean

deploymentPoliciesOptional
  • Type: string[]

diskSizeOptional
  • Type: number

diskTypeOptional
  • Type: string

healthCheckPathOptional
  • Type: string

hostOptional
  • Type: string

instanceLabelsOptional

instanceTypeOptional
  • Type: string

lbArnOptional
  • Type: string

portOptional
  • Type: number

protocolOptional
  • Type: string

securityGroupPropsOptional

sslEnabledOptional
  • Type: boolean

tcpRulesOptional

TargetGroupProps

Initializer

import { TargetGroupProps } from '@smallcase/aws-cdk-microservice'

const targetGroupProps: TargetGroupProps = { ... }
typeRequired
  • Type: string

healthPathOptional
  • Type: string

nameOptional
  • Type: string

portOptional
  • Type: number

protocolOptional
  • Type: string

tgArnOptional
  • Type: string

thresholdCountOptional
  • Type: number

timeoutOptional
  • Type: number