@aws-cdk/metrics-facade-alpha 2.271.0-alpha.0 → 2.272.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii.gz CHANGED
Binary file
@@ -0,0 +1,16 @@
1
+ {
2
+ "targets": {
3
+ "java": {
4
+ "package": "software.amazon.awscdk.metricsfacade.alpha.services.outposts"
5
+ },
6
+ "dotnet": {
7
+ "namespace": "Amazon.CDK.MetricsFacade.Alpha.AWS.Outposts"
8
+ },
9
+ "python": {
10
+ "module": "aws_cdk.metrics_facade_alpha.aws_outposts"
11
+ },
12
+ "go": {
13
+ "packageName": "metricsfacadealphaawsoutposts"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ export * from './metrics.generated';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./metrics.generated"), exports);
@@ -0,0 +1,55 @@
1
+ import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
2
+ /**
3
+ * CloudWatch metrics facade for AWS/Outposts
4
+ * This class contains helper functions to initialize the dimension-sets classes
5
+ * for selected resources if available.
6
+ *
7
+ * @stability external
8
+ */
9
+ export declare abstract class OutpostsMetrics {
10
+ }
11
+ export declare namespace OutpostsMetrics {
12
+ /**
13
+ * Metrics for dimension set: InstanceTypePerOutpost {OutpostId, InstanceType}
14
+ *
15
+ * @stability external
16
+ */
17
+ class InstanceTypePerOutpostMetrics {
18
+ private readonly dimensions;
19
+ constructor(props: OutpostsMetrics.InstanceTypePerOutpostMetricsProps);
20
+ /**
21
+ * Sum of the AvailableInstanceType_Count metric
22
+ *
23
+ * @default - Sum over 5 minutes
24
+ */
25
+ availableInstanceTypeCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
26
+ /**
27
+ * Sum of the UsedInstanceType_Count metric
28
+ *
29
+ * @default - Sum over 5 minutes
30
+ */
31
+ usedInstanceTypeCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
32
+ /**
33
+ * Sum of the CapacityExceptions metric
34
+ *
35
+ * @default - Sum over 5 minutes
36
+ */
37
+ capacityExceptions(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
38
+ }
39
+ /**
40
+ * Dimensions for InstanceTypePerOutpostMetrics
41
+ *
42
+ * @struct
43
+ * @stability external
44
+ */
45
+ interface InstanceTypePerOutpostMetricsProps {
46
+ /**
47
+ * The OutpostId dimension
48
+ */
49
+ readonly outpostId: string;
50
+ /**
51
+ * The InstanceType dimension
52
+ */
53
+ readonly instanceType: string;
54
+ }
55
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.OutpostsMetrics = void 0;
37
+ /* eslint-disable @stylistic/max-len, eol-last */
38
+ const cloudwatch = __importStar(require("aws-cdk-lib/aws-cloudwatch"));
39
+ /**
40
+ * CloudWatch metrics facade for AWS/Outposts
41
+ * This class contains helper functions to initialize the dimension-sets classes
42
+ * for selected resources if available.
43
+ *
44
+ * @stability external
45
+ */
46
+ class OutpostsMetrics {
47
+ }
48
+ exports.OutpostsMetrics = OutpostsMetrics;
49
+ (function (OutpostsMetrics) {
50
+ /**
51
+ * Metrics for dimension set: InstanceTypePerOutpost {OutpostId, InstanceType}
52
+ *
53
+ * @stability external
54
+ */
55
+ class InstanceTypePerOutpostMetrics {
56
+ dimensions;
57
+ constructor(props) {
58
+ this.dimensions = {
59
+ OutpostId: props.outpostId,
60
+ InstanceType: props.instanceType
61
+ };
62
+ }
63
+ /**
64
+ * Sum of the AvailableInstanceType_Count metric
65
+ *
66
+ * @default - Sum over 5 minutes
67
+ */
68
+ availableInstanceTypeCount(options) {
69
+ return new cloudwatch.Metric({
70
+ namespace: "AWS/Outposts",
71
+ metricName: "AvailableInstanceType_Count",
72
+ dimensionsMap: this.dimensions,
73
+ statistic: "Sum",
74
+ ...options
75
+ });
76
+ }
77
+ /**
78
+ * Sum of the UsedInstanceType_Count metric
79
+ *
80
+ * @default - Sum over 5 minutes
81
+ */
82
+ usedInstanceTypeCount(options) {
83
+ return new cloudwatch.Metric({
84
+ namespace: "AWS/Outposts",
85
+ metricName: "UsedInstanceType_Count",
86
+ dimensionsMap: this.dimensions,
87
+ statistic: "Sum",
88
+ ...options
89
+ });
90
+ }
91
+ /**
92
+ * Sum of the CapacityExceptions metric
93
+ *
94
+ * @default - Sum over 5 minutes
95
+ */
96
+ capacityExceptions(options) {
97
+ return new cloudwatch.Metric({
98
+ namespace: "AWS/Outposts",
99
+ metricName: "CapacityExceptions",
100
+ dimensionsMap: this.dimensions,
101
+ statistic: "Sum",
102
+ ...options
103
+ });
104
+ }
105
+ }
106
+ OutpostsMetrics.InstanceTypePerOutpostMetrics = InstanceTypePerOutpostMetrics;
107
+ })(OutpostsMetrics || (exports.OutpostsMetrics = OutpostsMetrics = {}));
@@ -44,6 +44,7 @@ export * as aws_mediastore from './aws-mediastore';
44
44
  export * as aws_memorydb from './aws-memorydb';
45
45
  export * as aws_neptune from './aws-neptune';
46
46
  export * as aws_opsworks from './aws-opsworks';
47
+ export * as aws_outposts from './aws-outposts';
47
48
  export * as aws_qldb from './aws-qldb';
48
49
  export * as aws_quicksight from './aws-quicksight';
49
50
  export * as aws_rds from './aws-rds';
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.aws_redshift = exports.aws_rds = exports.aws_quicksight = exports.aws_qldb = exports.aws_opsworks = exports.aws_neptune = exports.aws_memorydb = exports.aws_mediastore = exports.aws_mediapackage = exports.aws_medialive = exports.aws_mediaconvert = exports.aws_logs = exports.aws_lex = exports.aws_lambda = exports.aws_kms = exports.aws_kinesisvideo = exports.aws_kinesisfirehose = exports.aws_kinesisanalytics = exports.aws_kinesis = exports.aws_iot = exports.aws_gamelift = exports.aws_fsx = exports.aws_events = exports.aws_emr = exports.aws_elasticloadbalancingv2 = exports.aws_elasticloadbalancing = exports.aws_elasticbeanstalk = exports.aws_elasticache = exports.aws_eks = exports.aws_efs = exports.aws_ecs = exports.aws_ec2 = exports.aws_dynamodb = exports.aws_docdb = exports.aws_dms = exports.aws_dax = exports.aws_datasync = exports.aws_cognito = exports.aws_codepipeline = exports.aws_codebuild = exports.aws_cloudwatch = exports.aws_cloudhsm = exports.aws_cloudfront = exports.aws_bedrock = exports.aws_autoscaling = exports.aws_appsync = exports.aws_appstream = exports.aws_apigatewayv2 = exports.aws_apigateway = exports.aws_amazonmq = void 0;
37
- exports.aws_workspaces = exports.aws_transfer = exports.aws_timestream = exports.aws_synthetics = exports.aws_stepfunctions = exports.aws_sqs = exports.aws_sns = exports.aws_ses = exports.aws_servicecatalog = exports.aws_sagemaker = exports.aws_s3 = exports.aws_route53resolver = exports.aws_route53 = void 0;
36
+ exports.aws_rds = exports.aws_quicksight = exports.aws_qldb = exports.aws_outposts = exports.aws_opsworks = exports.aws_neptune = exports.aws_memorydb = exports.aws_mediastore = exports.aws_mediapackage = exports.aws_medialive = exports.aws_mediaconvert = exports.aws_logs = exports.aws_lex = exports.aws_lambda = exports.aws_kms = exports.aws_kinesisvideo = exports.aws_kinesisfirehose = exports.aws_kinesisanalytics = exports.aws_kinesis = exports.aws_iot = exports.aws_gamelift = exports.aws_fsx = exports.aws_events = exports.aws_emr = exports.aws_elasticloadbalancingv2 = exports.aws_elasticloadbalancing = exports.aws_elasticbeanstalk = exports.aws_elasticache = exports.aws_eks = exports.aws_efs = exports.aws_ecs = exports.aws_ec2 = exports.aws_dynamodb = exports.aws_docdb = exports.aws_dms = exports.aws_dax = exports.aws_datasync = exports.aws_cognito = exports.aws_codepipeline = exports.aws_codebuild = exports.aws_cloudwatch = exports.aws_cloudhsm = exports.aws_cloudfront = exports.aws_bedrock = exports.aws_autoscaling = exports.aws_appsync = exports.aws_appstream = exports.aws_apigatewayv2 = exports.aws_apigateway = exports.aws_amazonmq = void 0;
37
+ exports.aws_workspaces = exports.aws_transfer = exports.aws_timestream = exports.aws_synthetics = exports.aws_stepfunctions = exports.aws_sqs = exports.aws_sns = exports.aws_ses = exports.aws_servicecatalog = exports.aws_sagemaker = exports.aws_s3 = exports.aws_route53resolver = exports.aws_route53 = exports.aws_redshift = void 0;
38
38
  exports.aws_amazonmq = __importStar(require("./aws-amazonmq"));
39
39
  exports.aws_apigateway = __importStar(require("./aws-apigateway"));
40
40
  exports.aws_apigatewayv2 = __importStar(require("./aws-apigatewayv2"));
@@ -81,6 +81,7 @@ exports.aws_mediastore = __importStar(require("./aws-mediastore"));
81
81
  exports.aws_memorydb = __importStar(require("./aws-memorydb"));
82
82
  exports.aws_neptune = __importStar(require("./aws-neptune"));
83
83
  exports.aws_opsworks = __importStar(require("./aws-opsworks"));
84
+ exports.aws_outposts = __importStar(require("./aws-outposts"));
84
85
  exports.aws_qldb = __importStar(require("./aws-qldb"));
85
86
  exports.aws_quicksight = __importStar(require("./aws-quicksight"));
86
87
  exports.aws_rds = __importStar(require("./aws-rds"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/metrics-facade-alpha",
3
- "version": "2.271.0-alpha.0",
3
+ "version": "2.272.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for Metrics Facade",
6
6
  "main": "lib/index.js",
@@ -99,6 +99,7 @@
99
99
  "./aws-memorydb": "./lib/services/aws-memorydb/index.js",
100
100
  "./aws-neptune": "./lib/services/aws-neptune/index.js",
101
101
  "./aws-opsworks": "./lib/services/aws-opsworks/index.js",
102
+ "./aws-outposts": "./lib/services/aws-outposts/index.js",
102
103
  "./aws-qldb": "./lib/services/aws-qldb/index.js",
103
104
  "./aws-quicksight": "./lib/services/aws-quicksight/index.js",
104
105
  "./aws-rds": "./lib/services/aws-rds/index.js",
@@ -153,23 +154,23 @@
153
154
  },
154
155
  "license": "Apache-2.0",
155
156
  "devDependencies": {
156
- "@aws-cdk/cdk-build-tools": "2.271.0-alpha.0",
157
+ "@aws-cdk/cdk-build-tools": "2.272.0-alpha.0",
157
158
  "@aws-cdk/integ-runner": "^2.202.3",
158
- "@aws-cdk/integ-tests-alpha": "2.271.0-alpha.0",
159
- "@aws-cdk/pkglint": "2.271.0-alpha.0",
160
- "@aws-cdk/service-spec-types": "0.0.277",
161
- "@aws-cdk/spec2cdk": "2.271.0-alpha.0",
159
+ "@aws-cdk/integ-tests-alpha": "2.272.0-alpha.0",
160
+ "@aws-cdk/pkglint": "2.272.0-alpha.0",
161
+ "@aws-cdk/service-spec-types": "0.0.282",
162
+ "@aws-cdk/spec2cdk": "2.272.0-alpha.0",
162
163
  "@cdklabs/tskb": "^0.0.4",
163
164
  "@cdklabs/typewriter": "^0.0.16",
164
165
  "@types/jest": "^29.5.14",
165
- "aws-cdk-lib": "2.271.0",
166
+ "aws-cdk-lib": "2.272.0",
166
167
  "constructs": "^10.5.0",
167
168
  "jest": "^29.7.0",
168
169
  "tsx": "^4.23.1"
169
170
  },
170
171
  "dependencies": {},
171
172
  "peerDependencies": {
172
- "aws-cdk-lib": "^2.271.0",
173
+ "aws-cdk-lib": "^2.272.0",
173
174
  "constructs": "^10.5.0"
174
175
  },
175
176
  "separate-module": false,