@aws-cdk/metrics-facade-alpha 2.267.0-alpha.0 → 2.268.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.cloudhsm"
5
+ },
6
+ "dotnet": {
7
+ "namespace": "Amazon.CDK.MetricsFacade.Alpha.AWS.CloudHSM"
8
+ },
9
+ "python": {
10
+ "module": "aws_cdk.metrics_facade_alpha.aws_cloudhsm"
11
+ },
12
+ "go": {
13
+ "packageName": "metricsfacadealphaawscloudhsm"
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,91 @@
1
+ import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
2
+ /**
3
+ * CloudWatch metrics facade for AWS/CloudHSM
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 CloudHSMMetrics {
10
+ }
11
+ export declare namespace CloudHSMMetrics {
12
+ /**
13
+ * Metrics for dimension set: HardwareSecurityModule {ClusterId, HsmId}
14
+ *
15
+ * @stability external
16
+ */
17
+ class HardwareSecurityModuleMetrics {
18
+ private readonly dimensions;
19
+ constructor(props: CloudHSMMetrics.HardwareSecurityModuleMetricsProps);
20
+ /**
21
+ * Sum of the HsmKeysSessionOccupied metric
22
+ *
23
+ * @default - Sum over 5 minutes
24
+ */
25
+ hsmKeysSessionOccupied(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
26
+ /**
27
+ * Sum of the HsmKeysTokenOccupied metric
28
+ *
29
+ * @default - Sum over 5 minutes
30
+ */
31
+ hsmKeysTokenOccupied(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
32
+ /**
33
+ * Sum of the HsmSessionCount metric
34
+ *
35
+ * @default - Sum over 5 minutes
36
+ */
37
+ hsmSessionCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
38
+ /**
39
+ * Average of the HsmTemperature metric
40
+ *
41
+ * @default - Average over 5 minutes
42
+ */
43
+ hsmTemperature(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
44
+ /**
45
+ * Sum of the HsmUnhealthy metric
46
+ *
47
+ * @default - Sum over 5 minutes
48
+ */
49
+ hsmUnhealthy(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
50
+ /**
51
+ * Sum of the HsmUsersAvailable metric
52
+ *
53
+ * @default - Sum over 5 minutes
54
+ */
55
+ hsmUsersAvailable(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
56
+ /**
57
+ * Maximum of the HsmUsersMax metric
58
+ *
59
+ * @default - Maximum over 5 minutes
60
+ */
61
+ hsmUsersMax(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
62
+ /**
63
+ * Sum of the InterfaceEth2OctetsInput metric
64
+ *
65
+ * @default - Sum over 5 minutes
66
+ */
67
+ interfaceEth2OctetsInput(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
68
+ /**
69
+ * Sum of the InterfaceEth2OctetsOutput metric
70
+ *
71
+ * @default - Sum over 5 minutes
72
+ */
73
+ interfaceEth2OctetsOutput(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
74
+ }
75
+ /**
76
+ * Dimensions for HardwareSecurityModuleMetrics
77
+ *
78
+ * @struct
79
+ * @stability external
80
+ */
81
+ interface HardwareSecurityModuleMetricsProps {
82
+ /**
83
+ * The ClusterId dimension
84
+ */
85
+ readonly clusterId: string;
86
+ /**
87
+ * The HsmId dimension
88
+ */
89
+ readonly hsmId: string;
90
+ }
91
+ }
@@ -0,0 +1,191 @@
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.CloudHSMMetrics = 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/CloudHSM
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 CloudHSMMetrics {
47
+ }
48
+ exports.CloudHSMMetrics = CloudHSMMetrics;
49
+ (function (CloudHSMMetrics) {
50
+ /**
51
+ * Metrics for dimension set: HardwareSecurityModule {ClusterId, HsmId}
52
+ *
53
+ * @stability external
54
+ */
55
+ class HardwareSecurityModuleMetrics {
56
+ dimensions;
57
+ constructor(props) {
58
+ this.dimensions = {
59
+ ClusterId: props.clusterId,
60
+ HsmId: props.hsmId
61
+ };
62
+ }
63
+ /**
64
+ * Sum of the HsmKeysSessionOccupied metric
65
+ *
66
+ * @default - Sum over 5 minutes
67
+ */
68
+ hsmKeysSessionOccupied(options) {
69
+ return new cloudwatch.Metric({
70
+ namespace: "AWS/CloudHSM",
71
+ metricName: "HsmKeysSessionOccupied",
72
+ dimensionsMap: this.dimensions,
73
+ statistic: "Sum",
74
+ ...options
75
+ });
76
+ }
77
+ /**
78
+ * Sum of the HsmKeysTokenOccupied metric
79
+ *
80
+ * @default - Sum over 5 minutes
81
+ */
82
+ hsmKeysTokenOccupied(options) {
83
+ return new cloudwatch.Metric({
84
+ namespace: "AWS/CloudHSM",
85
+ metricName: "HsmKeysTokenOccupied",
86
+ dimensionsMap: this.dimensions,
87
+ statistic: "Sum",
88
+ ...options
89
+ });
90
+ }
91
+ /**
92
+ * Sum of the HsmSessionCount metric
93
+ *
94
+ * @default - Sum over 5 minutes
95
+ */
96
+ hsmSessionCount(options) {
97
+ return new cloudwatch.Metric({
98
+ namespace: "AWS/CloudHSM",
99
+ metricName: "HsmSessionCount",
100
+ dimensionsMap: this.dimensions,
101
+ statistic: "Sum",
102
+ ...options
103
+ });
104
+ }
105
+ /**
106
+ * Average of the HsmTemperature metric
107
+ *
108
+ * @default - Average over 5 minutes
109
+ */
110
+ hsmTemperature(options) {
111
+ return new cloudwatch.Metric({
112
+ namespace: "AWS/CloudHSM",
113
+ metricName: "HsmTemperature",
114
+ dimensionsMap: this.dimensions,
115
+ statistic: "Average",
116
+ ...options
117
+ });
118
+ }
119
+ /**
120
+ * Sum of the HsmUnhealthy metric
121
+ *
122
+ * @default - Sum over 5 minutes
123
+ */
124
+ hsmUnhealthy(options) {
125
+ return new cloudwatch.Metric({
126
+ namespace: "AWS/CloudHSM",
127
+ metricName: "HsmUnhealthy",
128
+ dimensionsMap: this.dimensions,
129
+ statistic: "Sum",
130
+ ...options
131
+ });
132
+ }
133
+ /**
134
+ * Sum of the HsmUsersAvailable metric
135
+ *
136
+ * @default - Sum over 5 minutes
137
+ */
138
+ hsmUsersAvailable(options) {
139
+ return new cloudwatch.Metric({
140
+ namespace: "AWS/CloudHSM",
141
+ metricName: "HsmUsersAvailable",
142
+ dimensionsMap: this.dimensions,
143
+ statistic: "Sum",
144
+ ...options
145
+ });
146
+ }
147
+ /**
148
+ * Maximum of the HsmUsersMax metric
149
+ *
150
+ * @default - Maximum over 5 minutes
151
+ */
152
+ hsmUsersMax(options) {
153
+ return new cloudwatch.Metric({
154
+ namespace: "AWS/CloudHSM",
155
+ metricName: "HsmUsersMax",
156
+ dimensionsMap: this.dimensions,
157
+ statistic: "Maximum",
158
+ ...options
159
+ });
160
+ }
161
+ /**
162
+ * Sum of the InterfaceEth2OctetsInput metric
163
+ *
164
+ * @default - Sum over 5 minutes
165
+ */
166
+ interfaceEth2OctetsInput(options) {
167
+ return new cloudwatch.Metric({
168
+ namespace: "AWS/CloudHSM",
169
+ metricName: "InterfaceEth2OctetsInput",
170
+ dimensionsMap: this.dimensions,
171
+ statistic: "Sum",
172
+ ...options
173
+ });
174
+ }
175
+ /**
176
+ * Sum of the InterfaceEth2OctetsOutput metric
177
+ *
178
+ * @default - Sum over 5 minutes
179
+ */
180
+ interfaceEth2OctetsOutput(options) {
181
+ return new cloudwatch.Metric({
182
+ namespace: "AWS/CloudHSM",
183
+ metricName: "InterfaceEth2OctetsOutput",
184
+ dimensionsMap: this.dimensions,
185
+ statistic: "Sum",
186
+ ...options
187
+ });
188
+ }
189
+ }
190
+ CloudHSMMetrics.HardwareSecurityModuleMetrics = HardwareSecurityModuleMetrics;
191
+ })(CloudHSMMetrics || (exports.CloudHSMMetrics = CloudHSMMetrics = {}));
@@ -6,6 +6,7 @@ export * as aws_appsync from './aws-appsync';
6
6
  export * as aws_autoscaling from './aws-autoscaling';
7
7
  export * as aws_bedrock from './aws-bedrock';
8
8
  export * as aws_cloudfront from './aws-cloudfront';
9
+ export * as aws_cloudhsm from './aws-cloudhsm';
9
10
  export * as aws_cloudwatch from './aws-cloudwatch';
10
11
  export * as aws_codebuild from './aws-codebuild';
11
12
  export * as aws_codepipeline from './aws-codepipeline';
@@ -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_route53 = 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_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 = void 0;
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;
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"));
@@ -43,6 +43,7 @@ exports.aws_appsync = __importStar(require("./aws-appsync"));
43
43
  exports.aws_autoscaling = __importStar(require("./aws-autoscaling"));
44
44
  exports.aws_bedrock = __importStar(require("./aws-bedrock"));
45
45
  exports.aws_cloudfront = __importStar(require("./aws-cloudfront"));
46
+ exports.aws_cloudhsm = __importStar(require("./aws-cloudhsm"));
46
47
  exports.aws_cloudwatch = __importStar(require("./aws-cloudwatch"));
47
48
  exports.aws_codebuild = __importStar(require("./aws-codebuild"));
48
49
  exports.aws_codepipeline = __importStar(require("./aws-codepipeline"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/metrics-facade-alpha",
3
- "version": "2.267.0-alpha.0",
3
+ "version": "2.268.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for Metrics Facade",
6
6
  "main": "lib/index.js",
@@ -61,6 +61,7 @@
61
61
  "./aws-autoscaling": "./lib/services/aws-autoscaling/index.js",
62
62
  "./aws-bedrock": "./lib/services/aws-bedrock/index.js",
63
63
  "./aws-cloudfront": "./lib/services/aws-cloudfront/index.js",
64
+ "./aws-cloudhsm": "./lib/services/aws-cloudhsm/index.js",
64
65
  "./aws-cloudwatch": "./lib/services/aws-cloudwatch/index.js",
65
66
  "./aws-codebuild": "./lib/services/aws-codebuild/index.js",
66
67
  "./aws-codepipeline": "./lib/services/aws-codepipeline/index.js",
@@ -152,23 +153,23 @@
152
153
  },
153
154
  "license": "Apache-2.0",
154
155
  "devDependencies": {
155
- "@aws-cdk/cdk-build-tools": "2.267.0-alpha.0",
156
+ "@aws-cdk/cdk-build-tools": "2.268.0-alpha.0",
156
157
  "@aws-cdk/integ-runner": "^2.202.3",
157
- "@aws-cdk/integ-tests-alpha": "2.267.0-alpha.0",
158
- "@aws-cdk/pkglint": "2.267.0-alpha.0",
159
- "@aws-cdk/service-spec-types": "0.0.269",
160
- "@aws-cdk/spec2cdk": "2.267.0-alpha.0",
158
+ "@aws-cdk/integ-tests-alpha": "2.268.0-alpha.0",
159
+ "@aws-cdk/pkglint": "2.268.0-alpha.0",
160
+ "@aws-cdk/service-spec-types": "0.0.274",
161
+ "@aws-cdk/spec2cdk": "2.268.0-alpha.0",
161
162
  "@cdklabs/tskb": "^0.0.4",
162
163
  "@cdklabs/typewriter": "^0.0.16",
163
164
  "@types/jest": "^29.5.14",
164
- "aws-cdk-lib": "2.267.0",
165
+ "aws-cdk-lib": "2.268.0",
165
166
  "constructs": "^10.5.0",
166
167
  "jest": "^29.7.0",
167
168
  "tsx": "^4.23.1"
168
169
  },
169
170
  "dependencies": {},
170
171
  "peerDependencies": {
171
- "aws-cdk-lib": "^2.267.0",
172
+ "aws-cdk-lib": "^2.268.0",
172
173
  "constructs": "^10.5.0"
173
174
  },
174
175
  "separate-module": false,