diff --git a/API.md b/API.md index 54490dcb..ab41671d 100644 --- a/API.md +++ b/API.md @@ -4524,6 +4524,8 @@ const apiGatewayMetricFactoryProps: ApiGatewayMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | api | aws-cdk-lib.aws_apigateway.IRestApi | API to monitor. | | apiMethod | string | On undefined value is not set in dimensions. | | apiResource | string | On undefined value is not set in dimensions. | @@ -4533,6 +4535,36 @@ const apiGatewayMetricFactoryProps: ApiGatewayMetricFactoryProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `api`Required ```typescript @@ -4616,6 +4648,8 @@ const apiGatewayMonitoringOptions: ApiGatewayMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -4653,6 +4687,36 @@ const apiGatewayMonitoringOptions: ApiGatewayMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -5044,6 +5108,8 @@ const apiGatewayMonitoringProps: ApiGatewayMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | api | aws-cdk-lib.aws_apigateway.IRestApi | API to monitor. | | apiMethod | string | On undefined value is not set in dimensions. | | apiResource | string | On undefined value is not set in dimensions. | @@ -5087,6 +5153,36 @@ const apiGatewayMonitoringProps: ApiGatewayMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `api`Required ```typescript @@ -5547,6 +5643,8 @@ const apiGatewayV2HttpApiMetricFactoryProps: ApiGatewayV2HttpApiMetricFactoryPro | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | api | aws-cdk-lib.aws_apigatewayv2.IHttpApi | *No description.* | | apiMethod | string | On undefined value is not set in dimensions. | | apiResource | string | On undefined value is not set in dimensions. | @@ -5556,6 +5654,36 @@ const apiGatewayV2HttpApiMetricFactoryProps: ApiGatewayV2HttpApiMetricFactoryPro --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `api`Required ```typescript @@ -5637,6 +5765,8 @@ const apiGatewayV2HttpApiMonitoringProps: ApiGatewayV2HttpApiMonitoringProps = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | api | aws-cdk-lib.aws_apigatewayv2.IHttpApi | *No description.* | | apiMethod | string | On undefined value is not set in dimensions. | | apiResource | string | On undefined value is not set in dimensions. | @@ -5700,6 +5830,36 @@ const apiGatewayV2HttpApiMonitoringProps: ApiGatewayV2HttpApiMonitoringProps = { --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `api`Required ```typescript @@ -6358,6 +6518,8 @@ const apiGatewayV2MonitoringOptions: ApiGatewayV2MonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -6415,6 +6577,36 @@ const apiGatewayV2MonitoringOptions: ApiGatewayV2MonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -7009,6 +7201,8 @@ const applicationLoadBalancerMetricFactoryProps: ApplicationLoadBalancerMetricFa | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | applicationLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancer | *No description.* | | applicationTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationTargetGroup | *No description.* | @@ -7033,6 +7227,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `applicationLoadBalancer`Required ```typescript @@ -7067,12 +7291,44 @@ const appSyncMetricFactoryProps: AppSyncMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | api | aws-cdk-lib.aws_appsync.IGraphqlApi | the GraphQL API to monitor. | | fillTpsWithZeroes | boolean | whether the TPS should be filled with zeroes. | | rateComputationMethod | RateComputationMethod | method to compute TPS. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `api`Required ```typescript @@ -7125,6 +7381,8 @@ const appSyncMonitoringOptions: AppSyncMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -7144,6 +7402,36 @@ const appSyncMonitoringOptions: AppSyncMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -7346,6 +7634,8 @@ const appSyncMonitoringProps: AppSyncMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -7368,6 +7658,36 @@ const appSyncMonitoringProps: AppSyncMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -7608,6 +7928,8 @@ const auroraClusterMonitoringOptions: AuroraClusterMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -7622,6 +7944,36 @@ const auroraClusterMonitoringOptions: AuroraClusterMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -7774,6 +8126,8 @@ const auroraClusterMonitoringProps: AuroraClusterMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | cluster | aws-cdk-lib.aws_rds.IDatabaseCluster \| aws-cdk-lib.aws_rds.ServerlessCluster | database cluster (either this or `clusterIdentifier` need to be specified). | | clusterIdentifier | string | database cluster identifier (either this or `cluster` need to be specified). | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -7790,6 +8144,36 @@ const auroraClusterMonitoringProps: AuroraClusterMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `cluster`Optional ```typescript @@ -7968,10 +8352,42 @@ const autoScalingGroupMetricFactoryProps: AutoScalingGroupMetricFactoryProps = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | autoScalingGroup | aws-cdk-lib.aws_autoscaling.IAutoScalingGroup | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `autoScalingGroup`Required ```typescript @@ -7996,6 +8412,8 @@ const autoScalingGroupMonitoringOptions: AutoScalingGroupMonitoringOptions = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -8006,6 +8424,36 @@ const autoScalingGroupMonitoringOptions: AutoScalingGroupMonitoringOptions = { . --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -8118,6 +8566,8 @@ const autoScalingGroupMonitoringProps: AutoScalingGroupMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | autoScalingGroup | aws-cdk-lib.aws_autoscaling.IAutoScalingGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -8129,6 +8579,36 @@ const autoScalingGroupMonitoringProps: AutoScalingGroupMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `autoScalingGroup`Required ```typescript @@ -8923,6 +9403,44 @@ import { BaseMetricFactoryProps } from 'cdk-monitoring-constructs' const baseMetricFactoryProps: BaseMetricFactoryProps = { ... } ``` +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | + +--- + +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- ### BaseMonitoringProps @@ -8942,6 +9460,8 @@ const baseMonitoringProps: BaseMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -8952,6 +9472,36 @@ const baseMonitoringProps: BaseMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -9066,10 +9616,42 @@ const baseServiceMetricFactoryProps: BaseServiceMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | service | aws-cdk-lib.aws_ecs.IBaseService | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `service`Required ```typescript @@ -9177,6 +9759,8 @@ const billingMonitoringOptions: BillingMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -9188,6 +9772,36 @@ const billingMonitoringOptions: BillingMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -9310,6 +9924,8 @@ const billingMonitoringProps: BillingMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -9321,6 +9937,36 @@ const billingMonitoringProps: BillingMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -9443,10 +10089,42 @@ const certificateManagerMetricFactoryProps: CertificateManagerMetricFactoryProps | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | certificate | aws-cdk-lib.aws_certificatemanager.ICertificate | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `certificate`Required ```typescript @@ -9471,6 +10149,8 @@ const certificateManagerMonitoringOptions: CertificateManagerMonitoringOptions = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -9482,6 +10162,36 @@ const certificateManagerMonitoringOptions: CertificateManagerMonitoringOptions = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -9604,6 +10314,8 @@ const certificateManagerMonitoringProps: CertificateManagerMonitoringProps = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -9616,6 +10328,36 @@ const certificateManagerMonitoringProps: CertificateManagerMonitoringProps = { . --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -10140,6 +10882,8 @@ const cloudFrontDistributionMetricFactoryProps: CloudFrontDistributionMetricFact | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | distribution | aws-cdk-lib.aws_cloudfront.IDistribution | *No description.* | | additionalMetricsEnabled | boolean | Generate dashboard charts for additional CloudFront distribution metrics. | | fillTpsWithZeroes | boolean | *No description.* | @@ -10147,6 +10891,36 @@ const cloudFrontDistributionMetricFactoryProps: CloudFrontDistributionMetricFact --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `distribution`Required ```typescript @@ -10209,6 +10983,8 @@ const cloudFrontDistributionMonitoringOptions: CloudFrontDistributionMonitoringO | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -10219,6 +10995,36 @@ const cloudFrontDistributionMonitoringOptions: CloudFrontDistributionMonitoringO --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -10331,6 +11137,8 @@ const cloudFrontDistributionMonitoringProps: CloudFrontDistributionMonitoringPro | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | distribution | aws-cdk-lib.aws_cloudfront.IDistribution | *No description.* | | additionalMetricsEnabled | boolean | Generate dashboard charts for additional CloudFront distribution metrics. | | fillTpsWithZeroes | boolean | *No description.* | @@ -10349,6 +11157,36 @@ const cloudFrontDistributionMonitoringProps: CloudFrontDistributionMonitoringPro --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `distribution`Required ```typescript @@ -10549,10 +11387,42 @@ const cloudWatchLogsMetricFactoryProps: CloudWatchLogsMetricFactoryProps = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | logGroupName | string | Name of the log group to monitor. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `logGroupName`Required ```typescript @@ -10579,10 +11449,42 @@ const codeBuildProjectMetricFactoryProps: CodeBuildProjectMetricFactoryProps = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | project | aws-cdk-lib.aws_codebuild.IProject | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `project`Required ```typescript @@ -10607,6 +11509,8 @@ const codeBuildProjectMonitoringOptions: CodeBuildProjectMonitoringOptions = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -10622,6 +11526,36 @@ const codeBuildProjectMonitoringOptions: CodeBuildProjectMonitoringOptions = { . --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -10786,6 +11720,8 @@ const codeBuildProjectMonitoringProps: CodeBuildProjectMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | project | aws-cdk-lib.aws_codebuild.IProject | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -10802,6 +11738,36 @@ const codeBuildProjectMonitoringProps: CodeBuildProjectMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `project`Required ```typescript @@ -11683,6 +12649,8 @@ const customEc2ServiceMonitoringProps: CustomEc2ServiceMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -11707,6 +12675,36 @@ const customEc2ServiceMonitoringProps: CustomEc2ServiceMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -11976,6 +12974,8 @@ const customFargateServiceMonitoringProps: CustomFargateServiceMonitoringProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -12000,6 +13000,36 @@ const customFargateServiceMonitoringProps: CustomFargateServiceMonitoringProps = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -12820,6 +13850,8 @@ const customMonitoringProps: CustomMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -12834,6 +13866,36 @@ const customMonitoringProps: CustomMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -14245,10 +15307,42 @@ const documentDbMetricFactoryProps: DocumentDbMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | cluster | aws-cdk-lib.aws_docdb.IDatabaseCluster | database cluster. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `cluster`Required ```typescript @@ -14275,6 +15369,8 @@ const documentDbMonitoringOptions: DocumentDbMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -14286,6 +15382,36 @@ const documentDbMonitoringOptions: DocumentDbMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -14408,6 +15534,8 @@ const documentDbMonitoringProps: DocumentDbMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | cluster | aws-cdk-lib.aws_docdb.IDatabaseCluster | database cluster. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -14420,6 +15548,36 @@ const documentDbMonitoringProps: DocumentDbMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `cluster`Required ```typescript @@ -15115,11 +16273,43 @@ const dynamoTableGlobalSecondaryIndexMetricFactoryProps: DynamoTableGlobalSecond | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | globalSecondaryIndexName | string | *No description.* | | table | aws-cdk-lib.aws_dynamodb.ITable | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `globalSecondaryIndexName`Required ```typescript @@ -15154,6 +16344,8 @@ const dynamoTableGlobalSecondaryIndexMonitoringProps: DynamoTableGlobalSecondary | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | globalSecondaryIndexName | string | *No description.* | | table | aws-cdk-lib.aws_dynamodb.ITable | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -15168,6 +16360,36 @@ const dynamoTableGlobalSecondaryIndexMonitoringProps: DynamoTableGlobalSecondary --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `globalSecondaryIndexName`Required ```typescript @@ -15320,11 +16542,43 @@ const dynamoTableMetricFactoryProps: DynamoTableMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | table | aws-cdk-lib.aws_dynamodb.ITable | table to monitor. | | billingMode | aws-cdk-lib.aws_dynamodb.BillingMode | table billing mode. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `table`Required ```typescript @@ -15364,6 +16618,8 @@ const dynamoTableMonitoringOptions: DynamoTableMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -15389,6 +16645,36 @@ const dynamoTableMonitoringOptions: DynamoTableMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -15651,6 +16937,8 @@ const dynamoTableMonitoringProps: DynamoTableMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | table | aws-cdk-lib.aws_dynamodb.ITable | table to monitor. | | billingMode | aws-cdk-lib.aws_dynamodb.BillingMode | table billing mode. | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -15678,6 +16966,36 @@ const dynamoTableMonitoringProps: DynamoTableMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `table`Required ```typescript @@ -15968,6 +17286,8 @@ const ec2ApplicationLoadBalancerMonitoringProps: Ec2ApplicationLoadBalancerMonit | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | applicationLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancer | *No description.* | | applicationTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationTargetGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -16011,6 +17331,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `applicationLoadBalancer`Required ```typescript @@ -16280,11 +17630,43 @@ const eC2MetricFactoryProps: EC2MetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | autoScalingGroup | aws-cdk-lib.aws_autoscaling.IAutoScalingGroup | Auto-Scaling Group to monitor. | | instanceIds | string[] | Selected IDs of EC2 instances to monitor. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `autoScalingGroup`Optional ```typescript @@ -16325,6 +17707,8 @@ const eC2MonitoringOptions: EC2MonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | autoScalingGroup | aws-cdk-lib.aws_autoscaling.IAutoScalingGroup | Auto-Scaling Group to monitor. | | instanceIds | string[] | Selected IDs of EC2 instances to monitor. | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -16337,6 +17721,36 @@ const eC2MonitoringOptions: EC2MonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `autoScalingGroup`Optional ```typescript @@ -16475,6 +17889,8 @@ const eC2MonitoringProps: EC2MonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | autoScalingGroup | aws-cdk-lib.aws_autoscaling.IAutoScalingGroup | Auto-Scaling Group to monitor. | | instanceIds | string[] | Selected IDs of EC2 instances to monitor. | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -16487,6 +17903,36 @@ const eC2MonitoringProps: EC2MonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `autoScalingGroup`Optional ```typescript @@ -16628,6 +18074,8 @@ const ec2NetworkLoadBalancerMonitoringProps: Ec2NetworkLoadBalancerMonitoringPro | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | networkLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkLoadBalancer | *No description.* | | networkTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -16671,6 +18119,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `networkLoadBalancer`Required ```typescript @@ -16942,6 +18420,8 @@ const ec2ServiceMonitoringProps: Ec2ServiceMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -16964,6 +18444,36 @@ const ec2ServiceMonitoringProps: Ec2ServiceMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -17213,10 +18723,42 @@ const elastiCacheClusterMetricFactoryProps: ElastiCacheClusterMetricFactoryProps | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | clusterId | string | Cluster to monitor. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `clusterId`Optional ```typescript @@ -17244,6 +18786,8 @@ const elastiCacheClusterMonitoringOptions: ElastiCacheClusterMonitoringOptions = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -17261,6 +18805,36 @@ const elastiCacheClusterMonitoringOptions: ElastiCacheClusterMonitoringOptions = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -17460,6 +19034,8 @@ const elastiCacheClusterMonitoringProps: ElastiCacheClusterMonitoringProps = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | clusterId | string | Cluster to monitor. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -17478,6 +19054,36 @@ const elastiCacheClusterMonitoringProps: ElastiCacheClusterMonitoringProps = { . --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `clusterId`Optional ```typescript @@ -18411,6 +20017,8 @@ const fargateApplicationLoadBalancerMonitoringProps: FargateApplicationLoadBalan | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | applicationLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationLoadBalancer | *No description.* | | applicationTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.IApplicationTargetGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -18454,6 +20062,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `applicationLoadBalancer`Required ```typescript @@ -18726,6 +20364,8 @@ const fargateNetworkLoadBalancerMonitoringProps: FargateNetworkLoadBalancerMonit | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | networkLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkLoadBalancer | *No description.* | | networkTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -18769,6 +20409,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `networkLoadBalancer`Required ```typescript @@ -19040,6 +20710,8 @@ const fargateServiceMonitoringProps: FargateServiceMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -19062,6 +20734,36 @@ const fargateServiceMonitoringProps: FargateServiceMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -19672,10 +21374,42 @@ const fluentBitMetricFactoryProps: FluentBitMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | namespace | string | Namespace that metrics will be emitted to. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `namespace`Optional ```typescript @@ -19703,6 +21437,8 @@ const fluentBitMonitoringProps: FluentBitMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | namespace | string | Namespace that metrics will be emitted to. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -19716,6 +21452,36 @@ const fluentBitMonitoringProps: FluentBitMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `namespace`Optional ```typescript @@ -20227,11 +21993,43 @@ const glueJobMetricFactoryProps: GlueJobMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | jobName | string | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `jobName`Required ```typescript @@ -20267,6 +22065,8 @@ const glueJobMonitoringOptions: GlueJobMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | jobName | string | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -20283,6 +22083,36 @@ const glueJobMonitoringOptions: GlueJobMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `jobName`Required ```typescript @@ -20456,6 +22286,8 @@ const glueJobMonitoringProps: GlueJobMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | jobName | string | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -20472,6 +22304,36 @@ const glueJobMonitoringProps: GlueJobMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `jobName`Required ```typescript @@ -22799,10 +24661,42 @@ const kinesisDataAnalyticsMetricFactoryProps: KinesisDataAnalyticsMetricFactoryP | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | application | string | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `application`Required ```typescript @@ -22827,6 +24721,8 @@ const kinesisDataAnalyticsMonitoringOptions: KinesisDataAnalyticsMonitoringOptio | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -22839,6 +24735,36 @@ const kinesisDataAnalyticsMonitoringOptions: KinesisDataAnalyticsMonitoringOptio --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -22971,6 +24897,8 @@ const kinesisDataAnalyticsMonitoringProps: KinesisDataAnalyticsMonitoringProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | application | string | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -22984,6 +24912,36 @@ const kinesisDataAnalyticsMonitoringProps: KinesisDataAnalyticsMonitoringProps = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `application`Required ```typescript @@ -23126,10 +25084,42 @@ const kinesisDataStreamMetricFactoryProps: KinesisDataStreamMetricFactoryProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | streamName | string | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `streamName`Required ```typescript @@ -23154,6 +25144,8 @@ const kinesisDataStreamMonitoringOptions: KinesisDataStreamMonitoringOptions = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -23170,6 +25162,36 @@ const kinesisDataStreamMonitoringOptions: KinesisDataStreamMonitoringOptions = { --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -23342,6 +25364,8 @@ const kinesisDataStreamMonitoringProps: KinesisDataStreamMonitoringProps = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | streamName | string | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -23359,6 +25383,36 @@ const kinesisDataStreamMonitoringProps: KinesisDataStreamMonitoringProps = { ... --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `streamName`Required ```typescript @@ -23541,10 +25595,42 @@ const kinesisFirehoseMetricFactoryProps: KinesisFirehoseMetricFactoryProps = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | deliveryStreamName | string | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `deliveryStreamName`Required ```typescript @@ -23569,6 +25655,8 @@ const kinesisFirehoseMonitoringOptions: KinesisFirehoseMonitoringOptions = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -23583,6 +25671,36 @@ const kinesisFirehoseMonitoringOptions: KinesisFirehoseMonitoringOptions = { ... --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -23735,6 +25853,8 @@ const kinesisFirehoseMonitoringProps: KinesisFirehoseMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | deliveryStreamName | string | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -23750,6 +25870,36 @@ const kinesisFirehoseMonitoringProps: KinesisFirehoseMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `deliveryStreamName`Required ```typescript @@ -23912,6 +26062,8 @@ const lambdaFunctionMetricFactoryProps: LambdaFunctionMetricFactoryProps = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | *No description.* | | fillTpsWithZeroes | boolean | *No description.* | | lambdaInsightsEnabled | boolean | Generate dashboard charts for Lambda Insights metrics. | @@ -23919,6 +26071,36 @@ const lambdaFunctionMetricFactoryProps: LambdaFunctionMetricFactoryProps = { ... --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `lambdaFunction`Required ```typescript @@ -23981,6 +26163,8 @@ const lambdaFunctionMonitoringOptions: LambdaFunctionMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -24012,6 +26196,36 @@ const lambdaFunctionMonitoringOptions: LambdaFunctionMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -24334,6 +26548,8 @@ const lambdaFunctionMonitoringProps: LambdaFunctionMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | *No description.* | | fillTpsWithZeroes | boolean | *No description.* | | lambdaInsightsEnabled | boolean | Generate dashboard charts for Lambda Insights metrics. | @@ -24369,6 +26585,36 @@ const lambdaFunctionMonitoringProps: LambdaFunctionMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `lambdaFunction`Required ```typescript @@ -25459,6 +27705,8 @@ const logMonitoringProps: LogMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -25475,6 +27723,36 @@ const logMonitoringProps: LogMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -30686,9 +32964,9 @@ const metricFactoryDefaults: MetricFactoryDefaults = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | | account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | namespace | string | Each metric exists in a namespace. | | period | aws-cdk-lib.Duration | Metric period. | -| region | string | Region where the metrics exist. | --- @@ -30707,6 +32985,21 @@ Account where the metrics exist. --- +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `namespace`Optional ```typescript @@ -30736,21 +33029,6 @@ Default value is used if not defined. --- -##### `region`Optional - -```typescript -public readonly region: string; -``` - -- *Type:* string -- *Default:* The region configured by the construct holding the Monitoring construct - -Region where the metrics exist. - -> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) - ---- - ### MetricFactoryProps #### Initializer @@ -34192,6 +36470,8 @@ const networkLoadBalancerMetricFactoryProps: NetworkLoadBalancerMetricFactoryPro | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | networkLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkLoadBalancer | *No description.* | | networkTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup | *No description.* | @@ -34216,6 +36496,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `networkLoadBalancer`Required ```typescript @@ -34251,6 +36561,8 @@ const networkLoadBalancerMonitoringProps: NetworkLoadBalancerMonitoringProps = { | **Name** | **Type** | **Description** | | --- | --- | --- | | invertStatisticsOfTaskCountEnabled | boolean | Invert the statistics of `HealthyHostCount` and `UnHealthyHostCount`. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | networkLoadBalancer | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkLoadBalancer | *No description.* | | networkTargetGroup | aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -34286,6 +36598,36 @@ https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-cl --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `networkLoadBalancer`Required ```typescript @@ -35535,12 +37877,44 @@ const openSearchClusterMetricFactoryProps: OpenSearchClusterMetricFactoryProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | domain | aws-cdk-lib.aws_elasticsearch.IDomain \| aws-cdk-lib.aws_elasticsearch.CfnDomain \| aws-cdk-lib.aws_opensearchservice.IDomain \| aws-cdk-lib.aws_opensearchservice.CfnDomain | *No description.* | | fillTpsWithZeroes | boolean | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `domain`Required ```typescript @@ -35587,6 +37961,8 @@ const openSearchClusterMonitoringOptions: OpenSearchClusterMonitoringOptions = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -35614,6 +37990,36 @@ const openSearchClusterMonitoringOptions: OpenSearchClusterMonitoringOptions = { --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -35896,6 +38302,8 @@ const openSearchClusterMonitoringProps: OpenSearchClusterMonitoringProps = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | domain | aws-cdk-lib.aws_elasticsearch.IDomain \| aws-cdk-lib.aws_elasticsearch.CfnDomain \| aws-cdk-lib.aws_opensearchservice.IDomain \| aws-cdk-lib.aws_opensearchservice.CfnDomain | *No description.* | | fillTpsWithZeroes | boolean | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | @@ -35926,6 +38334,36 @@ const openSearchClusterMonitoringProps: OpenSearchClusterMonitoringProps = { ... --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `domain`Required ```typescript @@ -37676,6 +40114,8 @@ const queueProcessingEc2ServiceMonitoringProps: QueueProcessingEc2ServiceMonitor | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -37690,6 +40130,36 @@ const queueProcessingEc2ServiceMonitoringProps: QueueProcessingEc2ServiceMonitor --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -37842,6 +40312,8 @@ const queueProcessingFargateServiceMonitoringProps: QueueProcessingFargateServic | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -37856,6 +40328,36 @@ const queueProcessingFargateServiceMonitoringProps: QueueProcessingFargateServic --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -38008,11 +40510,43 @@ const rdsClusterMetricFactoryProps: RdsClusterMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | cluster | aws-cdk-lib.aws_rds.IDatabaseCluster \| aws-cdk-lib.aws_rds.ServerlessCluster | database cluster (either this or `clusterIdentifier` need to be specified). | | clusterIdentifier | string | database cluster identifier (either this or `cluster` need to be specified). | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `cluster`Optional ```typescript @@ -38053,6 +40587,8 @@ const rdsClusterMonitoringOptions: RdsClusterMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -38067,6 +40603,36 @@ const rdsClusterMonitoringOptions: RdsClusterMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -38219,6 +40785,8 @@ const rdsClusterMonitoringProps: RdsClusterMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | cluster | aws-cdk-lib.aws_rds.IDatabaseCluster \| aws-cdk-lib.aws_rds.ServerlessCluster | database cluster (either this or `clusterIdentifier` need to be specified). | | clusterIdentifier | string | database cluster identifier (either this or `cluster` need to be specified). | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -38235,6 +40803,36 @@ const rdsClusterMonitoringProps: RdsClusterMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `cluster`Optional ```typescript @@ -38413,10 +41011,42 @@ const rdsInstanceMetricFactoryProps: RdsInstanceMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | instance | aws-cdk-lib.aws_rds.IDatabaseInstance | database instance. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `instance`Required ```typescript @@ -38443,6 +41073,8 @@ const rdsInstanceMonitoringOptions: RdsInstanceMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -38457,6 +41089,36 @@ const rdsInstanceMonitoringOptions: RdsInstanceMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -38609,6 +41271,8 @@ const rdsInstanceMonitoringProps: RdsInstanceMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | instance | aws-cdk-lib.aws_rds.IDatabaseInstance | database instance. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -38624,6 +41288,36 @@ const rdsInstanceMonitoringProps: RdsInstanceMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `instance`Required ```typescript @@ -39506,10 +42200,42 @@ const redshiftClusterMetricFactoryProps: RedshiftClusterMetricFactoryProps = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | clusterIdentifier | string | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `clusterIdentifier`Required ```typescript @@ -39534,6 +42260,8 @@ const redshiftClusterMonitoringOptions: RedshiftClusterMonitoringOptions = { ... | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -39549,6 +42277,36 @@ const redshiftClusterMonitoringOptions: RedshiftClusterMonitoringOptions = { ... --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -39711,6 +42469,8 @@ const redshiftClusterMonitoringProps: RedshiftClusterMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | clusterIdentifier | string | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -39727,6 +42487,36 @@ const redshiftClusterMonitoringProps: RedshiftClusterMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `clusterIdentifier`Required ```typescript @@ -40617,11 +43407,43 @@ const s3BucketMetricFactoryProps: S3BucketMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | bucket | aws-cdk-lib.aws_s3.IBucket | *No description.* | | storageType | StorageType | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `bucket`Required ```typescript @@ -40656,6 +43478,8 @@ const s3BucketMonitoringOptions: S3BucketMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -40666,6 +43490,36 @@ const s3BucketMonitoringOptions: S3BucketMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -40778,6 +43632,8 @@ const s3BucketMonitoringProps: S3BucketMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | bucket | aws-cdk-lib.aws_s3.IBucket | *No description.* | | storageType | StorageType | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -40790,6 +43646,36 @@ const s3BucketMonitoringProps: S3BucketMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `bucket`Required ```typescript @@ -40922,6 +43808,8 @@ const secretsManagerMonitoringOptions: SecretsManagerMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -40935,6 +43823,36 @@ const secretsManagerMonitoringOptions: SecretsManagerMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -41077,6 +43995,8 @@ const secretsManagerMonitoringProps: SecretsManagerMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -41090,6 +44010,36 @@ const secretsManagerMonitoringProps: SecretsManagerMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -41232,10 +44182,42 @@ const secretsManagerSecretMetricFactoryProps: SecretsManagerSecretMetricFactoryP | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | secret | aws-cdk-lib.aws_secretsmanager.ISecret | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `secret`Required ```typescript @@ -41260,6 +44242,8 @@ const secretsManagerSecretMonitoringOptions: SecretsManagerSecretMonitoringOptio | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -41274,6 +44258,36 @@ const secretsManagerSecretMonitoringOptions: SecretsManagerSecretMonitoringOptio --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -41433,6 +44447,8 @@ const secretsManagerSecretMonitoringProps: SecretsManagerSecretMonitoringProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | secret | aws-cdk-lib.aws_secretsmanager.ISecret | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -41448,6 +44464,36 @@ const secretsManagerSecretMonitoringProps: SecretsManagerSecretMonitoringProps = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `secret`Required ```typescript @@ -41617,6 +44663,8 @@ const simpleEc2ServiceMonitoringProps: SimpleEc2ServiceMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -41634,6 +44682,36 @@ const simpleEc2ServiceMonitoringProps: SimpleEc2ServiceMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -41826,6 +44904,8 @@ const simpleFargateServiceMonitoringProps: SimpleFargateServiceMonitoringProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -41843,6 +44923,36 @@ const simpleFargateServiceMonitoringProps: SimpleFargateServiceMonitoringProps = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -42185,10 +45295,42 @@ const snsTopicMetricFactoryProps: SnsTopicMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | topic | aws-cdk-lib.aws_sns.ITopic | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `topic`Required ```typescript @@ -42213,6 +45355,8 @@ const snsTopicMonitoringOptions: SnsTopicMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -42226,6 +45370,36 @@ const snsTopicMonitoringOptions: SnsTopicMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -42368,6 +45542,8 @@ const snsTopicMonitoringProps: SnsTopicMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | topic | aws-cdk-lib.aws_sns.ITopic | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | @@ -42382,6 +45558,36 @@ const snsTopicMonitoringProps: SnsTopicMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `topic`Required ```typescript @@ -42534,10 +45740,42 @@ const sqsQueueMetricFactoryProps: SqsQueueMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | queue | aws-cdk-lib.aws_sqs.IQueue | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `queue`Required ```typescript @@ -42568,6 +45806,8 @@ const sqsQueueMonitoringOptions: SqsQueueMonitoringOptions = { ... } | addQueueMaxTimeToDrainMessagesAlarm | {[ key: string ]: MaxTimeToDrainThreshold} | *No description.* | | addQueueMinIncomingMessagesAlarm | {[ key: string ]: MinIncomingMessagesCountThreshold} | *No description.* | | addQueueMinSizeAlarm | {[ key: string ]: MinMessageCountThreshold} | *No description.* | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -42638,6 +45878,36 @@ public readonly addQueueMinSizeAlarm: {[ key: string ]: MinMessageCountThreshold --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -42750,6 +46020,8 @@ const sqsQueueMonitoringProps: SqsQueueMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | queue | aws-cdk-lib.aws_sqs.IQueue | *No description.* | | addQueueMaxIncomingMessagesAlarm | {[ key: string ]: MaxIncomingMessagesCountThreshold} | *No description.* | | addQueueMaxMessageAgeAlarm | {[ key: string ]: MaxMessageAgeThreshold} | *No description.* | @@ -42767,6 +46039,36 @@ const sqsQueueMonitoringProps: SqsQueueMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `queue`Required ```typescript @@ -42949,6 +46251,8 @@ const sqsQueueMonitoringWithDlqProps: SqsQueueMonitoringWithDlqProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | queue | aws-cdk-lib.aws_sqs.IQueue | *No description.* | | addQueueMaxIncomingMessagesAlarm | {[ key: string ]: MaxIncomingMessagesCountThreshold} | *No description.* | | addQueueMaxMessageAgeAlarm | {[ key: string ]: MaxMessageAgeThreshold} | *No description.* | @@ -42971,6 +46275,36 @@ const sqsQueueMonitoringWithDlqProps: SqsQueueMonitoringWithDlqProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `queue`Required ```typescript @@ -43213,11 +46547,43 @@ const stepFunctionActivityMetricFactoryProps: StepFunctionActivityMetricFactoryP | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | activity | aws-cdk-lib.aws_stepfunctions.IActivity | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `activity`Required ```typescript @@ -43253,6 +46619,8 @@ const stepFunctionActivityMonitoringProps: StepFunctionActivityMonitoringProps = | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | activity | aws-cdk-lib.aws_stepfunctions.IActivity | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -43271,6 +46639,36 @@ const stepFunctionActivityMonitoringProps: StepFunctionActivityMonitoringProps = --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `activity`Required ```typescript @@ -43464,11 +46862,43 @@ const stepFunctionLambdaIntegrationMetricFactoryProps: StepFunctionLambdaIntegra | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `lambdaFunction`Required ```typescript @@ -43504,6 +46934,8 @@ const stepFunctionLambdaIntegrationMonitoringProps: StepFunctionLambdaIntegratio | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -43522,6 +46954,36 @@ const stepFunctionLambdaIntegrationMonitoringProps: StepFunctionLambdaIntegratio --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `lambdaFunction`Required ```typescript @@ -43715,11 +47177,43 @@ const stepFunctionMetricFactoryProps: StepFunctionMetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | stateMachine | aws-cdk-lib.aws_stepfunctions.IStateMachine | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `stateMachine`Required ```typescript @@ -43755,6 +47249,8 @@ const stepFunctionMonitoringOptions: StepFunctionMonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -43774,6 +47270,36 @@ const stepFunctionMonitoringOptions: StepFunctionMonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -43978,6 +47504,8 @@ const stepFunctionMonitoringProps: StepFunctionMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | stateMachine | aws-cdk-lib.aws_stepfunctions.IStateMachine | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -43999,6 +47527,36 @@ const stepFunctionMonitoringProps: StepFunctionMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `stateMachine`Required ```typescript @@ -44224,11 +47782,43 @@ const stepFunctionServiceIntegrationMetricFactoryProps: StepFunctionServiceInteg | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | serviceIntegrationResourceArn | string | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `serviceIntegrationResourceArn`Required ```typescript @@ -44264,6 +47854,8 @@ const stepFunctionServiceIntegrationMonitoringProps: StepFunctionServiceIntegrat | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | serviceIntegrationResourceArn | string | *No description.* | | rateComputationMethod | RateComputationMethod | *No description.* | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -44282,6 +47874,36 @@ const stepFunctionServiceIntegrationMonitoringProps: StepFunctionServiceIntegrat --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `serviceIntegrationResourceArn`Required ```typescript @@ -44475,11 +48097,43 @@ const syntheticsCanaryMetricFactoryProps: SyntheticsCanaryMetricFactoryProps = { | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | canary | aws-cdk-lib.aws_synthetics.Canary | CloudWatch Canary to monitor. | | rateComputationMethod | RateComputationMethod | Method used to calculate relative rates. | --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `canary`Required ```typescript @@ -44519,6 +48173,8 @@ const syntheticsCanaryMonitoringOptions: SyntheticsCanaryMonitoringOptions = { . | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -44534,6 +48190,36 @@ const syntheticsCanaryMonitoringOptions: SyntheticsCanaryMonitoringOptions = { . --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -44696,6 +48382,8 @@ const syntheticsCanaryMonitoringProps: SyntheticsCanaryMonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | canary | aws-cdk-lib.aws_synthetics.Canary | CloudWatch Canary to monitor. | | rateComputationMethod | RateComputationMethod | Method used to calculate relative rates. | | alarmFriendlyName | string | Plain name, used in naming alarms. | @@ -44713,6 +48401,36 @@ const syntheticsCanaryMonitoringProps: SyntheticsCanaryMonitoringProps = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `canary`Required ```typescript @@ -46447,18 +50165,24 @@ const wafV2MetricFactoryProps: WafV2MetricFactoryProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | -| acl | aws-cdk-lib.aws_wafv2.CfnWebACL | *No description.* | -| region | string | Required if acl has a "REGIONAL" scope. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | +| acl | aws-cdk-lib.aws_wafv2.CfnWebACL | Note that the "region" prop is required if this has a "REGIONAL" scope. | --- -##### `acl`Required +##### `account`Optional ```typescript -public readonly acl: CfnWebACL; +public readonly account: string; ``` -- *Type:* aws-cdk-lib.aws_wafv2.CfnWebACL +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) --- @@ -46469,8 +50193,23 @@ public readonly region: string; ``` - *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. -Required if acl has a "REGIONAL" scope. +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `acl`Required + +```typescript +public readonly acl: CfnWebACL; +``` + +- *Type:* aws-cdk-lib.aws_wafv2.CfnWebACL + +Note that the "region" prop is required if this has a "REGIONAL" scope. --- @@ -46488,6 +50227,8 @@ const wafV2MonitoringOptions: WafV2MonitoringOptions = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -46498,6 +50239,36 @@ const wafV2MonitoringOptions: WafV2MonitoringOptions = { ... } --- +##### `account`Optional + +```typescript +public readonly account: string; +``` + +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `region`Optional + +```typescript +public readonly region: string; +``` + +- *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + ##### `alarmFriendlyName`Optional ```typescript @@ -46610,8 +50381,9 @@ const wafV2MonitoringProps: WafV2MonitoringProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | -| acl | aws-cdk-lib.aws_wafv2.CfnWebACL | *No description.* | -| region | string | Required if acl has a "REGIONAL" scope. | +| account | string | Account where the metrics exist. | +| region | string | Region where the metrics exist. | +| acl | aws-cdk-lib.aws_wafv2.CfnWebACL | Note that the "region" prop is required if this has a "REGIONAL" scope. | | alarmFriendlyName | string | Plain name, used in naming alarms. | | humanReadableName | string | Human-readable name is a freeform string, used as a caption or description. | | localAlarmNamePrefixOverride | string | If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value. | @@ -46624,13 +50396,18 @@ const wafV2MonitoringProps: WafV2MonitoringProps = { ... } --- -##### `acl`Required +##### `account`Optional ```typescript -public readonly acl: CfnWebACL; +public readonly account: string; ``` -- *Type:* aws-cdk-lib.aws_wafv2.CfnWebACL +- *Type:* string +- *Default:* The account configured by the construct holding the Monitoring construct + +Account where the metrics exist. + +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) --- @@ -46641,8 +50418,23 @@ public readonly region: string; ``` - *Type:* string +- *Default:* The region configured by the construct holding the Monitoring construct + +Region where the metrics exist. -Required if acl has a "REGIONAL" scope. +> [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html) + +--- + +##### `acl`Required + +```typescript +public readonly acl: CfnWebACL; +``` + +- *Type:* aws-cdk-lib.aws_wafv2.CfnWebACL + +Note that the "region" prop is required if this has a "REGIONAL" scope. --- @@ -50734,13 +54526,13 @@ public getStateMachineUrl(stateMachineArn: string): string ```typescript import { BaseMetricFactory } from 'cdk-monitoring-constructs' -new BaseMetricFactory(metricFactory: MetricFactory, _props: BaseMetricFactoryProps) +new BaseMetricFactory(metricFactory: MetricFactory, props: BaseMetricFactoryProps) ``` | **Name** | **Type** | **Description** | | --- | --- | --- | | metricFactory | MetricFactory | *No description.* | -| _props | BaseMetricFactoryProps | *No description.* | +| props | BaseMetricFactoryProps | *No description.* | --- @@ -50750,7 +54542,7 @@ new BaseMetricFactory(metricFactory: MetricFactory, _props: BaseMetricFactoryPro --- -##### `_props`Required +##### `props`Required - *Type:* BaseMetricFactoryProps @@ -60452,13 +64244,14 @@ public readonly streamUrl: string; ```typescript import { LambdaFunctionEnhancedMetricFactory } from 'cdk-monitoring-constructs' -new LambdaFunctionEnhancedMetricFactory(metricFactory: MetricFactory, lambdaFunction: IFunction) +new LambdaFunctionEnhancedMetricFactory(metricFactory: MetricFactory, lambdaFunction: IFunction, props: BaseMetricFactoryProps) ``` | **Name** | **Type** | **Description** | | --- | --- | --- | | metricFactory | MetricFactory | *No description.* | | lambdaFunction | aws-cdk-lib.aws_lambda.IFunction | *No description.* | +| props | BaseMetricFactoryProps | *No description.* | --- @@ -60474,6 +64267,12 @@ new LambdaFunctionEnhancedMetricFactory(metricFactory: MetricFactory, lambdaFunc --- +##### `props`Required + +- *Type:* BaseMetricFactoryProps + +--- + #### Methods | **Name** | **Description** | @@ -66835,12 +70634,13 @@ public addMinSecretCountAlarm(metric: Metric | MathExpression, props: MinSecretC ```typescript import { SecretsManagerMetricFactory } from 'cdk-monitoring-constructs' -new SecretsManagerMetricFactory(metricFactory: MetricFactory) +new SecretsManagerMetricFactory(metricFactory: MetricFactory, props: BaseMetricFactoryProps) ``` | **Name** | **Type** | **Description** | | --- | --- | --- | | metricFactory | MetricFactory | *No description.* | +| props | BaseMetricFactoryProps | *No description.* | --- @@ -66850,6 +70650,12 @@ new SecretsManagerMetricFactory(metricFactory: MetricFactory) --- +##### `props`Required + +- *Type:* BaseMetricFactoryProps + +--- + #### Methods | **Name** | **Description** | @@ -73050,7 +76856,7 @@ name of dashboard for which widgets are generated. ##### `createMetrics` ```typescript -public createMetrics(metricFactory: MetricFactory, metricName: string, statistic: MetricStatistic): IMetric[] +public createMetrics(metricFactory: MetricFactory, metricName: string, statistic: MetricStatistic, region?: string, account?: string): IMetric[] ``` ###### `metricFactory`Required @@ -73071,6 +76877,18 @@ public createMetrics(metricFactory: MetricFactory, metricName: string, statistic --- +###### `region`Optional + +- *Type:* string + +--- + +###### `account`Optional + +- *Type:* string + +--- + ### ILoadBalancerMetricFactory diff --git a/lib/common/metric/BaseMetricFactory.ts b/lib/common/metric/BaseMetricFactory.ts index b3c2bec2..3dc32a6c 100644 --- a/lib/common/metric/BaseMetricFactory.ts +++ b/lib/common/metric/BaseMetricFactory.ts @@ -1,15 +1,33 @@ import { MetricFactory } from "./MetricFactory"; export interface BaseMetricFactoryProps { - // TODO: this will eventually include other common things like account/region + /** + * Region where the metrics exist. + * + * @default The region configured by the construct holding the Monitoring construct + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html + */ + readonly region?: string; + + /** + * Account where the metrics exist. + * + * @default The account configured by the construct holding the Monitoring construct + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html + */ + readonly account?: string; } export abstract class BaseMetricFactory< PropsType extends BaseMetricFactoryProps, > { protected readonly metricFactory: MetricFactory; + protected readonly account?: string; + protected readonly region?: string; - constructor(metricFactory: MetricFactory, _props: PropsType) { + constructor(metricFactory: MetricFactory, props: PropsType) { this.metricFactory = metricFactory; + this.account = props.account; + this.region = props.region; } } diff --git a/lib/common/metric/MetricFactory.ts b/lib/common/metric/MetricFactory.ts index 4e3fabac..2cfebb65 100644 --- a/lib/common/metric/MetricFactory.ts +++ b/lib/common/metric/MetricFactory.ts @@ -31,21 +31,6 @@ export interface MetricFactoryDefaults extends BaseMetricFactoryProps { * @default - DefaultMetricPeriod */ readonly period?: Duration; - - /** - * Region where the metrics exist. - * - * @default The region configured by the construct holding the Monitoring construct - * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html - */ - readonly region?: string; - /** - * Account where the metrics exist. - * - * @default The account configured by the construct holding the Monitoring construct - * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html - */ - readonly account?: string; } export interface MetricFactoryProps { diff --git a/lib/monitoring/aws-acm/CertificateManagerMetricFactory.ts b/lib/monitoring/aws-acm/CertificateManagerMetricFactory.ts index 9422ce1f..fb728700 100644 --- a/lib/monitoring/aws-acm/CertificateManagerMetricFactory.ts +++ b/lib/monitoring/aws-acm/CertificateManagerMetricFactory.ts @@ -38,6 +38,9 @@ export class CertificateManagerMetricFactory extends BaseMetricFactory { return metricFactory.createMetric( @@ -71,6 +80,9 @@ class SelectedInstancesStrategy implements IEC2MetricFactoryStrategy { resolveDimensions(this.autoScalingGroup, instanceId), undefined, EC2Namespace, + undefined, + region, + account, ); }); } @@ -84,6 +96,8 @@ class AllInstancesStrategy implements IEC2MetricFactoryStrategy { metricFactory: MetricFactory, metricName: string, statistic: MetricStatistic, + region?: string, + account?: string, ) { return [ metricFactory.createMetricSearch( @@ -91,6 +105,10 @@ class AllInstancesStrategy implements IEC2MetricFactoryStrategy { { InstanceId: undefined as unknown as string }, statistic, EC2Namespace, + undefined, + undefined, + region, + account, ), ]; } @@ -157,7 +175,7 @@ export class EC2MetricFactory extends BaseMetricFactory { * CloudWatch when the instance is not allocated a full processor core. */ metricAverageCpuUtilisationPercent() { - return this.createMetrics("CPUUtilization", MetricStatistic.AVERAGE); + return this.metric("CPUUtilization", MetricStatistic.AVERAGE); } /** @@ -197,7 +215,7 @@ export class EC2MetricFactory extends BaseMetricFactory { * This metric identifies the volume of incoming network traffic to a single instance. */ metricAverageNetworkInRateBytes() { - return this.createMetrics("NetworkIn", MetricStatistic.AVERAGE); + return this.metric("NetworkIn", MetricStatistic.AVERAGE); } /** @@ -205,7 +223,7 @@ export class EC2MetricFactory extends BaseMetricFactory { * This metric identifies the volume of outgoing network traffic from a single instance. */ metricAverageNetworkOutRateBytes() { - return this.createMetrics("NetworkOut", MetricStatistic.AVERAGE); + return this.metric("NetworkOut", MetricStatistic.AVERAGE); } private createDiskMetrics(metricName: string, statistic: MetricStatistic) { @@ -235,7 +253,7 @@ export class EC2MetricFactory extends BaseMetricFactory { }); } - private createMetrics(metricName: string, statistic: MetricStatistic) { + private metric(metricName: string, statistic: MetricStatistic) { return this.strategy.createMetrics( this.metricFactory, metricName, diff --git a/lib/monitoring/aws-ecs-patterns/BaseServiceMetricFactory.ts b/lib/monitoring/aws-ecs-patterns/BaseServiceMetricFactory.ts index b9b4f031..944eaaf2 100644 --- a/lib/monitoring/aws-ecs-patterns/BaseServiceMetricFactory.ts +++ b/lib/monitoring/aws-ecs-patterns/BaseServiceMetricFactory.ts @@ -49,6 +49,9 @@ export class BaseServiceMetricFactory extends BaseMetricFactory { protected readonly lambdaFunction: IFunction; - constructor(metricFactory: MetricFactory, lambdaFunction: IFunction) { - this.metricFactory = metricFactory; + constructor( + metricFactory: MetricFactory, + lambdaFunction: IFunction, + props: LambdaFunctionEnhancedMetricFactoryProps, + ) { + super(metricFactory, props); + this.lambdaFunction = lambdaFunction; } @@ -98,6 +109,9 @@ export class LambdaFunctionEnhancedMetricFactory { }, color, LambdaInsightsNamespace, + undefined, + this.region, + this.account, ); } } diff --git a/lib/monitoring/aws-lambda/LambdaFunctionMetricFactory.ts b/lib/monitoring/aws-lambda/LambdaFunctionMetricFactory.ts index 02ad07d6..63114d62 100644 --- a/lib/monitoring/aws-lambda/LambdaFunctionMetricFactory.ts +++ b/lib/monitoring/aws-lambda/LambdaFunctionMetricFactory.ts @@ -85,6 +85,8 @@ export class LambdaFunctionMetricFactory extends BaseMetricFactory { + constructor( + metricFactory: MetricFactory, + props: SecretsManagerMetricFactoryProps, + ) { + super(metricFactory, props); } metricSecretCount() { @@ -32,6 +40,8 @@ export class SecretsManagerMetricFactory { undefined, NAMESPACE, DEFAULT_METRIC_PERIOD, + this.region, + this.account, ); } } diff --git a/lib/monitoring/aws-secretsmanager/SecretsManagerMonitoring.ts b/lib/monitoring/aws-secretsmanager/SecretsManagerMonitoring.ts index 5b4ca661..9bbfb5bf 100644 --- a/lib/monitoring/aws-secretsmanager/SecretsManagerMonitoring.ts +++ b/lib/monitoring/aws-secretsmanager/SecretsManagerMonitoring.ts @@ -64,6 +64,7 @@ export class SecretsManagerMonitoring extends Monitoring { const metricFactory = new SecretsManagerMetricFactory( scope.createMetricFactory(), + props, ); this.secretsCountMetric = metricFactory.metricSecretCount(); diff --git a/lib/monitoring/aws-secretsmanager/SecretsManagerSecretMetricFactory.ts b/lib/monitoring/aws-secretsmanager/SecretsManagerSecretMetricFactory.ts index 5b59e299..e54a0e1b 100644 --- a/lib/monitoring/aws-secretsmanager/SecretsManagerSecretMetricFactory.ts +++ b/lib/monitoring/aws-secretsmanager/SecretsManagerSecretMetricFactory.ts @@ -40,6 +40,9 @@ export class SecretsManagerSecretMetricFactory extends BaseMetricFactory { protected readonly namespace: string; protected readonly scope: MonitoringScope; constructor(scope: MonitoringScope, props: FluentBitMetricFactoryProps) { + super(scope.createMetricFactory(), props); + this.scope = scope; - this.metricFactory = scope.createMetricFactory(); this.namespace = props.namespace ?? this.metricFactory.getNamespaceWithFallback(props.namespace); @@ -61,6 +66,8 @@ export class FluentBitMetricFactory { ); return metricFilter.metric({ statistic: MetricStatistic.MAX, + region: this.region, + account: this.account, }); } @@ -78,10 +85,11 @@ export class FluentBitMetricFactory { metricValue: `${valueString}`, }, ); - const metric = metricFilter.metric({ + return metricFilter.metric({ statistic: MetricStatistic.MAX, + region: this.region, + account: this.account, }); - return metric; }); } diff --git a/test/facade/MonitoringFacade.test.ts b/test/facade/MonitoringFacade.test.ts index be55390d..cd5c9dcb 100644 --- a/test/facade/MonitoringFacade.test.ts +++ b/test/facade/MonitoringFacade.test.ts @@ -1,11 +1,14 @@ -import { Stack } from "aws-cdk-lib"; +import { Duration, Stack } from "aws-cdk-lib"; import { Capture, Template } from "aws-cdk-lib/assertions"; import { TextWidget } from "aws-cdk-lib/aws-cloudwatch"; +import { Table } from "aws-cdk-lib/aws-dynamodb"; +import { Topic } from "aws-cdk-lib/aws-sns"; import { DefaultDashboardFactory, DynamicDashboardFactory, MonitoringFacade, SingleWidgetDashboardSegment, + notifySns, } from "../../lib"; describe("test of defaults", () => { @@ -64,6 +67,50 @@ describe("test of defaults", () => { }); }); + test("typical usage", () => { + const stack = new Stack(); + const onAlarmTopic = new Topic(stack, "OnAlarmTopic", { + topicName: "Alarm", + }); + const facade = new MonitoringFacade(stack, "MyAppFacade", { + metricFactoryDefaults: { + region: "us-east-1", + account: "09876543210", + }, + alarmFactoryDefaults: { + alarmNamePrefix: "MyApp", + actionsEnabled: true, + action: notifySns(onAlarmTopic), + }, + }); + facade + .addLargeHeader("My App Dashboard") + .monitorDynamoTable({ + table: Table.fromTableName(stack, "ImportedTable", "MyTableName"), + addAverageSuccessfulGetItemLatencyAlarm: { + Critical: { + maxLatency: Duration.seconds(10), + }, + }, + }) + .monitorDynamoTable({ + table: Table.fromTableName( + stack, + "ImportedTableFromOtherAccount", + "MyOtherTableName", + ), + region: "us-west-2", + account: "1234567890", + addAverageSuccessfulGetItemLatencyAlarm: { + Critical: { + maxLatency: Duration.seconds(10), + }, + }, + }); + + expect(Template.fromStack(stack)).toMatchSnapshot(); + }); + test("SingleWidgetDashboardSegment is not displayed if addSegment overrides set to false", () => { // configure monitoring facade with dashboard factory which populates all three default dashboards const stack = new Stack(); diff --git a/test/facade/__snapshots__/MonitoringFacade.test.ts.snap b/test/facade/__snapshots__/MonitoringFacade.test.ts.snap new file mode 100644 index 00000000..acebad1b --- /dev/null +++ b/test/facade/__snapshots__/MonitoringFacade.test.ts.snap @@ -0,0 +1,189 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`test of defaults typical usage 1`] = ` +Object { + "Parameters": Object { + "BootstrapVersion": Object { + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", + "Type": "AWS::SSM::Parameter::Value", + }, + }, + "Resources": Object { + "MyAppFacadeMyAppFacadeDashboardsDashboard951173E0": Object { + "Properties": Object { + "DashboardBody": Object { + "Fn::Join": Array [ + "", + Array [ + "{\\"start\\":\\"-PT8H\\",\\"periodOverride\\":\\"inherit\\",\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"# My App Dashboard\\"}},{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"markdown\\":\\"### Dynamo Table **[ImportedTable](https://us-east-1.console.aws.amazon.com/dynamodb/home?region=us-east-1#tables:selected=MyTableName)**\\"}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":3,\\"x\\":0,\\"y\\":2,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Read Usage\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Consumed\\",\\"expression\\":\\"consumed_rcu_sum/PERIOD(consumed_rcu_sum)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"id\\":\\"consumed_read_cap\\"}],[\\"AWS/DynamoDB\\",\\"ConsumedReadCapacityUnits\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"consumed_rcu_sum\\"}],[\\"AWS/DynamoDB\\",\\"ProvisionedReadCapacityUnits\\",\\"TableName\\",\\"MyTableName\\",{\\"label\\":\\"Provisioned\\",\\"id\\":\\"provisioned_read_cap\\"}],[{\\"label\\":\\"Utilization\\",\\"expression\\":\\"100*(consumed_read_cap/provisioned_read_cap)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"yAxis\\":\\"right\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false},\\"right\\":{\\"min\\":0,\\"max\\":100,\\"label\\":\\"%\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":3,\\"x\\":0,\\"y\\":5,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Write Usage\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Consumed\\",\\"expression\\":\\"consumed_wcu_sum/PERIOD(consumed_wcu_sum)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"id\\":\\"consumed_write_cap\\"}],[\\"AWS/DynamoDB\\",\\"ConsumedWriteCapacityUnits\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"consumed_wcu_sum\\"}],[\\"AWS/DynamoDB\\",\\"ProvisionedWriteCapacityUnits\\",\\"TableName\\",\\"MyTableName\\",{\\"label\\":\\"Provisioned\\",\\"id\\":\\"provisioned_write_cap\\"}],[{\\"label\\":\\"Utilization\\",\\"expression\\":\\"100*(consumed_write_cap/provisioned_write_cap)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"yAxis\\":\\"right\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false},\\"right\\":{\\"min\\":0,\\"max\\":100,\\"label\\":\\"%\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":9,\\"height\\":6,\\"x\\":6,\\"y\\":2,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Latency (Average)\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\" \\",\\"expression\\":\\"SEARCH('{AWS/DynamoDB,TableName,Operation} TableName=\\\\\\"MyTableName\\\\\\" MetricName=\\\\\\"SuccessfulRequestLatency\\\\\\"', 'Average', 300)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"GetItem > 10000 for 3 datapoints within 15 minutes\\",\\"value\\":10000,\\"yAxis\\":\\"left\\"}]},\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"ms\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":3,\\"height\\":6,\\"x\\":15,\\"y\\":2,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Throttles\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Read\\",\\"expression\\":\\"FILL(readThrottles,0)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"ReadThrottleEvents\\",\\"TableName\\",\\"MyTableName\\",{\\"label\\":\\"Read\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"readThrottles\\"}],[{\\"label\\":\\"Write\\",\\"expression\\":\\"FILL(writeThrottles,0)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"WriteThrottleEvents\\",\\"TableName\\",\\"MyTableName\\",{\\"label\\":\\"Write\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"writeThrottles\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":6,\\"x\\":18,\\"y\\":2,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Errors\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"System Errors\\",\\"expression\\":\\"systemErrorGetItem+systemErrorBatchGetItem+systemErrorScan+systemErrorQuery+systemErrorGetRecords+systemErrorPutItem+systemErrorDeleteItem+systemErrorUpdateItem+systemErrorBatchWriteItem\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"GetItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorGetItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"BatchGetItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorBatchGetItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"Scan\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorScan\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"Query\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorQuery\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"GetRecords\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorGetRecords\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"PutItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorPutItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"DeleteItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorDeleteItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"UpdateItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorUpdateItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"BatchWriteItem\\",\\"TableName\\",\\"MyTableName\\",{\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorBatchWriteItem\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":8,\\"properties\\":{\\"markdown\\":\\"### Dynamo Table **[ImportedTableFromOtherAccount](https://us-east-1.console.aws.amazon.com/dynamodb/home?region=us-east-1#tables:selected=MyOtherTableName)**\\"}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":3,\\"x\\":0,\\"y\\":9,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Read Usage\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Consumed\\",\\"expression\\":\\"consumed_rcu_sum/PERIOD(consumed_rcu_sum)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"id\\":\\"consumed_read_cap\\"}],[\\"AWS/DynamoDB\\",\\"ConsumedReadCapacityUnits\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"consumed_rcu_sum\\"}],[\\"AWS/DynamoDB\\",\\"ProvisionedReadCapacityUnits\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"label\\":\\"Provisioned\\",\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"id\\":\\"provisioned_read_cap\\"}],[{\\"label\\":\\"Utilization\\",\\"expression\\":\\"100*(consumed_read_cap/provisioned_read_cap)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"yAxis\\":\\"right\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false},\\"right\\":{\\"min\\":0,\\"max\\":100,\\"label\\":\\"%\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":3,\\"x\\":0,\\"y\\":12,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Write Usage\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Consumed\\",\\"expression\\":\\"consumed_wcu_sum/PERIOD(consumed_wcu_sum)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"id\\":\\"consumed_write_cap\\"}],[\\"AWS/DynamoDB\\",\\"ConsumedWriteCapacityUnits\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"consumed_wcu_sum\\"}],[\\"AWS/DynamoDB\\",\\"ProvisionedWriteCapacityUnits\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"label\\":\\"Provisioned\\",\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"id\\":\\"provisioned_write_cap\\"}],[{\\"label\\":\\"Utilization\\",\\"expression\\":\\"100*(consumed_write_cap/provisioned_write_cap)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\",\\"yAxis\\":\\"right\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false},\\"right\\":{\\"min\\":0,\\"max\\":100,\\"label\\":\\"%\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":9,\\"height\\":6,\\"x\\":6,\\"y\\":9,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Latency (Average)\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\" \\",\\"expression\\":\\"SEARCH('{AWS/DynamoDB,TableName,Operation} TableName=\\\\\\"MyOtherTableName\\\\\\" MetricName=\\\\\\"SuccessfulRequestLatency\\\\\\"', 'Average', 300)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"GetItem > 10000 for 3 datapoints within 15 minutes\\",\\"value\\":10000,\\"yAxis\\":\\"left\\"}]},\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"ms\\",\\"showUnits\\":false}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":3,\\"height\\":6,\\"x\\":15,\\"y\\":9,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Throttles\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"Read\\",\\"expression\\":\\"FILL(readThrottles,0)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"ReadThrottleEvents\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"label\\":\\"Read\\",\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"readThrottles\\"}],[{\\"label\\":\\"Write\\",\\"expression\\":\\"FILL(writeThrottles,0)\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"WriteThrottleEvents\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"label\\":\\"Write\\",\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"writeThrottles\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":6,\\"x\\":18,\\"y\\":9,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Errors\\",\\"region\\":\\"", + Object { + "Ref": "AWS::Region", + }, + "\\",\\"metrics\\":[[{\\"label\\":\\"System Errors\\",\\"expression\\":\\"systemErrorGetItem+systemErrorBatchGetItem+systemErrorScan+systemErrorQuery+systemErrorGetRecords+systemErrorPutItem+systemErrorDeleteItem+systemErrorUpdateItem+systemErrorBatchWriteItem\\",\\"accountId\\":\\"09876543210\\",\\"region\\":\\"us-east-1\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"GetItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorGetItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"BatchGetItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorBatchGetItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"Scan\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorScan\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"Query\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorQuery\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"GetRecords\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorGetRecords\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"PutItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorPutItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"DeleteItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorDeleteItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"UpdateItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorUpdateItem\\"}],[\\"AWS/DynamoDB\\",\\"SystemErrors\\",\\"Operation\\",\\"BatchWriteItem\\",\\"TableName\\",\\"MyOtherTableName\\",{\\"accountId\\":\\"1234567890\\",\\"region\\":\\"us-west-2\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"systemErrorBatchWriteItem\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}}]}", + ], + ], + }, + "DashboardName": "MyAppFacade", + }, + "Type": "AWS::CloudWatch::Dashboard", + }, + "MyAppFacadeMyAppImportedTableFromOtherAccountLatencyAverageGetItemCritical51867C3D": Object { + "Properties": Object { + "ActionsEnabled": true, + "AlarmActions": Array [ + Object { + "Ref": "OnAlarmTopicF22649A2", + }, + ], + "AlarmDescription": "Average latency is too high.", + "AlarmName": "MyApp-ImportedTableFromOtherAccount-Latency-Average-GetItem-Critical", + "ComparisonOperator": "GreaterThanThreshold", + "DatapointsToAlarm": 3, + "EvaluationPeriods": 3, + "Metrics": Array [ + Object { + "AccountId": "1234567890", + "Id": "m1", + "Label": "GetItem", + "MetricStat": Object { + "Metric": Object { + "Dimensions": Array [ + Object { + "Name": "Operation", + "Value": "GetItem", + }, + Object { + "Name": "TableName", + "Value": "MyOtherTableName", + }, + ], + "MetricName": "SuccessfulRequestLatency", + "Namespace": "AWS/DynamoDB", + }, + "Period": 300, + "Stat": "Average", + }, + "ReturnData": true, + }, + ], + "Threshold": 10000, + "TreatMissingData": "notBreaching", + }, + "Type": "AWS::CloudWatch::Alarm", + }, + "MyAppFacadeMyAppImportedTableLatencyAverageGetItemCriticalCE2E24AD": Object { + "Properties": Object { + "ActionsEnabled": true, + "AlarmActions": Array [ + Object { + "Ref": "OnAlarmTopicF22649A2", + }, + ], + "AlarmDescription": "Average latency is too high.", + "AlarmName": "MyApp-ImportedTable-Latency-Average-GetItem-Critical", + "ComparisonOperator": "GreaterThanThreshold", + "DatapointsToAlarm": 3, + "EvaluationPeriods": 3, + "Metrics": Array [ + Object { + "Id": "m1", + "Label": "GetItem", + "MetricStat": Object { + "Metric": Object { + "Dimensions": Array [ + Object { + "Name": "Operation", + "Value": "GetItem", + }, + Object { + "Name": "TableName", + "Value": "MyTableName", + }, + ], + "MetricName": "SuccessfulRequestLatency", + "Namespace": "AWS/DynamoDB", + }, + "Period": 300, + "Stat": "Average", + }, + "ReturnData": true, + }, + ], + "Threshold": 10000, + "TreatMissingData": "notBreaching", + }, + "Type": "AWS::CloudWatch::Alarm", + }, + "OnAlarmTopicF22649A2": Object { + "Properties": Object { + "TopicName": "Alarm", + }, + "Type": "AWS::SNS::Topic", + }, + }, + "Rules": Object { + "CheckBootstrapVersion": Object { + "Assertions": Array [ + Object { + "Assert": Object { + "Fn::Not": Array [ + Object { + "Fn::Contains": Array [ + Array [ + "1", + "2", + "3", + "4", + "5", + ], + Object { + "Ref": "BootstrapVersion", + }, + ], + }, + ], + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", + }, + ], + }, + }, +} +`; diff --git a/test/monitoring/aws-wafv2/__snapshots__/WafV2Monitoring.test.ts.snap b/test/monitoring/aws-wafv2/__snapshots__/WafV2Monitoring.test.ts.snap index c6f61ac5..99d0db60 100644 --- a/test/monitoring/aws-wafv2/__snapshots__/WafV2Monitoring.test.ts.snap +++ b/test/monitoring/aws-wafv2/__snapshots__/WafV2Monitoring.test.ts.snap @@ -286,15 +286,15 @@ Object { Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":5,\\"x\\":8,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests\\",\\"region\\":\\"", + "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":5,\\"x\\":8,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":5,\\"x\\":16,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests (rate)\\",\\"region\\":\\"", + "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":5,\\"x\\":16,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests (rate)\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[{\\"label\\":\\"Blocked (rate)\\",\\"expression\\":\\"100 * (blocked / (allowed + blocked))\\"}],[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"allowed\\"}],[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"blocked\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Rate\\",\\"showUnits\\":false}}}}]}", + "\\",\\"metrics\\":[[{\\"label\\":\\"Blocked (rate)\\",\\"expression\\":\\"100 * (blocked / (allowed + blocked))\\"}],[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"allowed\\"}],[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"blocked\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Rate\\",\\"showUnits\\":false}}}}]}", ], ], }, @@ -311,15 +311,15 @@ Object { Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":6,\\"x\\":8,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests\\",\\"region\\":\\"", + "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":6,\\"x\\":8,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":6,\\"x\\":16,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests (rate)\\",\\"region\\":\\"", + "\\",\\"metrics\\":[[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Count\\",\\"showUnits\\":false}}}},{\\"type\\":\\"metric\\",\\"width\\":8,\\"height\\":6,\\"x\\":16,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"Blocked Requests (rate)\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, - "\\",\\"metrics\\":[[{\\"label\\":\\"Blocked (rate)\\",\\"expression\\":\\"100 * (blocked / (allowed + blocked))\\"}],[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"allowed\\"}],[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"blocked\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Rate\\",\\"showUnits\\":false}}}}]}", + "\\",\\"metrics\\":[[{\\"label\\":\\"Blocked (rate)\\",\\"expression\\":\\"100 * (blocked / (allowed + blocked))\\"}],[\\"AWS/WAFV2\\",\\"AllowedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Allowed\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"allowed\\"}],[\\"AWS/WAFV2\\",\\"BlockedRequests\\",\\"Region\\",\\"us-east-1\\",\\"Rule\\",\\"ALL\\",\\"WebACL\\",\\"DummyAclName\\",{\\"label\\":\\"Blocked\\",\\"region\\":\\"us-east-1\\",\\"stat\\":\\"Sum\\",\\"visible\\":false,\\"id\\":\\"blocked\\"}]],\\"yAxis\\":{\\"left\\":{\\"min\\":0,\\"label\\":\\"Rate\\",\\"showUnits\\":false}}}}]}", ], ], },