@aws-sdk/client-cloudwatch 3.1064.0 → 3.1065.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
|
@@ -0,0 +1,105 @@
|
|
|
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 { DisassociateDatasetKmsKeyInput, DisassociateDatasetKmsKeyOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateDatasetKmsKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateDatasetKmsKeyCommandInput extends DisassociateDatasetKmsKeyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateDatasetKmsKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateDatasetKmsKeyCommandOutput extends DisassociateDatasetKmsKeyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateDatasetKmsKeyCommand_base: {
|
|
25
|
+
new (input: DisassociateDatasetKmsKeyCommandInput): import("@smithy/core/client").CommandImpl<DisassociateDatasetKmsKeyCommandInput, DisassociateDatasetKmsKeyCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DisassociateDatasetKmsKeyCommandInput): import("@smithy/core/client").CommandImpl<DisassociateDatasetKmsKeyCommandInput, DisassociateDatasetKmsKeyCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Removes the customer managed Amazon Web Services Key Management Service
|
|
33
|
+
* (Amazon Web Services KMS) key association from the specified dataset. After this
|
|
34
|
+
* operation completes, data that you publish to the dataset is encrypted at rest using
|
|
35
|
+
* an Amazon Web Services owned key managed by Amazon CloudWatch.</p>
|
|
36
|
+
* <p>Only the <code>default</code> dataset is supported. To call this operation, the
|
|
37
|
+
* dataset must currently have a customer managed KMS key associated with it. If the
|
|
38
|
+
* dataset has no associated KMS key, the operation fails with
|
|
39
|
+
* <code>ResourceNotFoundException</code>.</p>
|
|
40
|
+
* <p>Amazon CloudWatch performs a dry-run <code>kms:Decrypt</code> call on the key
|
|
41
|
+
* as part of this operation. This verifies that the caller is authorized to use the
|
|
42
|
+
* currently associated key. The caller must have <code>kms:Decrypt</code> permission on
|
|
43
|
+
* the currently associated key, and the key must be enabled and accessible. If the key
|
|
44
|
+
* has been disabled or scheduled for deletion, you must first re-enable or restore it
|
|
45
|
+
* before you can disassociate it from the dataset.</p>
|
|
46
|
+
* <important>
|
|
47
|
+
* <p>Disassociating a KMS key from a dataset does not immediately remove the
|
|
48
|
+
* <code>kms:Decrypt</code> requirement on data plane operations. For up to three
|
|
49
|
+
* hours after disassociation, callers must continue to have
|
|
50
|
+
* <code>kms:Decrypt</code> permission on the previously associated key. Some data
|
|
51
|
+
* may still be encrypted with that key during this window. After this enforcement
|
|
52
|
+
* window elapses, the <code>kms:Decrypt</code> requirement is lifted.</p>
|
|
53
|
+
* </important>
|
|
54
|
+
* <p>For more information about using customer managed keys with Amazon CloudWatch,
|
|
55
|
+
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cmk-encryption.html">Encryption at rest
|
|
56
|
+
* with customer managed keys</a> in the <i>Amazon CloudWatch User
|
|
57
|
+
* Guide</i>.</p>
|
|
58
|
+
* @example
|
|
59
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
+
* ```javascript
|
|
61
|
+
* import { CloudWatchClient, DisassociateDatasetKmsKeyCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
62
|
+
* // const { CloudWatchClient, DisassociateDatasetKmsKeyCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
63
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
64
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
65
|
+
* const client = new CloudWatchClient(config);
|
|
66
|
+
* const input = { // DisassociateDatasetKmsKeyInput
|
|
67
|
+
* DatasetIdentifier: "STRING_VALUE", // required
|
|
68
|
+
* };
|
|
69
|
+
* const command = new DisassociateDatasetKmsKeyCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* // {};
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param DisassociateDatasetKmsKeyCommandInput - {@link DisassociateDatasetKmsKeyCommandInput}
|
|
76
|
+
* @returns {@link DisassociateDatasetKmsKeyCommandOutput}
|
|
77
|
+
* @see {@link DisassociateDatasetKmsKeyCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link DisassociateDatasetKmsKeyCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ConflictException} (client fault)
|
|
82
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The named resource does not exist.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link CloudWatchServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class DisassociateDatasetKmsKeyCommand extends DisassociateDatasetKmsKeyCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: DisassociateDatasetKmsKeyInput;
|
|
98
|
+
output: {};
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: DisassociateDatasetKmsKeyCommandInput;
|
|
102
|
+
output: DisassociateDatasetKmsKeyCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { GetDatasetInput, GetDatasetOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDatasetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDatasetCommandInput extends GetDatasetInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDatasetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDatasetCommandOutput extends GetDatasetOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetDatasetCommand_base: {
|
|
25
|
+
new (input: GetDatasetCommandInput): import("@smithy/core/client").CommandImpl<GetDatasetCommandInput, GetDatasetCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetDatasetCommandInput): import("@smithy/core/client").CommandImpl<GetDatasetCommandInput, GetDatasetCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Returns information about the specified dataset. This includes its identifier,
|
|
33
|
+
* Amazon Resource Name (ARN), and any customer managed Amazon Web Services Key
|
|
34
|
+
* Management Service (Amazon Web Services KMS) key that is currently associated with
|
|
35
|
+
* it.</p>
|
|
36
|
+
* <p>Only the <code>default</code> dataset is supported. The <code>default</code> dataset
|
|
37
|
+
* is implicit for every account in every Region — you can call <code>GetDataset</code>
|
|
38
|
+
* for it without first creating it. If no customer managed KMS key has been associated
|
|
39
|
+
* with the dataset, the response omits the <code>KmsKeyArn</code> field, indicating that
|
|
40
|
+
* data is encrypted at rest using an Amazon Web Services owned key managed by
|
|
41
|
+
* Amazon CloudWatch.</p>
|
|
42
|
+
* <p>To associate a customer managed KMS key with a dataset, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_AssociateDatasetKmsKey.html">AssociateDatasetKmsKey</a>. To remove the association, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DisassociateDatasetKmsKey.html">DisassociateDatasetKmsKey</a>.</p>
|
|
43
|
+
* @example
|
|
44
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
+
* ```javascript
|
|
46
|
+
* import { CloudWatchClient, GetDatasetCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
47
|
+
* // const { CloudWatchClient, GetDatasetCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
48
|
+
* // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
|
|
49
|
+
* const config = {}; // type is CloudWatchClientConfig
|
|
50
|
+
* const client = new CloudWatchClient(config);
|
|
51
|
+
* const input = { // GetDatasetInput
|
|
52
|
+
* DatasetIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* };
|
|
54
|
+
* const command = new GetDatasetCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // GetDatasetOutput
|
|
57
|
+
* // DatasetId: "STRING_VALUE", // required
|
|
58
|
+
* // Arn: "STRING_VALUE", // required
|
|
59
|
+
* // KmsKeyArn: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param GetDatasetCommandInput - {@link GetDatasetCommandInput}
|
|
65
|
+
* @returns {@link GetDatasetCommandOutput}
|
|
66
|
+
* @see {@link GetDatasetCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link GetDatasetCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>The named resource does not exist.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link CloudWatchServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from CloudWatch service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class GetDatasetCommand extends GetDatasetCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: GetDatasetInput;
|
|
84
|
+
output: GetDatasetOutput;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: GetDatasetCommandInput;
|
|
88
|
+
output: GetDatasetCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AssociateDatasetKmsKeyCommand";
|
|
1
2
|
export * from "./DeleteAlarmMuteRuleCommand";
|
|
2
3
|
export * from "./DeleteAlarmsCommand";
|
|
3
4
|
export * from "./DeleteAnomalyDetectorCommand";
|
|
@@ -12,10 +13,12 @@ export * from "./DescribeAnomalyDetectorsCommand";
|
|
|
12
13
|
export * from "./DescribeInsightRulesCommand";
|
|
13
14
|
export * from "./DisableAlarmActionsCommand";
|
|
14
15
|
export * from "./DisableInsightRulesCommand";
|
|
16
|
+
export * from "./DisassociateDatasetKmsKeyCommand";
|
|
15
17
|
export * from "./EnableAlarmActionsCommand";
|
|
16
18
|
export * from "./EnableInsightRulesCommand";
|
|
17
19
|
export * from "./GetAlarmMuteRuleCommand";
|
|
18
20
|
export * from "./GetDashboardCommand";
|
|
21
|
+
export * from "./GetDatasetCommand";
|
|
19
22
|
export * from "./GetInsightRuleReportCommand";
|
|
20
23
|
export * from "./GetMetricDataCommand";
|
|
21
24
|
export * from "./GetMetricStatisticsCommand";
|
|
@@ -2,30 +2,96 @@ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/
|
|
|
2
2
|
import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
|
|
3
3
|
import type { DashboardValidationMessage } from "./models_0";
|
|
4
4
|
/**
|
|
5
|
-
* <p>
|
|
5
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
9
|
-
readonly name: "
|
|
8
|
+
export declare class ConflictException extends __BaseException {
|
|
9
|
+
readonly name: "ConflictException";
|
|
10
10
|
readonly $fault: "client";
|
|
11
11
|
Message?: string | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
|
-
constructor(opts: __ExceptionOptionType<
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* <p>
|
|
18
|
+
* <p>The operation was denied because either the calling principal lacks the required
|
|
19
|
+
* Amazon Web Services Key Management Service (Amazon Web Services KMS) permission on the
|
|
20
|
+
* key, or the key policy does not grant Amazon CloudWatch the permissions it needs
|
|
21
|
+
* to use the key. Verify that the caller has <code>kms:Decrypt</code> permission on the
|
|
22
|
+
* key, and that the key policy grants the CloudWatch service principal the
|
|
23
|
+
* <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code>,
|
|
24
|
+
* <code>kms:Encrypt</code>, <code>kms:Decrypt</code>, and <code>kms:ReEncrypt*</code>
|
|
25
|
+
* permissions described in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_AssociateDatasetKmsKey.html">AssociateDatasetKmsKey</a>.</p>
|
|
19
26
|
* @public
|
|
20
27
|
*/
|
|
21
|
-
export declare class
|
|
22
|
-
readonly name: "
|
|
28
|
+
export declare class KmsAccessDeniedException extends __BaseException {
|
|
29
|
+
readonly name: "KmsAccessDeniedException";
|
|
30
|
+
readonly $fault: "client";
|
|
31
|
+
Message: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
constructor(opts: __ExceptionOptionType<KmsAccessDeniedException, __BaseException>);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* <p>The specified Amazon Web Services Key Management Service (Amazon Web Services KMS) key
|
|
39
|
+
* is disabled or pending deletion. Re-enable the key (or restore it, if it is pending
|
|
40
|
+
* deletion) and retry the operation.</p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export declare class KmsKeyDisabledException extends __BaseException {
|
|
44
|
+
readonly name: "KmsKeyDisabledException";
|
|
45
|
+
readonly $fault: "client";
|
|
46
|
+
Message: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
constructor(opts: __ExceptionOptionType<KmsKeyDisabledException, __BaseException>);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* <p>The specified Amazon Web Services Key Management Service (Amazon Web Services KMS) key
|
|
54
|
+
* could not be found. Verify that the key Amazon Resource Name (ARN) is correct, that
|
|
55
|
+
* the key exists, and that it is in the same Amazon Web Services Region as the
|
|
56
|
+
* resource.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export declare class KmsKeyNotFoundException extends __BaseException {
|
|
60
|
+
readonly name: "KmsKeyNotFoundException";
|
|
61
|
+
readonly $fault: "client";
|
|
62
|
+
Message: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
constructor(opts: __ExceptionOptionType<KmsKeyNotFoundException, __BaseException>);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* <p>The named resource does not exist.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
73
|
+
readonly name: "ResourceNotFoundException";
|
|
23
74
|
readonly $fault: "client";
|
|
75
|
+
ResourceType?: string | undefined;
|
|
76
|
+
ResourceId?: string | undefined;
|
|
24
77
|
Message?: string | undefined;
|
|
25
78
|
/**
|
|
26
79
|
* @internal
|
|
27
80
|
*/
|
|
28
|
-
constructor(opts: __ExceptionOptionType<
|
|
81
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* <p>More than one process tried to modify a resource at the same time.</p>
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
88
|
+
readonly name: "ConcurrentModificationException";
|
|
89
|
+
readonly $fault: "client";
|
|
90
|
+
Message?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
29
95
|
}
|
|
30
96
|
/**
|
|
31
97
|
* <p>Some part of the dashboard data is invalid.</p>
|
|
@@ -118,21 +184,6 @@ export declare class MissingRequiredParameterException extends __BaseException {
|
|
|
118
184
|
*/
|
|
119
185
|
constructor(opts: __ExceptionOptionType<MissingRequiredParameterException, __BaseException>);
|
|
120
186
|
}
|
|
121
|
-
/**
|
|
122
|
-
* <p>The named resource does not exist.</p>
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
126
|
-
readonly name: "ResourceNotFoundException";
|
|
127
|
-
readonly $fault: "client";
|
|
128
|
-
ResourceType?: string | undefined;
|
|
129
|
-
ResourceId?: string | undefined;
|
|
130
|
-
Message?: string | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
135
|
-
}
|
|
136
187
|
/**
|
|
137
188
|
* <p>The next token specified is invalid.</p>
|
|
138
189
|
* @public
|
|
@@ -521,6 +521,39 @@ export interface AnomalyDetector {
|
|
|
521
521
|
*/
|
|
522
522
|
MetricMathAnomalyDetector?: MetricMathAnomalyDetector | undefined;
|
|
523
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
export interface AssociateDatasetKmsKeyInput {
|
|
528
|
+
/**
|
|
529
|
+
* <p>Specifies the identifier of the dataset that you want to associate the KMS key
|
|
530
|
+
* with. For the <code>default</code> dataset, you can specify either
|
|
531
|
+
* <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format
|
|
532
|
+
* <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
DatasetIdentifier: string | undefined;
|
|
536
|
+
/**
|
|
537
|
+
* <p>Specifies the Amazon Resource Name (ARN) of the customer managed KMS key to
|
|
538
|
+
* associate with the dataset. The key must be a symmetric encryption KMS key
|
|
539
|
+
* (<code>SYMMETRIC_DEFAULT</code>) in the same Amazon Web Services Region as the
|
|
540
|
+
* dataset.</p>
|
|
541
|
+
* <p>The ARN must be in the format
|
|
542
|
+
* <code>arn:aws:kms:<i>Region</i>:<i>account-id</i>:key/<i>key-id</i>
|
|
543
|
+
* </code>.
|
|
544
|
+
* Key IDs, aliases, and alias ARNs are not accepted.</p>
|
|
545
|
+
* <p>For more information about KMS key ARNs, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">Key ARN</a> in
|
|
546
|
+
* the <i>Amazon Web Services Key Management Service Developer
|
|
547
|
+
* Guide</i>.</p>
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
KmsKeyArn: string | undefined;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
export interface AssociateDatasetKmsKeyOutput {
|
|
556
|
+
}
|
|
524
557
|
/**
|
|
525
558
|
* <p>This array is empty if the API operation was successful for all the rules specified in
|
|
526
559
|
* the request. If the operation could not process one of the rules, the following data is
|
|
@@ -1632,6 +1665,24 @@ export interface DisableInsightRulesOutput {
|
|
|
1632
1665
|
*/
|
|
1633
1666
|
Failures?: PartialFailure[] | undefined;
|
|
1634
1667
|
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @public
|
|
1670
|
+
*/
|
|
1671
|
+
export interface DisassociateDatasetKmsKeyInput {
|
|
1672
|
+
/**
|
|
1673
|
+
* <p>Specifies the identifier of the dataset from which to remove the KMS key
|
|
1674
|
+
* association. For the <code>default</code> dataset, you can specify either
|
|
1675
|
+
* <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format
|
|
1676
|
+
* <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
|
|
1677
|
+
* @public
|
|
1678
|
+
*/
|
|
1679
|
+
DatasetIdentifier: string | undefined;
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* @public
|
|
1683
|
+
*/
|
|
1684
|
+
export interface DisassociateDatasetKmsKeyOutput {
|
|
1685
|
+
}
|
|
1635
1686
|
/**
|
|
1636
1687
|
* @public
|
|
1637
1688
|
*/
|
|
@@ -2064,6 +2115,45 @@ export interface GetDashboardOutput {
|
|
|
2064
2115
|
*/
|
|
2065
2116
|
DashboardName?: string | undefined;
|
|
2066
2117
|
}
|
|
2118
|
+
/**
|
|
2119
|
+
* @public
|
|
2120
|
+
*/
|
|
2121
|
+
export interface GetDatasetInput {
|
|
2122
|
+
/**
|
|
2123
|
+
* <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code>
|
|
2124
|
+
* dataset, you can specify either <code>default</code> or the full dataset Amazon
|
|
2125
|
+
* Resource Name (ARN) in the format
|
|
2126
|
+
* <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
|
|
2127
|
+
* @public
|
|
2128
|
+
*/
|
|
2129
|
+
DatasetIdentifier: string | undefined;
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* @public
|
|
2133
|
+
*/
|
|
2134
|
+
export interface GetDatasetOutput {
|
|
2135
|
+
/**
|
|
2136
|
+
* <p>Returns the identifier of the dataset.</p>
|
|
2137
|
+
* @public
|
|
2138
|
+
*/
|
|
2139
|
+
DatasetId: string | undefined;
|
|
2140
|
+
/**
|
|
2141
|
+
* <p>Returns the Amazon Resource Name (ARN) of the dataset, in the format
|
|
2142
|
+
* <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/<i>dataset-id</i>
|
|
2143
|
+
* </code>.</p>
|
|
2144
|
+
* @public
|
|
2145
|
+
*/
|
|
2146
|
+
Arn: string | undefined;
|
|
2147
|
+
/**
|
|
2148
|
+
* <p>Returns the Amazon Resource Name (ARN) of the customer managed Amazon Web Services
|
|
2149
|
+
* KMS key that is currently associated with the dataset, if any. If the dataset is not
|
|
2150
|
+
* associated with a customer managed KMS key, this field is not included in the
|
|
2151
|
+
* response and the dataset is encrypted at rest using an Amazon Web Services owned
|
|
2152
|
+
* key.</p>
|
|
2153
|
+
* @public
|
|
2154
|
+
*/
|
|
2155
|
+
KmsKeyArn?: string | undefined;
|
|
2156
|
+
}
|
|
2067
2157
|
/**
|
|
2068
2158
|
* @public
|
|
2069
2159
|
*/
|
|
@@ -10,6 +10,9 @@ export declare var InvalidFormatFault$: StaticErrorSchema;
|
|
|
10
10
|
export declare var InvalidNextToken$: StaticErrorSchema;
|
|
11
11
|
export declare var InvalidParameterCombinationException$: StaticErrorSchema;
|
|
12
12
|
export declare var InvalidParameterValueException$: StaticErrorSchema;
|
|
13
|
+
export declare var KmsAccessDeniedException$: StaticErrorSchema;
|
|
14
|
+
export declare var KmsKeyDisabledException$: StaticErrorSchema;
|
|
15
|
+
export declare var KmsKeyNotFoundException$: StaticErrorSchema;
|
|
13
16
|
export declare var LimitExceededException$: StaticErrorSchema;
|
|
14
17
|
export declare var LimitExceededFault$: StaticErrorSchema;
|
|
15
18
|
export declare var MissingRequiredParameterException$: StaticErrorSchema;
|
|
@@ -27,6 +30,8 @@ export declare var AlarmMuteRuleSummary$: StaticStructureSchema;
|
|
|
27
30
|
export declare var AlarmPromQLCriteria$: StaticStructureSchema;
|
|
28
31
|
export declare var AnomalyDetector$: StaticStructureSchema;
|
|
29
32
|
export declare var AnomalyDetectorConfiguration$: StaticStructureSchema;
|
|
33
|
+
export declare var AssociateDatasetKmsKeyInput$: StaticStructureSchema;
|
|
34
|
+
export declare var AssociateDatasetKmsKeyOutput$: StaticStructureSchema;
|
|
30
35
|
export declare var CompositeAlarm$: StaticStructureSchema;
|
|
31
36
|
export declare var DashboardEntry$: StaticStructureSchema;
|
|
32
37
|
export declare var DashboardValidationMessage$: StaticStructureSchema;
|
|
@@ -58,6 +63,8 @@ export declare var DimensionFilter$: StaticStructureSchema;
|
|
|
58
63
|
export declare var DisableAlarmActionsInput$: StaticStructureSchema;
|
|
59
64
|
export declare var DisableInsightRulesInput$: StaticStructureSchema;
|
|
60
65
|
export declare var DisableInsightRulesOutput$: StaticStructureSchema;
|
|
66
|
+
export declare var DisassociateDatasetKmsKeyInput$: StaticStructureSchema;
|
|
67
|
+
export declare var DisassociateDatasetKmsKeyOutput$: StaticStructureSchema;
|
|
61
68
|
export declare var EnableAlarmActionsInput$: StaticStructureSchema;
|
|
62
69
|
export declare var EnableInsightRulesInput$: StaticStructureSchema;
|
|
63
70
|
export declare var EnableInsightRulesOutput$: StaticStructureSchema;
|
|
@@ -67,6 +74,8 @@ export declare var GetAlarmMuteRuleInput$: StaticStructureSchema;
|
|
|
67
74
|
export declare var GetAlarmMuteRuleOutput$: StaticStructureSchema;
|
|
68
75
|
export declare var GetDashboardInput$: StaticStructureSchema;
|
|
69
76
|
export declare var GetDashboardOutput$: StaticStructureSchema;
|
|
77
|
+
export declare var GetDatasetInput$: StaticStructureSchema;
|
|
78
|
+
export declare var GetDatasetOutput$: StaticStructureSchema;
|
|
70
79
|
export declare var GetInsightRuleReportInput$: StaticStructureSchema;
|
|
71
80
|
export declare var GetInsightRuleReportOutput$: StaticStructureSchema;
|
|
72
81
|
export declare var GetMetricDataInput$: StaticStructureSchema;
|
|
@@ -148,6 +157,7 @@ export declare var TagResourceOutput$: StaticStructureSchema;
|
|
|
148
157
|
export declare var UntagResourceInput$: StaticStructureSchema;
|
|
149
158
|
export declare var UntagResourceOutput$: StaticStructureSchema;
|
|
150
159
|
export declare var EvaluationCriteria$: StaticUnionSchema;
|
|
160
|
+
export declare var AssociateDatasetKmsKey$: StaticOperationSchema;
|
|
151
161
|
export declare var DeleteAlarmMuteRule$: StaticOperationSchema;
|
|
152
162
|
export declare var DeleteAlarms$: StaticOperationSchema;
|
|
153
163
|
export declare var DeleteAnomalyDetector$: StaticOperationSchema;
|
|
@@ -162,10 +172,12 @@ export declare var DescribeAnomalyDetectors$: StaticOperationSchema;
|
|
|
162
172
|
export declare var DescribeInsightRules$: StaticOperationSchema;
|
|
163
173
|
export declare var DisableAlarmActions$: StaticOperationSchema;
|
|
164
174
|
export declare var DisableInsightRules$: StaticOperationSchema;
|
|
175
|
+
export declare var DisassociateDatasetKmsKey$: StaticOperationSchema;
|
|
165
176
|
export declare var EnableAlarmActions$: StaticOperationSchema;
|
|
166
177
|
export declare var EnableInsightRules$: StaticOperationSchema;
|
|
167
178
|
export declare var GetAlarmMuteRule$: StaticOperationSchema;
|
|
168
179
|
export declare var GetDashboard$: StaticOperationSchema;
|
|
180
|
+
export declare var GetDataset$: StaticOperationSchema;
|
|
169
181
|
export declare var GetInsightRuleReport$: StaticOperationSchema;
|
|
170
182
|
export declare var GetMetricData$: StaticOperationSchema;
|
|
171
183
|
export declare var GetMetricStatistics$: StaticOperationSchema;
|
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
WaiterConfiguration,
|
|
7
7
|
} from "@smithy/types";
|
|
8
8
|
import { CloudWatchClient } from "./CloudWatchClient";
|
|
9
|
+
import {
|
|
10
|
+
AssociateDatasetKmsKeyCommandInput,
|
|
11
|
+
AssociateDatasetKmsKeyCommandOutput,
|
|
12
|
+
} from "./commands/AssociateDatasetKmsKeyCommand";
|
|
9
13
|
import {
|
|
10
14
|
DeleteAlarmMuteRuleCommandInput,
|
|
11
15
|
DeleteAlarmMuteRuleCommandOutput,
|
|
@@ -62,6 +66,10 @@ import {
|
|
|
62
66
|
DisableInsightRulesCommandInput,
|
|
63
67
|
DisableInsightRulesCommandOutput,
|
|
64
68
|
} from "./commands/DisableInsightRulesCommand";
|
|
69
|
+
import {
|
|
70
|
+
DisassociateDatasetKmsKeyCommandInput,
|
|
71
|
+
DisassociateDatasetKmsKeyCommandOutput,
|
|
72
|
+
} from "./commands/DisassociateDatasetKmsKeyCommand";
|
|
65
73
|
import {
|
|
66
74
|
EnableAlarmActionsCommandInput,
|
|
67
75
|
EnableAlarmActionsCommandOutput,
|
|
@@ -78,6 +86,10 @@ import {
|
|
|
78
86
|
GetDashboardCommandInput,
|
|
79
87
|
GetDashboardCommandOutput,
|
|
80
88
|
} from "./commands/GetDashboardCommand";
|
|
89
|
+
import {
|
|
90
|
+
GetDatasetCommandInput,
|
|
91
|
+
GetDatasetCommandOutput,
|
|
92
|
+
} from "./commands/GetDatasetCommand";
|
|
81
93
|
import {
|
|
82
94
|
GetInsightRuleReportCommandInput,
|
|
83
95
|
GetInsightRuleReportCommandOutput,
|
|
@@ -191,6 +203,19 @@ import {
|
|
|
191
203
|
UntagResourceCommandOutput,
|
|
192
204
|
} from "./commands/UntagResourceCommand";
|
|
193
205
|
export interface CloudWatch {
|
|
206
|
+
associateDatasetKmsKey(
|
|
207
|
+
args: AssociateDatasetKmsKeyCommandInput,
|
|
208
|
+
options?: __HttpHandlerOptions
|
|
209
|
+
): Promise<AssociateDatasetKmsKeyCommandOutput>;
|
|
210
|
+
associateDatasetKmsKey(
|
|
211
|
+
args: AssociateDatasetKmsKeyCommandInput,
|
|
212
|
+
cb: (err: any, data?: AssociateDatasetKmsKeyCommandOutput) => void
|
|
213
|
+
): void;
|
|
214
|
+
associateDatasetKmsKey(
|
|
215
|
+
args: AssociateDatasetKmsKeyCommandInput,
|
|
216
|
+
options: __HttpHandlerOptions,
|
|
217
|
+
cb: (err: any, data?: AssociateDatasetKmsKeyCommandOutput) => void
|
|
218
|
+
): void;
|
|
194
219
|
deleteAlarmMuteRule(
|
|
195
220
|
args: DeleteAlarmMuteRuleCommandInput,
|
|
196
221
|
options?: __HttpHandlerOptions
|
|
@@ -378,6 +403,19 @@ export interface CloudWatch {
|
|
|
378
403
|
options: __HttpHandlerOptions,
|
|
379
404
|
cb: (err: any, data?: DisableInsightRulesCommandOutput) => void
|
|
380
405
|
): void;
|
|
406
|
+
disassociateDatasetKmsKey(
|
|
407
|
+
args: DisassociateDatasetKmsKeyCommandInput,
|
|
408
|
+
options?: __HttpHandlerOptions
|
|
409
|
+
): Promise<DisassociateDatasetKmsKeyCommandOutput>;
|
|
410
|
+
disassociateDatasetKmsKey(
|
|
411
|
+
args: DisassociateDatasetKmsKeyCommandInput,
|
|
412
|
+
cb: (err: any, data?: DisassociateDatasetKmsKeyCommandOutput) => void
|
|
413
|
+
): void;
|
|
414
|
+
disassociateDatasetKmsKey(
|
|
415
|
+
args: DisassociateDatasetKmsKeyCommandInput,
|
|
416
|
+
options: __HttpHandlerOptions,
|
|
417
|
+
cb: (err: any, data?: DisassociateDatasetKmsKeyCommandOutput) => void
|
|
418
|
+
): void;
|
|
381
419
|
enableAlarmActions(
|
|
382
420
|
args: EnableAlarmActionsCommandInput,
|
|
383
421
|
options?: __HttpHandlerOptions
|
|
@@ -430,6 +468,19 @@ export interface CloudWatch {
|
|
|
430
468
|
options: __HttpHandlerOptions,
|
|
431
469
|
cb: (err: any, data?: GetDashboardCommandOutput) => void
|
|
432
470
|
): void;
|
|
471
|
+
getDataset(
|
|
472
|
+
args: GetDatasetCommandInput,
|
|
473
|
+
options?: __HttpHandlerOptions
|
|
474
|
+
): Promise<GetDatasetCommandOutput>;
|
|
475
|
+
getDataset(
|
|
476
|
+
args: GetDatasetCommandInput,
|
|
477
|
+
cb: (err: any, data?: GetDatasetCommandOutput) => void
|
|
478
|
+
): void;
|
|
479
|
+
getDataset(
|
|
480
|
+
args: GetDatasetCommandInput,
|
|
481
|
+
options: __HttpHandlerOptions,
|
|
482
|
+
cb: (err: any, data?: GetDatasetCommandOutput) => void
|
|
483
|
+
): void;
|
|
433
484
|
getInsightRuleReport(
|
|
434
485
|
args: GetInsightRuleReportCommandInput,
|
|
435
486
|
options?: __HttpHandlerOptions
|
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
HttpAuthSchemeInputConfig,
|
|
41
41
|
HttpAuthSchemeResolvedConfig,
|
|
42
42
|
} from "./auth/httpAuthSchemeProvider";
|
|
43
|
+
import {
|
|
44
|
+
AssociateDatasetKmsKeyCommandInput,
|
|
45
|
+
AssociateDatasetKmsKeyCommandOutput,
|
|
46
|
+
} from "./commands/AssociateDatasetKmsKeyCommand";
|
|
43
47
|
import {
|
|
44
48
|
DeleteAlarmMuteRuleCommandInput,
|
|
45
49
|
DeleteAlarmMuteRuleCommandOutput,
|
|
@@ -96,6 +100,10 @@ import {
|
|
|
96
100
|
DisableInsightRulesCommandInput,
|
|
97
101
|
DisableInsightRulesCommandOutput,
|
|
98
102
|
} from "./commands/DisableInsightRulesCommand";
|
|
103
|
+
import {
|
|
104
|
+
DisassociateDatasetKmsKeyCommandInput,
|
|
105
|
+
DisassociateDatasetKmsKeyCommandOutput,
|
|
106
|
+
} from "./commands/DisassociateDatasetKmsKeyCommand";
|
|
99
107
|
import {
|
|
100
108
|
EnableAlarmActionsCommandInput,
|
|
101
109
|
EnableAlarmActionsCommandOutput,
|
|
@@ -112,6 +120,10 @@ import {
|
|
|
112
120
|
GetDashboardCommandInput,
|
|
113
121
|
GetDashboardCommandOutput,
|
|
114
122
|
} from "./commands/GetDashboardCommand";
|
|
123
|
+
import {
|
|
124
|
+
GetDatasetCommandInput,
|
|
125
|
+
GetDatasetCommandOutput,
|
|
126
|
+
} from "./commands/GetDatasetCommand";
|
|
115
127
|
import {
|
|
116
128
|
GetInsightRuleReportCommandInput,
|
|
117
129
|
GetInsightRuleReportCommandOutput,
|
|
@@ -232,6 +244,7 @@ import {
|
|
|
232
244
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
233
245
|
export { __Client };
|
|
234
246
|
export type ServiceInputTypes =
|
|
247
|
+
| AssociateDatasetKmsKeyCommandInput
|
|
235
248
|
| DeleteAlarmMuteRuleCommandInput
|
|
236
249
|
| DeleteAlarmsCommandInput
|
|
237
250
|
| DeleteAnomalyDetectorCommandInput
|
|
@@ -246,10 +259,12 @@ export type ServiceInputTypes =
|
|
|
246
259
|
| DescribeInsightRulesCommandInput
|
|
247
260
|
| DisableAlarmActionsCommandInput
|
|
248
261
|
| DisableInsightRulesCommandInput
|
|
262
|
+
| DisassociateDatasetKmsKeyCommandInput
|
|
249
263
|
| EnableAlarmActionsCommandInput
|
|
250
264
|
| EnableInsightRulesCommandInput
|
|
251
265
|
| GetAlarmMuteRuleCommandInput
|
|
252
266
|
| GetDashboardCommandInput
|
|
267
|
+
| GetDatasetCommandInput
|
|
253
268
|
| GetInsightRuleReportCommandInput
|
|
254
269
|
| GetMetricDataCommandInput
|
|
255
270
|
| GetMetricStatisticsCommandInput
|
|
@@ -279,6 +294,7 @@ export type ServiceInputTypes =
|
|
|
279
294
|
| TagResourceCommandInput
|
|
280
295
|
| UntagResourceCommandInput;
|
|
281
296
|
export type ServiceOutputTypes =
|
|
297
|
+
| AssociateDatasetKmsKeyCommandOutput
|
|
282
298
|
| DeleteAlarmMuteRuleCommandOutput
|
|
283
299
|
| DeleteAlarmsCommandOutput
|
|
284
300
|
| DeleteAnomalyDetectorCommandOutput
|
|
@@ -293,10 +309,12 @@ export type ServiceOutputTypes =
|
|
|
293
309
|
| DescribeInsightRulesCommandOutput
|
|
294
310
|
| DisableAlarmActionsCommandOutput
|
|
295
311
|
| DisableInsightRulesCommandOutput
|
|
312
|
+
| DisassociateDatasetKmsKeyCommandOutput
|
|
296
313
|
| EnableAlarmActionsCommandOutput
|
|
297
314
|
| EnableInsightRulesCommandOutput
|
|
298
315
|
| GetAlarmMuteRuleCommandOutput
|
|
299
316
|
| GetDashboardCommandOutput
|
|
317
|
+
| GetDatasetCommandOutput
|
|
300
318
|
| GetInsightRuleReportCommandOutput
|
|
301
319
|
| GetMetricDataCommandOutput
|
|
302
320
|
| GetMetricStatisticsCommandOutput
|