in src/aspect.ts [69:105]
public visit(node: IConstruct): void {
const watchApiGateway = this.props.apiGateway === undefined ? true : this.props.apiGateway;
const watchDynamo = this.props.dynamodb === undefined ? true : this.props.dynamodb;
const watchLambda = this.props.lambda === undefined ? true : this.props.lambda;
const watchStateMachine = this.props.stateMachine === undefined ? true : this.props.stateMachine;
const watchRdsAuroraCluster = this.props.rdsaurora === undefined ? true : this.props.rdsaurora;
const watchFargateEcs = this.props.fargateecs === undefined ? true : this.props.fargateecs;
const watchEc2Ecs = this.props.ec2ecs === undefined ? true : this.props.ec2ecs;
if (watchApiGateway && node instanceof apigw.RestApi) {
this.watchful.watchApiGateway(node.node.path, node);
}
if (watchDynamo && node instanceof dynamodb.Table) {
this.watchful.watchDynamoTable(node.node.path, node);
}
if (watchLambda && node instanceof lambda.Function) {
this.watchful.watchLambdaFunction(node.node.path, node);
}
if (watchStateMachine && node instanceof stepfunctions.StateMachine) {
this.watchful.watchStateMachine(node.node.path, node);
}
if (watchRdsAuroraCluster && node instanceof rds.DatabaseCluster) {
this.watchful.watchRdsAuroraCluster(node.node.path, node);
}
if (watchFargateEcs && node instanceof ecs_patterns.ApplicationLoadBalancedFargateService) {
this.watchful.watchFargateEcs(node.node.path, node.service, node.targetGroup);
}
if (watchEc2Ecs && node instanceof ecs_patterns.ApplicationLoadBalancedEc2Service) {
this.watchful.watchEc2Ecs(node.node.path, node.service, node.targetGroup);
}
}