All files / src/rabbitmq rabbitmq-broker-cluster.ts

100% Statements 25/25
100% Branches 1/1
100% Functions 1/1
100% Lines 25/25

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 251x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 3x 3x 3x 3x 3x 1x
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
import { Construct } from 'constructs';
import { IRabbitMqBroker } from './rabbitmq-broker';
import { RabbitMqBrokerDeploymentBase, RabbitMqBrokerDeploymentProps } from './rabbitmq-broker-deployment';
import { BrokerDeploymentMode } from '../broker-deployment-mode';
 
export interface RabbitMqBrokerClusterProps extends RabbitMqBrokerDeploymentProps {
 
}
 
/**
 * A representation of a RabbitMQ cluster deployment is a logical grouping of three RabbitMQ broker nodes behind a Network Load Balancer, each sharing users, queues, and a distributed state across multiple Availability Zones (AZ).
 */
export class RabbitMqBrokerCluster extends RabbitMqBrokerDeploymentBase implements IRabbitMqBroker {
 
  constructor(scope: Construct, id: string, props: RabbitMqBrokerClusterProps) {
    super(scope, id, {
      ...props,
      deploymentMode: BrokerDeploymentMode.CLUSTER_MULTI_AZ,
    });
  }
}