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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 12x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 4x 4x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import { IResource } from 'aws-cdk-lib'; import { Metric, MetricOptions } from 'aws-cdk-lib/aws-cloudwatch'; import { Construct } from 'constructs'; import { IActiveMqBrokerConfiguration } from './activemq-broker-configuration'; import { ActiveMqBrokerEngineVersion } from './activemq-broker-engine-version'; import { IActiveMqBrokerUserManagement } from './usermanagement/activemq-broker-user-management'; import { ActiveMqLdapValidation } from './validators/ldap-metadata-validator'; import { BrokerDeploymentBase, BrokerEngine, BrokerDeploymentProps, IBrokerDeployment } from '../broker-deployment'; import { BrokerDeploymentMode } from '../broker-deployment-mode'; export interface ActiveMqCloudwatchLogsExports { /** * Export general logs to CloudWatch. * * @default - undefined; do not export general logs. */ readonly general?: boolean; /** * Export audit logs to CloudWatch. * * @default - undefined; do not export audit logs. */ readonly audit?: boolean; } export interface ActiveMqBrokerDeploymentProps extends BrokerDeploymentProps { /** * Sets the User Management option for the Amazon MQ for ActiveMQ broker */ readonly userManagement: IActiveMqBrokerUserManagement; /** * Sets the version of the Amazon MQ for ActiveMQ broker engine. */ readonly version: ActiveMqBrokerEngineVersion; /** * Sets the number of days to retain logs for the Amazon MQ for ActiveMQ broker. */ readonly logsRetentionDays?: number; /** * Sets the CloudWatch Logs exports for the Amazon MQ for ActiveMQ broker. * * @default - undefined; No logs are exported to CloudWatch. */ readonly cloudwatchLogsExports?: ActiveMqCloudwatchLogsExports; /** * Sets the configuration of the Amazon MQ for ActiveMQ broker. */ readonly configuration?: IActiveMqBrokerConfiguration;} export interface ActiveMqBrokerDeploymentBaseProps extends ActiveMqBrokerDeploymentProps { readonly deploymentMode: BrokerDeploymentMode; } export interface IActiveMqBrokerDeployment extends IResource, IBrokerDeployment { metricAmqpMaximumConnections(props?: MetricOptions): Metric; metricBurstBalance(props?: MetricOptions): Metric; metricCpuCreditBalance(props?: MetricOptions): Metric; metricCpuUtilization(props?: MetricOptions): Metric; metricCurrentConnectionsCount(props?: MetricOptions): Metric; metricEstablishedConnectionsCount(props?: MetricOptions): Metric; metricHeapUsage(props?: MetricOptions): Metric; metricInactiveDurableTopicSubscribersCount(props?: MetricOptions): Metric; metricJobSchedulerStorePercentUsage(props?: MetricOptions): Metric; metricJournalFilesForFastRecovery(props?: MetricOptions): Metric; metricJournalFilesForFullRecovery(props?: MetricOptions): Metric; metricMqttMaximumConnections(props?: MetricOptions): Metric; metricNetworkConnectorConnectionCount(props?: MetricOptions): Metric; metricNetworkIn(props?: MetricOptions): Metric; metricNetworkOut(props?: MetricOptions): Metric; metricOpenTransactionCount(props?: MetricOptions): Metric; metricOpenwireMaximumConnections(props?: MetricOptions): Metric; metricStompMaximumConnections(props?: MetricOptions): Metric; metricStorePercentUsage(props?: MetricOptions): Metric; metricTempPercentUsage(props?: MetricOptions): Metric; metricTotalConsumerCount(props?: MetricOptions): Metric; metricTotalMessageCount(props?: MetricOptions): Metric; metricTotalProducerCount(props?: MetricOptions): Metric; metricVolumeReadOps(props?: MetricOptions): Metric; metricVolumeWriteOps(props?: MetricOptions): Metric; metricWsMaximumConnections(props?: MetricOptions): Metric; metricConsumerCount(props?: MetricOptions): Metric; metricEnqueueCount(props?: MetricOptions): Metric; metricEnqueueTime(props?: MetricOptions): Metric; metricExpiredCount(props?: MetricOptions): Metric; metricDispatchCount(props?: MetricOptions): Metric; metricDequeueCount(props?: MetricOptions): Metric; metricInFlightCount(props?: MetricOptions): Metric; metricReceiveCount(props?: MetricOptions): Metric; metricMemoryUsage(props?: MetricOptions): Metric; metricProducerCount(props?: MetricOptions): Metric; metricQueueSize(props?: MetricOptions): Metric; metricTotalEnqueueCount(props?: MetricOptions): Metric; metricTotalDequeueCount(props?: MetricOptions): Metric; } export abstract class ActiveMqBrokerDeploymentBase extends BrokerDeploymentBase implements IActiveMqBrokerDeployment { constructor(scope: Construct, id: string, props: ActiveMqBrokerDeploymentBaseProps) { const renderedUserManagement = props.userManagement.render(); super(scope, id, { ...renderedUserManagement, ...props, version: props.version.toString(), engine: BrokerEngine.ACTIVEMQ, }); if (renderedUserManagement.ldapServerMetadata) { // validate ldap server metadata if present this.node.addValidation(new ActiveMqLdapValidation({ config: renderedUserManagement.ldapServerMetadata })); } } public metricAmqpMaximumConnections(props?: MetricOptions): Metric { return this.metric('AmqpMaximumConnections', props); } public metricBurstBalance(props?: MetricOptions): Metric { return this.metric('BurstBalance', props); } public metricCpuCreditBalance(props?: MetricOptions): Metric { return this.metric('CpuCreditBalance', props); } public metricCpuUtilization(props?: MetricOptions): Metric { return this.metric('CpuUtilization', props); } public metricCurrentConnectionsCount(props?: MetricOptions): Metric { return this.metric('CurrentConnectionsCount', props); } public metricEstablishedConnectionsCount(props?: MetricOptions): Metric { return this.metric('EstablishedConnectionsCount', props); } public metricHeapUsage(props?: MetricOptions): Metric { return this.metric('HeapUsage', props); } public metricInactiveDurableTopicSubscribersCount(props?: MetricOptions): Metric { return this.metric('InactiveDurableTopicSubscribersCount', props); } public metricJobSchedulerStorePercentUsage(props?: MetricOptions): Metric { return this.metric('JobSchedulerStorePercentUsage', props); } public metricJournalFilesForFastRecovery(props?: MetricOptions): Metric { return this.metric('JobSchedulerStorePercentUsage', props); } public metricJournalFilesForFullRecovery(props?: MetricOptions): Metric { return this.metric('JournalFilesForFullRecovery', props); } public metricMqttMaximumConnections(props?: MetricOptions): Metric { return this.metric('MqttMaximumConnections', props); } public metricNetworkConnectorConnectionCount(props?: MetricOptions): Metric { return this.metric('NetworkConnectorConnectionCount', props); } public metricNetworkIn(props?: MetricOptions): Metric { return this.metric('NetworkIn', props); } public metricNetworkOut(props?: MetricOptions): Metric { return this.metric('NetworkOut', props); } public metricOpenTransactionCount(props?: MetricOptions): Metric { return this.metric('OpenTransactionCount', props); } public metricOpenwireMaximumConnections(props?: MetricOptions): Metric { return this.metric('OpenwireMaximumConnections', props); } public metricStompMaximumConnections(props?: MetricOptions): Metric { return this.metric('StompMaximumConnections', props); } public metricStorePercentUsage(props?: MetricOptions): Metric { return this.metric('StorePercentUsage', props); } public metricTempPercentUsage(props?: MetricOptions): Metric { return this.metric('TempPercentUsage', props); } public metricTotalConsumerCount(props?: MetricOptions): Metric { return this.metric('TotalConsumerCount', props); } public metricTotalMessageCount(props?: MetricOptions): Metric { return this.metric('TotalMessageCount', props); } public metricTotalProducerCount(props?: MetricOptions): Metric { return this.metric('TotalProducerCount', props); } public metricVolumeReadOps(props?: MetricOptions): Metric { return this.metric('VolumeReadOps', props); } public metricVolumeWriteOps(props?: MetricOptions): Metric { return this.metric('VolumeWriteOps', props); } public metricWsMaximumConnections(props?: MetricOptions): Metric { return this.metric('WsMaximumConnections', props); } public metricConsumerCount(props?: MetricOptions): Metric { return this.metric('ConsumerCount', props); } public metricEnqueueCount(props?: MetricOptions): Metric { return this.metric('EnqueueCount', props); } public metricEnqueueTime(props?: MetricOptions): Metric { return this.metric('EnqueueTime', props); } public metricExpiredCount(props?: MetricOptions): Metric { return this.metric('ExpiredCount', props); } public metricDispatchCount(props?: MetricOptions): Metric { return this.metric('DispatchCount', props); } public metricDequeueCount(props?: MetricOptions): Metric { return this.metric('DequeueCount', props); } public metricInFlightCount(props?: MetricOptions): Metric { return this.metric('InFlightCount', props); } public metricReceiveCount(props?: MetricOptions): Metric { return this.metric('ReceiveCount', props); } public metricMemoryUsage(props?: MetricOptions): Metric { return this.metric('MemoryUsage', props); } public metricProducerCount(props?: MetricOptions): Metric { return this.metric('ProducerCount', props); } public metricQueueSize(props?: MetricOptions): Metric { return this.metric('QueueSize', props); } public metricTotalEnqueueCount(props?: MetricOptions): Metric { return this.metric('TotalEnqueueCount', props); } public metricTotalDequeueCount(props?: MetricOptions): Metric { return this.metric('TotalDequeueCount', props); } } |