@aws-sdk/client-cloudwatch 3.1064.0 → 3.1066.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/README.md +21 -0
- package/dist-cjs/index.js +42 -0
- package/dist-cjs/models/errors.js +75 -30
- package/dist-cjs/schemas/schemas_0.js +77 -4
- package/dist-es/CloudWatch.js +6 -0
- package/dist-es/commands/AssociateDatasetKmsKeyCommand.js +16 -0
- package/dist-es/commands/DisassociateDatasetKmsKeyCommand.js +16 -0
- package/dist-es/commands/GetDatasetCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/errors.js +68 -26
- package/dist-es/schemas/schemas_0.js +73 -1
- package/dist-types/CloudWatch.d.ts +21 -0
- package/dist-types/CloudWatchClient.d.ts +5 -2
- package/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +161 -0
- package/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +105 -0
- package/dist-types/commands/GetDatasetCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/errors.d.ts +74 -23
- package/dist-types/models/models_0.d.ts +90 -0
- package/dist-types/schemas/schemas_0.d.ts +12 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +51 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/AssociateDatasetKmsKeyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DisassociateDatasetKmsKeyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +40 -16
- package/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +7 -7
package/dist-es/models/errors.js
CHANGED
|
@@ -1,29 +1,89 @@
|
|
|
1
1
|
import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
|
|
2
|
-
export class
|
|
3
|
-
name = "
|
|
2
|
+
export class ConflictException extends __BaseException {
|
|
3
|
+
name = "ConflictException";
|
|
4
4
|
$fault = "client";
|
|
5
5
|
Message;
|
|
6
6
|
constructor(opts) {
|
|
7
7
|
super({
|
|
8
|
-
name: "
|
|
8
|
+
name: "ConflictException",
|
|
9
9
|
$fault: "client",
|
|
10
10
|
...opts,
|
|
11
11
|
});
|
|
12
|
-
Object.setPrototypeOf(this,
|
|
12
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
13
13
|
this.Message = opts.Message;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export class
|
|
17
|
-
name = "
|
|
16
|
+
export class KmsAccessDeniedException extends __BaseException {
|
|
17
|
+
name = "KmsAccessDeniedException";
|
|
18
18
|
$fault = "client";
|
|
19
19
|
Message;
|
|
20
20
|
constructor(opts) {
|
|
21
21
|
super({
|
|
22
|
-
name: "
|
|
22
|
+
name: "KmsAccessDeniedException",
|
|
23
23
|
$fault: "client",
|
|
24
24
|
...opts,
|
|
25
25
|
});
|
|
26
|
-
Object.setPrototypeOf(this,
|
|
26
|
+
Object.setPrototypeOf(this, KmsAccessDeniedException.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class KmsKeyDisabledException extends __BaseException {
|
|
31
|
+
name = "KmsKeyDisabledException";
|
|
32
|
+
$fault = "client";
|
|
33
|
+
Message;
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "KmsKeyDisabledException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, KmsKeyDisabledException.prototype);
|
|
41
|
+
this.Message = opts.Message;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class KmsKeyNotFoundException extends __BaseException {
|
|
45
|
+
name = "KmsKeyNotFoundException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
Message;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "KmsKeyNotFoundException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, KmsKeyNotFoundException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
59
|
+
name = "ResourceNotFoundException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
ResourceType;
|
|
62
|
+
ResourceId;
|
|
63
|
+
Message;
|
|
64
|
+
constructor(opts) {
|
|
65
|
+
super({
|
|
66
|
+
name: "ResourceNotFoundException",
|
|
67
|
+
$fault: "client",
|
|
68
|
+
...opts,
|
|
69
|
+
});
|
|
70
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
71
|
+
this.ResourceType = opts.ResourceType;
|
|
72
|
+
this.ResourceId = opts.ResourceId;
|
|
73
|
+
this.Message = opts.Message;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export class ConcurrentModificationException extends __BaseException {
|
|
77
|
+
name = "ConcurrentModificationException";
|
|
78
|
+
$fault = "client";
|
|
79
|
+
Message;
|
|
80
|
+
constructor(opts) {
|
|
81
|
+
super({
|
|
82
|
+
name: "ConcurrentModificationException",
|
|
83
|
+
$fault: "client",
|
|
84
|
+
...opts,
|
|
85
|
+
});
|
|
86
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
27
87
|
this.Message = opts.Message;
|
|
28
88
|
}
|
|
29
89
|
}
|
|
@@ -115,24 +175,6 @@ export class MissingRequiredParameterException extends __BaseException {
|
|
|
115
175
|
Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
|
|
116
176
|
}
|
|
117
177
|
}
|
|
118
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
119
|
-
name = "ResourceNotFoundException";
|
|
120
|
-
$fault = "client";
|
|
121
|
-
ResourceType;
|
|
122
|
-
ResourceId;
|
|
123
|
-
Message;
|
|
124
|
-
constructor(opts) {
|
|
125
|
-
super({
|
|
126
|
-
name: "ResourceNotFoundException",
|
|
127
|
-
$fault: "client",
|
|
128
|
-
...opts,
|
|
129
|
-
});
|
|
130
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
131
|
-
this.ResourceType = opts.ResourceType;
|
|
132
|
-
this.ResourceId = opts.ResourceId;
|
|
133
|
-
this.Message = opts.Message;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
178
|
export class InvalidNextToken extends __BaseException {
|
|
137
179
|
name = "InvalidNextToken";
|
|
138
180
|
$fault = "client";
|
|
@@ -10,6 +10,9 @@ const _ACl = "AlarmContributors";
|
|
|
10
10
|
const _AD = "AnomalyDetector";
|
|
11
11
|
const _ADC = "AnomalyDetectorConfiguration";
|
|
12
12
|
const _ADETR = "AnomalyDetectorExcludedTimeRanges";
|
|
13
|
+
const _ADKK = "AssociateDatasetKmsKey";
|
|
14
|
+
const _ADKKI = "AssociateDatasetKmsKeyInput";
|
|
15
|
+
const _ADKKO = "AssociateDatasetKmsKeyOutput";
|
|
13
16
|
const _ADT = "AnomalyDetectorTypes";
|
|
14
17
|
const _ADl = "AlarmDescription";
|
|
15
18
|
const _ADn = "AnomalyDetectors";
|
|
@@ -85,11 +88,15 @@ const _DAes = "DescribeAlarms";
|
|
|
85
88
|
const _DB = "DashboardBody";
|
|
86
89
|
const _DD = "DeleteDashboards";
|
|
87
90
|
const _DDI = "DeleteDashboardsInput";
|
|
91
|
+
const _DDKK = "DisassociateDatasetKmsKey";
|
|
92
|
+
const _DDKKI = "DisassociateDatasetKmsKeyInput";
|
|
93
|
+
const _DDKKO = "DisassociateDatasetKmsKeyOutput";
|
|
88
94
|
const _DDO = "DeleteDashboardsOutput";
|
|
89
95
|
const _DE = "DashboardEntry";
|
|
90
96
|
const _DEa = "DashboardEntries";
|
|
91
97
|
const _DF = "DimensionFilter";
|
|
92
98
|
const _DFi = "DimensionFilters";
|
|
99
|
+
const _DI = "DatasetIdentifier";
|
|
93
100
|
const _DIIE = "DashboardInvalidInputError";
|
|
94
101
|
const _DIR = "DeleteInsightRules";
|
|
95
102
|
const _DIRI = "DeleteInsightRulesInput";
|
|
@@ -100,6 +107,7 @@ const _DIROe = "DescribeInsightRulesOutput";
|
|
|
100
107
|
const _DIROi = "DisableInsightRulesOutput";
|
|
101
108
|
const _DIRe = "DescribeInsightRules";
|
|
102
109
|
const _DIRi = "DisableInsightRules";
|
|
110
|
+
const _DIa = "DatasetId";
|
|
103
111
|
const _DMS = "DeleteMetricStream";
|
|
104
112
|
const _DMSI = "DeleteMetricStreamInput";
|
|
105
113
|
const _DMSO = "DeleteMetricStreamOutput";
|
|
@@ -150,7 +158,10 @@ const _GAMRI = "GetAlarmMuteRuleInput";
|
|
|
150
158
|
const _GAMRO = "GetAlarmMuteRuleOutput";
|
|
151
159
|
const _GD = "GetDashboard";
|
|
152
160
|
const _GDI = "GetDashboardInput";
|
|
161
|
+
const _GDIe = "GetDatasetInput";
|
|
153
162
|
const _GDO = "GetDashboardOutput";
|
|
163
|
+
const _GDOe = "GetDatasetOutput";
|
|
164
|
+
const _GDe = "GetDataset";
|
|
154
165
|
const _GIRR = "GetInsightRuleReport";
|
|
155
166
|
const _GIRRI = "GetInsightRuleReportInput";
|
|
156
167
|
const _GIRRO = "GetInsightRuleReportOutput";
|
|
@@ -193,6 +204,10 @@ const _IRn = "InsightRule";
|
|
|
193
204
|
const _ISF = "InternalServiceFault";
|
|
194
205
|
const _K = "Keys";
|
|
195
206
|
const _KA = "KeyAttributes";
|
|
207
|
+
const _KADE = "KmsAccessDeniedException";
|
|
208
|
+
const _KKA = "KmsKeyArn";
|
|
209
|
+
const _KKDE = "KmsKeyDisabledException";
|
|
210
|
+
const _KKNFE = "KmsKeyNotFoundException";
|
|
196
211
|
const _KL = "KeyLabels";
|
|
197
212
|
const _Ke = "Key";
|
|
198
213
|
const _L = "Label";
|
|
@@ -392,7 +407,7 @@ const _se = "server";
|
|
|
392
407
|
const n0 = "com.amazonaws.cloudwatch";
|
|
393
408
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
394
409
|
import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
395
|
-
import { ConcurrentModificationException, ConflictException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException, } from "../models/errors";
|
|
410
|
+
import { ConcurrentModificationException, ConflictException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, KmsAccessDeniedException, KmsKeyDisabledException, KmsKeyNotFoundException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException, } from "../models/errors";
|
|
396
411
|
const _s_registry = TypeRegistry.for(_s);
|
|
397
412
|
export var CloudWatchServiceException$ = [-3, _s, "CloudWatchServiceException", 0, [], []];
|
|
398
413
|
_s_registry.registerError(CloudWatchServiceException$, CloudWatchServiceException);
|
|
@@ -451,6 +466,24 @@ export var InvalidParameterValueException$ = [-3, n0, _IPVE,
|
|
|
451
466
|
[0]
|
|
452
467
|
];
|
|
453
468
|
n0_registry.registerError(InvalidParameterValueException$, InvalidParameterValueException);
|
|
469
|
+
export var KmsAccessDeniedException$ = [-3, n0, _KADE,
|
|
470
|
+
{ [_e]: _c },
|
|
471
|
+
[_M],
|
|
472
|
+
[0], 1
|
|
473
|
+
];
|
|
474
|
+
n0_registry.registerError(KmsAccessDeniedException$, KmsAccessDeniedException);
|
|
475
|
+
export var KmsKeyDisabledException$ = [-3, n0, _KKDE,
|
|
476
|
+
{ [_e]: _c },
|
|
477
|
+
[_M],
|
|
478
|
+
[0], 1
|
|
479
|
+
];
|
|
480
|
+
n0_registry.registerError(KmsKeyDisabledException$, KmsKeyDisabledException);
|
|
481
|
+
export var KmsKeyNotFoundException$ = [-3, n0, _KKNFE,
|
|
482
|
+
{ [_e]: _c },
|
|
483
|
+
[_M],
|
|
484
|
+
[0], 1
|
|
485
|
+
];
|
|
486
|
+
n0_registry.registerError(KmsKeyNotFoundException$, KmsKeyNotFoundException);
|
|
454
487
|
export var LimitExceededException$ = [-3, n0, _LEE,
|
|
455
488
|
{ [_aQE]: [`LimitExceededException`, 400], [_e]: _c, [_hE]: 400 },
|
|
456
489
|
[_M],
|
|
@@ -515,6 +548,16 @@ export var AnomalyDetectorConfiguration$ = [3, n0, _ADC,
|
|
|
515
548
|
[_ETR, _MTe],
|
|
516
549
|
[() => AnomalyDetectorExcludedTimeRanges, 0]
|
|
517
550
|
];
|
|
551
|
+
export var AssociateDatasetKmsKeyInput$ = [3, n0, _ADKKI,
|
|
552
|
+
0,
|
|
553
|
+
[_DI, _KKA],
|
|
554
|
+
[0, 0], 2
|
|
555
|
+
];
|
|
556
|
+
export var AssociateDatasetKmsKeyOutput$ = [3, n0, _ADKKO,
|
|
557
|
+
0,
|
|
558
|
+
[],
|
|
559
|
+
[]
|
|
560
|
+
];
|
|
518
561
|
export var CompositeAlarm$ = [3, n0, _CAo,
|
|
519
562
|
0,
|
|
520
563
|
[_AE, _AA, _AAl, _ACUT, _ADl, _AN, _AR, _IDA, _OKA, _SR, _SRD, _SUT, _SV, _STT, _ASB, _ASR, _AS, _ASWP, _ASEP],
|
|
@@ -670,6 +713,16 @@ export var DisableInsightRulesOutput$ = [3, n0, _DIROi,
|
|
|
670
713
|
[_F],
|
|
671
714
|
[() => BatchFailures]
|
|
672
715
|
];
|
|
716
|
+
export var DisassociateDatasetKmsKeyInput$ = [3, n0, _DDKKI,
|
|
717
|
+
0,
|
|
718
|
+
[_DI],
|
|
719
|
+
[0], 1
|
|
720
|
+
];
|
|
721
|
+
export var DisassociateDatasetKmsKeyOutput$ = [3, n0, _DDKKO,
|
|
722
|
+
0,
|
|
723
|
+
[],
|
|
724
|
+
[]
|
|
725
|
+
];
|
|
673
726
|
export var EnableAlarmActionsInput$ = [3, n0, _EAAI,
|
|
674
727
|
0,
|
|
675
728
|
[_ANl],
|
|
@@ -715,6 +768,16 @@ export var GetDashboardOutput$ = [3, n0, _GDO,
|
|
|
715
768
|
[_DA, _DB, _DN],
|
|
716
769
|
[0, 0, 0]
|
|
717
770
|
];
|
|
771
|
+
export var GetDatasetInput$ = [3, n0, _GDIe,
|
|
772
|
+
0,
|
|
773
|
+
[_DI],
|
|
774
|
+
[0], 1
|
|
775
|
+
];
|
|
776
|
+
export var GetDatasetOutput$ = [3, n0, _GDOe,
|
|
777
|
+
0,
|
|
778
|
+
[_DIa, _Ar, _KKA],
|
|
779
|
+
[0, 0, 0], 2
|
|
780
|
+
];
|
|
718
781
|
export var GetInsightRuleReportInput$ = [3, n0, _GIRRI,
|
|
719
782
|
0,
|
|
720
783
|
[_RNu, _ST, _ET, _P, _MCC, _Me, _OB],
|
|
@@ -1237,6 +1300,9 @@ export var EvaluationCriteria$ = [4, n0, _EC,
|
|
|
1237
1300
|
[_PQLC],
|
|
1238
1301
|
[() => AlarmPromQLCriteria$]
|
|
1239
1302
|
];
|
|
1303
|
+
export var AssociateDatasetKmsKey$ = [9, n0, _ADKK,
|
|
1304
|
+
0, () => AssociateDatasetKmsKeyInput$, () => AssociateDatasetKmsKeyOutput$
|
|
1305
|
+
];
|
|
1240
1306
|
export var DeleteAlarmMuteRule$ = [9, n0, _DAMR,
|
|
1241
1307
|
0, () => DeleteAlarmMuteRuleInput$, () => __Unit
|
|
1242
1308
|
];
|
|
@@ -1279,6 +1345,9 @@ export var DisableAlarmActions$ = [9, n0, _DAA,
|
|
|
1279
1345
|
export var DisableInsightRules$ = [9, n0, _DIRi,
|
|
1280
1346
|
0, () => DisableInsightRulesInput$, () => DisableInsightRulesOutput$
|
|
1281
1347
|
];
|
|
1348
|
+
export var DisassociateDatasetKmsKey$ = [9, n0, _DDKK,
|
|
1349
|
+
2, () => DisassociateDatasetKmsKeyInput$, () => DisassociateDatasetKmsKeyOutput$
|
|
1350
|
+
];
|
|
1282
1351
|
export var EnableAlarmActions$ = [9, n0, _EAA,
|
|
1283
1352
|
0, () => EnableAlarmActionsInput$, () => __Unit
|
|
1284
1353
|
];
|
|
@@ -1291,6 +1360,9 @@ export var GetAlarmMuteRule$ = [9, n0, _GAMR,
|
|
|
1291
1360
|
export var GetDashboard$ = [9, n0, _GD,
|
|
1292
1361
|
0, () => GetDashboardInput$, () => GetDashboardOutput$
|
|
1293
1362
|
];
|
|
1363
|
+
export var GetDataset$ = [9, n0, _GDe,
|
|
1364
|
+
0, () => GetDatasetInput$, () => GetDatasetOutput$
|
|
1365
|
+
];
|
|
1294
1366
|
export var GetInsightRuleReport$ = [9, n0, _GIRR,
|
|
1295
1367
|
0, () => GetInsightRuleReportInput$, () => GetInsightRuleReportOutput$
|
|
1296
1368
|
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type WaiterResult } from "@smithy/core/client";
|
|
2
2
|
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
3
3
|
import { CloudWatchClient } from "./CloudWatchClient";
|
|
4
|
+
import { type AssociateDatasetKmsKeyCommandInput, type AssociateDatasetKmsKeyCommandOutput } from "./commands/AssociateDatasetKmsKeyCommand";
|
|
4
5
|
import { type DeleteAlarmMuteRuleCommandInput, type DeleteAlarmMuteRuleCommandOutput } from "./commands/DeleteAlarmMuteRuleCommand";
|
|
5
6
|
import { type DeleteAlarmsCommandInput, type DeleteAlarmsCommandOutput } from "./commands/DeleteAlarmsCommand";
|
|
6
7
|
import { type DeleteAnomalyDetectorCommandInput, type DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
|
|
@@ -15,10 +16,12 @@ import { type DescribeAnomalyDetectorsCommandInput, type DescribeAnomalyDetector
|
|
|
15
16
|
import { type DescribeInsightRulesCommandInput, type DescribeInsightRulesCommandOutput } from "./commands/DescribeInsightRulesCommand";
|
|
16
17
|
import { type DisableAlarmActionsCommandInput, type DisableAlarmActionsCommandOutput } from "./commands/DisableAlarmActionsCommand";
|
|
17
18
|
import { type DisableInsightRulesCommandInput, type DisableInsightRulesCommandOutput } from "./commands/DisableInsightRulesCommand";
|
|
19
|
+
import { type DisassociateDatasetKmsKeyCommandInput, type DisassociateDatasetKmsKeyCommandOutput } from "./commands/DisassociateDatasetKmsKeyCommand";
|
|
18
20
|
import { type EnableAlarmActionsCommandInput, type EnableAlarmActionsCommandOutput } from "./commands/EnableAlarmActionsCommand";
|
|
19
21
|
import { type EnableInsightRulesCommandInput, type EnableInsightRulesCommandOutput } from "./commands/EnableInsightRulesCommand";
|
|
20
22
|
import { type GetAlarmMuteRuleCommandInput, type GetAlarmMuteRuleCommandOutput } from "./commands/GetAlarmMuteRuleCommand";
|
|
21
23
|
import { type GetDashboardCommandInput, type GetDashboardCommandOutput } from "./commands/GetDashboardCommand";
|
|
24
|
+
import { type GetDatasetCommandInput, type GetDatasetCommandOutput } from "./commands/GetDatasetCommand";
|
|
22
25
|
import { type GetInsightRuleReportCommandInput, type GetInsightRuleReportCommandOutput } from "./commands/GetInsightRuleReportCommand";
|
|
23
26
|
import { type GetMetricDataCommandInput, type GetMetricDataCommandOutput } from "./commands/GetMetricDataCommand";
|
|
24
27
|
import { type GetMetricStatisticsCommandInput, type GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
|
|
@@ -48,6 +51,12 @@ import { type StopOTelEnrichmentCommandInput, type StopOTelEnrichmentCommandOutp
|
|
|
48
51
|
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
49
52
|
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
50
53
|
export interface CloudWatch {
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link AssociateDatasetKmsKeyCommand}
|
|
56
|
+
*/
|
|
57
|
+
associateDatasetKmsKey(args: AssociateDatasetKmsKeyCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDatasetKmsKeyCommandOutput>;
|
|
58
|
+
associateDatasetKmsKey(args: AssociateDatasetKmsKeyCommandInput, cb: (err: any, data?: AssociateDatasetKmsKeyCommandOutput) => void): void;
|
|
59
|
+
associateDatasetKmsKey(args: AssociateDatasetKmsKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateDatasetKmsKeyCommandOutput) => void): void;
|
|
51
60
|
/**
|
|
52
61
|
* @see {@link DeleteAlarmMuteRuleCommand}
|
|
53
62
|
*/
|
|
@@ -137,6 +146,12 @@ export interface CloudWatch {
|
|
|
137
146
|
disableInsightRules(args: DisableInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<DisableInsightRulesCommandOutput>;
|
|
138
147
|
disableInsightRules(args: DisableInsightRulesCommandInput, cb: (err: any, data?: DisableInsightRulesCommandOutput) => void): void;
|
|
139
148
|
disableInsightRules(args: DisableInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableInsightRulesCommandOutput) => void): void;
|
|
149
|
+
/**
|
|
150
|
+
* @see {@link DisassociateDatasetKmsKeyCommand}
|
|
151
|
+
*/
|
|
152
|
+
disassociateDatasetKmsKey(args: DisassociateDatasetKmsKeyCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDatasetKmsKeyCommandOutput>;
|
|
153
|
+
disassociateDatasetKmsKey(args: DisassociateDatasetKmsKeyCommandInput, cb: (err: any, data?: DisassociateDatasetKmsKeyCommandOutput) => void): void;
|
|
154
|
+
disassociateDatasetKmsKey(args: DisassociateDatasetKmsKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDatasetKmsKeyCommandOutput) => void): void;
|
|
140
155
|
/**
|
|
141
156
|
* @see {@link EnableAlarmActionsCommand}
|
|
142
157
|
*/
|
|
@@ -161,6 +176,12 @@ export interface CloudWatch {
|
|
|
161
176
|
getDashboard(args: GetDashboardCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardCommandOutput>;
|
|
162
177
|
getDashboard(args: GetDashboardCommandInput, cb: (err: any, data?: GetDashboardCommandOutput) => void): void;
|
|
163
178
|
getDashboard(args: GetDashboardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDashboardCommandOutput) => void): void;
|
|
179
|
+
/**
|
|
180
|
+
* @see {@link GetDatasetCommand}
|
|
181
|
+
*/
|
|
182
|
+
getDataset(args: GetDatasetCommandInput, options?: __HttpHandlerOptions): Promise<GetDatasetCommandOutput>;
|
|
183
|
+
getDataset(args: GetDatasetCommandInput, cb: (err: any, data?: GetDatasetCommandOutput) => void): void;
|
|
184
|
+
getDataset(args: GetDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDatasetCommandOutput) => void): void;
|
|
164
185
|
/**
|
|
165
186
|
* @see {@link GetInsightRuleReportCommand}
|
|
166
187
|
*/
|
|
@@ -7,6 +7,7 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
7
7
|
import { type CompressionInputConfig, type CompressionResolvedConfig } from "@smithy/middleware-compression";
|
|
8
8
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import type { AssociateDatasetKmsKeyCommandInput, AssociateDatasetKmsKeyCommandOutput } from "./commands/AssociateDatasetKmsKeyCommand";
|
|
10
11
|
import type { DeleteAlarmMuteRuleCommandInput, DeleteAlarmMuteRuleCommandOutput } from "./commands/DeleteAlarmMuteRuleCommand";
|
|
11
12
|
import type { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "./commands/DeleteAlarmsCommand";
|
|
12
13
|
import type { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
|
|
@@ -21,10 +22,12 @@ import type { DescribeAnomalyDetectorsCommandInput, DescribeAnomalyDetectorsComm
|
|
|
21
22
|
import type { DescribeInsightRulesCommandInput, DescribeInsightRulesCommandOutput } from "./commands/DescribeInsightRulesCommand";
|
|
22
23
|
import type { DisableAlarmActionsCommandInput, DisableAlarmActionsCommandOutput } from "./commands/DisableAlarmActionsCommand";
|
|
23
24
|
import type { DisableInsightRulesCommandInput, DisableInsightRulesCommandOutput } from "./commands/DisableInsightRulesCommand";
|
|
25
|
+
import type { DisassociateDatasetKmsKeyCommandInput, DisassociateDatasetKmsKeyCommandOutput } from "./commands/DisassociateDatasetKmsKeyCommand";
|
|
24
26
|
import type { EnableAlarmActionsCommandInput, EnableAlarmActionsCommandOutput } from "./commands/EnableAlarmActionsCommand";
|
|
25
27
|
import type { EnableInsightRulesCommandInput, EnableInsightRulesCommandOutput } from "./commands/EnableInsightRulesCommand";
|
|
26
28
|
import type { GetAlarmMuteRuleCommandInput, GetAlarmMuteRuleCommandOutput } from "./commands/GetAlarmMuteRuleCommand";
|
|
27
29
|
import type { GetDashboardCommandInput, GetDashboardCommandOutput } from "./commands/GetDashboardCommand";
|
|
30
|
+
import type { GetDatasetCommandInput, GetDatasetCommandOutput } from "./commands/GetDatasetCommand";
|
|
28
31
|
import type { GetInsightRuleReportCommandInput, GetInsightRuleReportCommandOutput } from "./commands/GetInsightRuleReportCommand";
|
|
29
32
|
import type { GetMetricDataCommandInput, GetMetricDataCommandOutput } from "./commands/GetMetricDataCommand";
|
|
30
33
|
import type { GetMetricStatisticsCommandInput, GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
|
|
@@ -59,11 +62,11 @@ export { __Client };
|
|
|
59
62
|
/**
|
|
60
63
|
* @public
|
|
61
64
|
*/
|
|
62
|
-
export type ServiceInputTypes = DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
65
|
+
export type ServiceInputTypes = AssociateDatasetKmsKeyCommandInput | DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | DisassociateDatasetKmsKeyCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetDatasetCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
63
66
|
/**
|
|
64
67
|
* @public
|
|
65
68
|
*/
|
|
66
|
-
export type ServiceOutputTypes = DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
69
|
+
export type ServiceOutputTypes = AssociateDatasetKmsKeyCommandOutput | DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | DisassociateDatasetKmsKeyCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetDatasetCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
67
70
|
/**
|
|
68
71
|
* @public
|
|
69
72
|
*/
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
|
|
4
|
+
import type { AssociateDatasetKmsKeyInput, AssociateDatasetKmsKeyOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssociateDatasetKmsKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssociateDatasetKmsKeyCommandInput extends AssociateDatasetKmsKeyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssociateDatasetKmsKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssociateDatasetKmsKeyCommandOutput extends AssociateDatasetKmsKeyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssociateDatasetKmsKeyCommand_base: {
|
|
25
|
+
new (input: AssociateDatasetKmsKeyCommandInput): import("@smithy/core/client").CommandImpl<AssociateDatasetKmsKeyCommandInput, AssociateDatasetKmsKeyCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssociateDatasetKmsKeyCommandInput): import("@smithy/core/client").CommandImpl<AssociateDatasetKmsKeyCommandInput, AssociateDatasetKmsKeyCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Associates an Amazon Web Services Key Management Service (Amazon Web Services KMS)
|
|
33
|
+
* customer managed key with the specified dataset. After this operation completes, all
|
|
34
|
+
* data published to the dataset is encrypted at rest using the specified KMS key.
|
|
35
|
+
* Callers must have <code>kms:Decrypt</code> permission on the key to read the
|
|
36
|
+
* encrypted data.</p>
|
|
37
|
+
* <p>Only the <code>default</code> dataset is supported. The <code>default</code> dataset
|
|
38
|
+
* is implicit for every account in every Region — you do not need to create it before
|
|
39
|
+
* calling this operation.</p>
|
|
40
|
+
* <p>You can call <code>AssociateDatasetKmsKey</code> on a dataset that is already
|
|
41
|
+
* associated with a KMS key to replace the existing key with a different one. To replace
|
|
42
|
+
* a key, the caller must have <code>kms:Decrypt</code> permission on both the current
|
|
43
|
+
* key and the new key.</p>
|
|
44
|
+
* <p>The KMS key that you specify must meet all of the following requirements:</p>
|
|
45
|
+
* <ul>
|
|
46
|
+
* <li>
|
|
47
|
+
* <p>It must be a symmetric encryption KMS key (key spec
|
|
48
|
+
* <code>SYMMETRIC_DEFAULT</code>, key usage <code>ENCRYPT_DECRYPT</code>).
|
|
49
|
+
* Asymmetric keys, HMAC keys, and key material types other than
|
|
50
|
+
* <code>SYMMETRIC_DEFAULT</code> are not supported.</p>
|
|
51
|
+
* </li>
|
|
52
|
+
* <li>
|
|
53
|
+
* <p>It must be enabled and not pending deletion.</p>
|
|
54
|
+
* </li>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>Its key policy must grant the CloudWatch service principal
|
|
57
|
+
* (<code>cloudwatch.amazonaws.com</code>) these permissions:
|
|
58
|
+
* <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code>,
|
|
59
|
+
* <code>kms:Encrypt</code>, <code>kms:Decrypt</code>, and
|
|
60
|
+
* <code>kms:ReEncrypt*</code>. Amazon CloudWatch requires these permissions
|
|
61
|
+
* to manage the data on your behalf.</p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>The calling principal must have <code>kms:Decrypt</code> permission on the
|
|
65
|
+
* key.</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>It must be specified as a fully qualified key ARN. Key IDs, aliases, and
|
|
69
|
+
* alias ARNs are not accepted.</p>
|
|
70
|
+
* </li>
|
|
71
|
+
* <li>
|
|
72
|
+
* <p>It must be in the same Amazon Web Services Region as the dataset.</p>
|
|
73
|
+
* </li>
|
|
74
|
+
* </ul>
|
|
75
|
+
* <p>Before completing the association, Amazon CloudWatch validates the key by
|
|
76
|
+
* performing a series of dry-run KMS operations. Service-principal checks run first to
|
|
77
|
+
* verify that the key policy grants the required access to Amazon CloudWatch. These
|
|
78
|
+
* checks include <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code>,
|
|
79
|
+
* <code>kms:Encrypt</code>, <code>kms:Decrypt</code>, and <code>kms:ReEncrypt*</code>.
|
|
80
|
+
* After those succeed, a <code>kms:Decrypt</code> dry-run is run with the caller's
|
|
81
|
+
* credentials to verify that the calling principal can use the key. When you are
|
|
82
|
+
* replacing an existing key, the caller's <code>kms:Decrypt</code> dry-run is run on
|
|
83
|
+
* the current key first, and only then on the new key.</p>
|
|
84
|
+
* <p>If any of these checks fails, the operation fails and the existing key association
|
|
85
|
+
* (if any) remains unchanged. Common failure causes include the key being disabled, the
|
|
86
|
+
* key policy not granting the required permissions to Amazon CloudWatch, or the
|
|
87
|
+
* caller lacking <code>kms:Decrypt</code> permission on the key.</p>
|
|
88
|
+
* <p>For more information about using customer managed keys with Amazon CloudWatch,
|
|
89
|
+
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cmk-encryption.html">Encryption at rest
|
|
90
|
+
* with customer managed keys</a> in the <i>Amazon CloudWatch User
|
|
91
|
+
* Guide</i>.</p>
|
|
92
|
+
* @example
|
|
93
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
94
|
+
* ```javascript
|
|
95
|
+
* import { CloudWatchClient, AssociateDatasetKmsKeyCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
96
|
+
* // const { CloudWatchClient, AssociateDatasetKmsKeyCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
97
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
98
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
99
|
+
* const client = new CloudWatchClient(config);
|
|
100
|
+
* const input = { // AssociateDatasetKmsKeyInput
|
|
101
|
+
* DatasetIdentifier: "STRING_VALUE", // required
|
|
102
|
+
* KmsKeyArn: "STRING_VALUE", // required
|
|
103
|
+
* };
|
|
104
|
+
* const command = new AssociateDatasetKmsKeyCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* // {};
|
|
107
|
+
*
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param AssociateDatasetKmsKeyCommandInput - {@link AssociateDatasetKmsKeyCommandInput}
|
|
111
|
+
* @returns {@link AssociateDatasetKmsKeyCommandOutput}
|
|
112
|
+
* @see {@link AssociateDatasetKmsKeyCommandInput} for command's `input` shape.
|
|
113
|
+
* @see {@link AssociateDatasetKmsKeyCommandOutput} for command's `response` shape.
|
|
114
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ConflictException} (client fault)
|
|
117
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link KmsAccessDeniedException} (client fault)
|
|
120
|
+
* <p>The operation was denied because either the calling principal lacks the required
|
|
121
|
+
* Amazon Web Services Key Management Service (Amazon Web Services KMS) permission on the
|
|
122
|
+
* key, or the key policy does not grant Amazon CloudWatch the permissions it needs
|
|
123
|
+
* to use the key. Verify that the caller has <code>kms:Decrypt</code> permission on the
|
|
124
|
+
* key, and that the key policy grants the CloudWatch service principal the
|
|
125
|
+
* <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code>,
|
|
126
|
+
* <code>kms:Encrypt</code>, <code>kms:Decrypt</code>, and <code>kms:ReEncrypt*</code>
|
|
127
|
+
* permissions described in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_AssociateDatasetKmsKey.html">AssociateDatasetKmsKey</a>.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link KmsKeyDisabledException} (client fault)
|
|
130
|
+
* <p>The specified Amazon Web Services Key Management Service (Amazon Web Services KMS) key
|
|
131
|
+
* is disabled or pending deletion. Re-enable the key (or restore it, if it is pending
|
|
132
|
+
* deletion) and retry the operation.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link KmsKeyNotFoundException} (client fault)
|
|
135
|
+
* <p>The specified Amazon Web Services Key Management Service (Amazon Web Services KMS) key
|
|
136
|
+
* could not be found. Verify that the key Amazon Resource Name (ARN) is correct, that
|
|
137
|
+
* the key exists, and that it is in the same Amazon Web Services Region as the
|
|
138
|
+
* resource.</p>
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
141
|
+
* <p>The named resource does not exist.</p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link CloudWatchServiceException}
|
|
144
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
145
|
+
*
|
|
146
|
+
*
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export declare class AssociateDatasetKmsKeyCommand extends AssociateDatasetKmsKeyCommand_base {
|
|
150
|
+
/** @internal type navigation helper, not in runtime. */
|
|
151
|
+
protected static __types: {
|
|
152
|
+
api: {
|
|
153
|
+
input: AssociateDatasetKmsKeyInput;
|
|
154
|
+
output: {};
|
|
155
|
+
};
|
|
156
|
+
sdk: {
|
|
157
|
+
input: AssociateDatasetKmsKeyCommandInput;
|
|
158
|
+
output: AssociateDatasetKmsKeyCommandOutput;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
}
|