@aws-sdk/client-amp 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/Amp.js +0 -1
- package/dist-cjs/AmpClient.js +0 -1
- package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/CreateWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListWorkspacesCommand.js +0 -1
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
- package/dist-cjs/pagination/ListWorkspacesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForWorkspaceActive.js +0 -1
- package/dist-cjs/waiters/waitForWorkspaceDeleted.js +0 -1
- package/dist-es/Amp.js +0 -1
- package/dist-es/AmpClient.js +0 -1
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +0 -1
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
- package/dist-es/commands/CreateWorkspaceCommand.js +0 -1
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
- package/dist-es/commands/DeleteWorkspaceCommand.js +0 -1
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
- package/dist-es/commands/DescribeWorkspaceCommand.js +0 -1
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListWorkspacesCommand.js +0 -1
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +0 -1
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
- package/dist-es/pagination/ListWorkspacesPaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/waitForWorkspaceActive.js +0 -1
- package/dist-es/waiters/waitForWorkspaceDeleted.js +0 -1
- package/package.json +34 -31
- package/dist-cjs/Amp.js.map +0 -1
- package/dist-cjs/AmpClient.js.map +0 -1
- package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWorkspaceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkspacesCommand.js.map +0 -1
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForWorkspaceActive.js.map +0 -1
- package/dist-cjs/waiters/waitForWorkspaceDeleted.js.map +0 -1
- package/dist-es/Amp.js.map +0 -1
- package/dist-es/AmpClient.js.map +0 -1
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-es/commands/CreateWorkspaceCommand.js.map +0 -1
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-es/commands/DeleteWorkspaceCommand.js.map +0 -1
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkspaceCommand.js.map +0 -1
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListWorkspacesCommand.js.map +0 -1
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkspacesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForWorkspaceActive.js.map +0 -1
- package/dist-es/waiters/waitForWorkspaceDeleted.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Amp.ts +0 -627
- package/src/AmpClient.ts +0 -320
- package/src/commands/CreateAlertManagerDefinitionCommand.ts +0 -100
- package/src/commands/CreateRuleGroupsNamespaceCommand.ts +0 -98
- package/src/commands/CreateWorkspaceCommand.ts +0 -95
- package/src/commands/DeleteAlertManagerDefinitionCommand.ts +0 -98
- package/src/commands/DeleteRuleGroupsNamespaceCommand.ts +0 -98
- package/src/commands/DeleteWorkspaceCommand.ts +0 -95
- package/src/commands/DescribeAlertManagerDefinitionCommand.ts +0 -103
- package/src/commands/DescribeRuleGroupsNamespaceCommand.ts +0 -100
- package/src/commands/DescribeWorkspaceCommand.ts +0 -95
- package/src/commands/ListRuleGroupsNamespacesCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListWorkspacesCommand.ts +0 -95
- package/src/commands/PutAlertManagerDefinitionCommand.ts +0 -98
- package/src/commands/PutRuleGroupsNamespaceCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateWorkspaceAliasCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -25
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1347
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListRuleGroupsNamespacesPaginator.ts +0 -59
- package/src/pagination/ListWorkspacesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -2735
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForWorkspaceActive.ts +0 -63
- package/src/waiters/waitForWorkspaceDeleted.ts +0 -50
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/Amp.ts
DELETED
|
@@ -1,627 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { AmpClient } from "./AmpClient";
|
|
4
|
-
import {
|
|
5
|
-
CreateAlertManagerDefinitionCommand,
|
|
6
|
-
CreateAlertManagerDefinitionCommandInput,
|
|
7
|
-
CreateAlertManagerDefinitionCommandOutput,
|
|
8
|
-
} from "./commands/CreateAlertManagerDefinitionCommand";
|
|
9
|
-
import {
|
|
10
|
-
CreateRuleGroupsNamespaceCommand,
|
|
11
|
-
CreateRuleGroupsNamespaceCommandInput,
|
|
12
|
-
CreateRuleGroupsNamespaceCommandOutput,
|
|
13
|
-
} from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
14
|
-
import {
|
|
15
|
-
CreateWorkspaceCommand,
|
|
16
|
-
CreateWorkspaceCommandInput,
|
|
17
|
-
CreateWorkspaceCommandOutput,
|
|
18
|
-
} from "./commands/CreateWorkspaceCommand";
|
|
19
|
-
import {
|
|
20
|
-
DeleteAlertManagerDefinitionCommand,
|
|
21
|
-
DeleteAlertManagerDefinitionCommandInput,
|
|
22
|
-
DeleteAlertManagerDefinitionCommandOutput,
|
|
23
|
-
} from "./commands/DeleteAlertManagerDefinitionCommand";
|
|
24
|
-
import {
|
|
25
|
-
DeleteRuleGroupsNamespaceCommand,
|
|
26
|
-
DeleteRuleGroupsNamespaceCommandInput,
|
|
27
|
-
DeleteRuleGroupsNamespaceCommandOutput,
|
|
28
|
-
} from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
29
|
-
import {
|
|
30
|
-
DeleteWorkspaceCommand,
|
|
31
|
-
DeleteWorkspaceCommandInput,
|
|
32
|
-
DeleteWorkspaceCommandOutput,
|
|
33
|
-
} from "./commands/DeleteWorkspaceCommand";
|
|
34
|
-
import {
|
|
35
|
-
DescribeAlertManagerDefinitionCommand,
|
|
36
|
-
DescribeAlertManagerDefinitionCommandInput,
|
|
37
|
-
DescribeAlertManagerDefinitionCommandOutput,
|
|
38
|
-
} from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
39
|
-
import {
|
|
40
|
-
DescribeRuleGroupsNamespaceCommand,
|
|
41
|
-
DescribeRuleGroupsNamespaceCommandInput,
|
|
42
|
-
DescribeRuleGroupsNamespaceCommandOutput,
|
|
43
|
-
} from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
44
|
-
import {
|
|
45
|
-
DescribeWorkspaceCommand,
|
|
46
|
-
DescribeWorkspaceCommandInput,
|
|
47
|
-
DescribeWorkspaceCommandOutput,
|
|
48
|
-
} from "./commands/DescribeWorkspaceCommand";
|
|
49
|
-
import {
|
|
50
|
-
ListRuleGroupsNamespacesCommand,
|
|
51
|
-
ListRuleGroupsNamespacesCommandInput,
|
|
52
|
-
ListRuleGroupsNamespacesCommandOutput,
|
|
53
|
-
} from "./commands/ListRuleGroupsNamespacesCommand";
|
|
54
|
-
import {
|
|
55
|
-
ListTagsForResourceCommand,
|
|
56
|
-
ListTagsForResourceCommandInput,
|
|
57
|
-
ListTagsForResourceCommandOutput,
|
|
58
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
59
|
-
import {
|
|
60
|
-
ListWorkspacesCommand,
|
|
61
|
-
ListWorkspacesCommandInput,
|
|
62
|
-
ListWorkspacesCommandOutput,
|
|
63
|
-
} from "./commands/ListWorkspacesCommand";
|
|
64
|
-
import {
|
|
65
|
-
PutAlertManagerDefinitionCommand,
|
|
66
|
-
PutAlertManagerDefinitionCommandInput,
|
|
67
|
-
PutAlertManagerDefinitionCommandOutput,
|
|
68
|
-
} from "./commands/PutAlertManagerDefinitionCommand";
|
|
69
|
-
import {
|
|
70
|
-
PutRuleGroupsNamespaceCommand,
|
|
71
|
-
PutRuleGroupsNamespaceCommandInput,
|
|
72
|
-
PutRuleGroupsNamespaceCommandOutput,
|
|
73
|
-
} from "./commands/PutRuleGroupsNamespaceCommand";
|
|
74
|
-
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
75
|
-
import {
|
|
76
|
-
UntagResourceCommand,
|
|
77
|
-
UntagResourceCommandInput,
|
|
78
|
-
UntagResourceCommandOutput,
|
|
79
|
-
} from "./commands/UntagResourceCommand";
|
|
80
|
-
import {
|
|
81
|
-
UpdateWorkspaceAliasCommand,
|
|
82
|
-
UpdateWorkspaceAliasCommandInput,
|
|
83
|
-
UpdateWorkspaceAliasCommandOutput,
|
|
84
|
-
} from "./commands/UpdateWorkspaceAliasCommand";
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Amazon Managed Service for Prometheus
|
|
88
|
-
*/
|
|
89
|
-
export class Amp extends AmpClient {
|
|
90
|
-
/**
|
|
91
|
-
* Create an alert manager definition.
|
|
92
|
-
*/
|
|
93
|
-
public createAlertManagerDefinition(
|
|
94
|
-
args: CreateAlertManagerDefinitionCommandInput,
|
|
95
|
-
options?: __HttpHandlerOptions
|
|
96
|
-
): Promise<CreateAlertManagerDefinitionCommandOutput>;
|
|
97
|
-
public createAlertManagerDefinition(
|
|
98
|
-
args: CreateAlertManagerDefinitionCommandInput,
|
|
99
|
-
cb: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void
|
|
100
|
-
): void;
|
|
101
|
-
public createAlertManagerDefinition(
|
|
102
|
-
args: CreateAlertManagerDefinitionCommandInput,
|
|
103
|
-
options: __HttpHandlerOptions,
|
|
104
|
-
cb: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void
|
|
105
|
-
): void;
|
|
106
|
-
public createAlertManagerDefinition(
|
|
107
|
-
args: CreateAlertManagerDefinitionCommandInput,
|
|
108
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void),
|
|
109
|
-
cb?: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void
|
|
110
|
-
): Promise<CreateAlertManagerDefinitionCommandOutput> | void {
|
|
111
|
-
const command = new CreateAlertManagerDefinitionCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
} else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
} else {
|
|
118
|
-
return this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Create a rule group namespace.
|
|
124
|
-
*/
|
|
125
|
-
public createRuleGroupsNamespace(
|
|
126
|
-
args: CreateRuleGroupsNamespaceCommandInput,
|
|
127
|
-
options?: __HttpHandlerOptions
|
|
128
|
-
): Promise<CreateRuleGroupsNamespaceCommandOutput>;
|
|
129
|
-
public createRuleGroupsNamespace(
|
|
130
|
-
args: CreateRuleGroupsNamespaceCommandInput,
|
|
131
|
-
cb: (err: any, data?: CreateRuleGroupsNamespaceCommandOutput) => void
|
|
132
|
-
): void;
|
|
133
|
-
public createRuleGroupsNamespace(
|
|
134
|
-
args: CreateRuleGroupsNamespaceCommandInput,
|
|
135
|
-
options: __HttpHandlerOptions,
|
|
136
|
-
cb: (err: any, data?: CreateRuleGroupsNamespaceCommandOutput) => void
|
|
137
|
-
): void;
|
|
138
|
-
public createRuleGroupsNamespace(
|
|
139
|
-
args: CreateRuleGroupsNamespaceCommandInput,
|
|
140
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRuleGroupsNamespaceCommandOutput) => void),
|
|
141
|
-
cb?: (err: any, data?: CreateRuleGroupsNamespaceCommandOutput) => void
|
|
142
|
-
): Promise<CreateRuleGroupsNamespaceCommandOutput> | void {
|
|
143
|
-
const command = new CreateRuleGroupsNamespaceCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
} else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
148
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
149
|
-
} else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Creates a new AMP workspace.
|
|
156
|
-
*/
|
|
157
|
-
public createWorkspace(
|
|
158
|
-
args: CreateWorkspaceCommandInput,
|
|
159
|
-
options?: __HttpHandlerOptions
|
|
160
|
-
): Promise<CreateWorkspaceCommandOutput>;
|
|
161
|
-
public createWorkspace(
|
|
162
|
-
args: CreateWorkspaceCommandInput,
|
|
163
|
-
cb: (err: any, data?: CreateWorkspaceCommandOutput) => void
|
|
164
|
-
): void;
|
|
165
|
-
public createWorkspace(
|
|
166
|
-
args: CreateWorkspaceCommandInput,
|
|
167
|
-
options: __HttpHandlerOptions,
|
|
168
|
-
cb: (err: any, data?: CreateWorkspaceCommandOutput) => void
|
|
169
|
-
): void;
|
|
170
|
-
public createWorkspace(
|
|
171
|
-
args: CreateWorkspaceCommandInput,
|
|
172
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateWorkspaceCommandOutput) => void),
|
|
173
|
-
cb?: (err: any, data?: CreateWorkspaceCommandOutput) => void
|
|
174
|
-
): Promise<CreateWorkspaceCommandOutput> | void {
|
|
175
|
-
const command = new CreateWorkspaceCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
} else if (typeof cb === "function") {
|
|
179
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
} else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Deletes an alert manager definition.
|
|
188
|
-
*/
|
|
189
|
-
public deleteAlertManagerDefinition(
|
|
190
|
-
args: DeleteAlertManagerDefinitionCommandInput,
|
|
191
|
-
options?: __HttpHandlerOptions
|
|
192
|
-
): Promise<DeleteAlertManagerDefinitionCommandOutput>;
|
|
193
|
-
public deleteAlertManagerDefinition(
|
|
194
|
-
args: DeleteAlertManagerDefinitionCommandInput,
|
|
195
|
-
cb: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void
|
|
196
|
-
): void;
|
|
197
|
-
public deleteAlertManagerDefinition(
|
|
198
|
-
args: DeleteAlertManagerDefinitionCommandInput,
|
|
199
|
-
options: __HttpHandlerOptions,
|
|
200
|
-
cb: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void
|
|
201
|
-
): void;
|
|
202
|
-
public deleteAlertManagerDefinition(
|
|
203
|
-
args: DeleteAlertManagerDefinitionCommandInput,
|
|
204
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void),
|
|
205
|
-
cb?: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void
|
|
206
|
-
): Promise<DeleteAlertManagerDefinitionCommandOutput> | void {
|
|
207
|
-
const command = new DeleteAlertManagerDefinitionCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
} else if (typeof cb === "function") {
|
|
211
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
-
} else {
|
|
214
|
-
return this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Delete a rule groups namespace.
|
|
220
|
-
*/
|
|
221
|
-
public deleteRuleGroupsNamespace(
|
|
222
|
-
args: DeleteRuleGroupsNamespaceCommandInput,
|
|
223
|
-
options?: __HttpHandlerOptions
|
|
224
|
-
): Promise<DeleteRuleGroupsNamespaceCommandOutput>;
|
|
225
|
-
public deleteRuleGroupsNamespace(
|
|
226
|
-
args: DeleteRuleGroupsNamespaceCommandInput,
|
|
227
|
-
cb: (err: any, data?: DeleteRuleGroupsNamespaceCommandOutput) => void
|
|
228
|
-
): void;
|
|
229
|
-
public deleteRuleGroupsNamespace(
|
|
230
|
-
args: DeleteRuleGroupsNamespaceCommandInput,
|
|
231
|
-
options: __HttpHandlerOptions,
|
|
232
|
-
cb: (err: any, data?: DeleteRuleGroupsNamespaceCommandOutput) => void
|
|
233
|
-
): void;
|
|
234
|
-
public deleteRuleGroupsNamespace(
|
|
235
|
-
args: DeleteRuleGroupsNamespaceCommandInput,
|
|
236
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRuleGroupsNamespaceCommandOutput) => void),
|
|
237
|
-
cb?: (err: any, data?: DeleteRuleGroupsNamespaceCommandOutput) => void
|
|
238
|
-
): Promise<DeleteRuleGroupsNamespaceCommandOutput> | void {
|
|
239
|
-
const command = new DeleteRuleGroupsNamespaceCommand(args);
|
|
240
|
-
if (typeof optionsOrCb === "function") {
|
|
241
|
-
this.send(command, optionsOrCb);
|
|
242
|
-
} else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
244
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
245
|
-
} else {
|
|
246
|
-
return this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Deletes an AMP workspace.
|
|
252
|
-
*/
|
|
253
|
-
public deleteWorkspace(
|
|
254
|
-
args: DeleteWorkspaceCommandInput,
|
|
255
|
-
options?: __HttpHandlerOptions
|
|
256
|
-
): Promise<DeleteWorkspaceCommandOutput>;
|
|
257
|
-
public deleteWorkspace(
|
|
258
|
-
args: DeleteWorkspaceCommandInput,
|
|
259
|
-
cb: (err: any, data?: DeleteWorkspaceCommandOutput) => void
|
|
260
|
-
): void;
|
|
261
|
-
public deleteWorkspace(
|
|
262
|
-
args: DeleteWorkspaceCommandInput,
|
|
263
|
-
options: __HttpHandlerOptions,
|
|
264
|
-
cb: (err: any, data?: DeleteWorkspaceCommandOutput) => void
|
|
265
|
-
): void;
|
|
266
|
-
public deleteWorkspace(
|
|
267
|
-
args: DeleteWorkspaceCommandInput,
|
|
268
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteWorkspaceCommandOutput) => void),
|
|
269
|
-
cb?: (err: any, data?: DeleteWorkspaceCommandOutput) => void
|
|
270
|
-
): Promise<DeleteWorkspaceCommandOutput> | void {
|
|
271
|
-
const command = new DeleteWorkspaceCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
} else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
-
} else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Describes an alert manager definition.
|
|
284
|
-
*/
|
|
285
|
-
public describeAlertManagerDefinition(
|
|
286
|
-
args: DescribeAlertManagerDefinitionCommandInput,
|
|
287
|
-
options?: __HttpHandlerOptions
|
|
288
|
-
): Promise<DescribeAlertManagerDefinitionCommandOutput>;
|
|
289
|
-
public describeAlertManagerDefinition(
|
|
290
|
-
args: DescribeAlertManagerDefinitionCommandInput,
|
|
291
|
-
cb: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void
|
|
292
|
-
): void;
|
|
293
|
-
public describeAlertManagerDefinition(
|
|
294
|
-
args: DescribeAlertManagerDefinitionCommandInput,
|
|
295
|
-
options: __HttpHandlerOptions,
|
|
296
|
-
cb: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void
|
|
297
|
-
): void;
|
|
298
|
-
public describeAlertManagerDefinition(
|
|
299
|
-
args: DescribeAlertManagerDefinitionCommandInput,
|
|
300
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void),
|
|
301
|
-
cb?: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void
|
|
302
|
-
): Promise<DescribeAlertManagerDefinitionCommandOutput> | void {
|
|
303
|
-
const command = new DescribeAlertManagerDefinitionCommand(args);
|
|
304
|
-
if (typeof optionsOrCb === "function") {
|
|
305
|
-
this.send(command, optionsOrCb);
|
|
306
|
-
} else if (typeof cb === "function") {
|
|
307
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
} else {
|
|
310
|
-
return this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Describe a rule groups namespace.
|
|
316
|
-
*/
|
|
317
|
-
public describeRuleGroupsNamespace(
|
|
318
|
-
args: DescribeRuleGroupsNamespaceCommandInput,
|
|
319
|
-
options?: __HttpHandlerOptions
|
|
320
|
-
): Promise<DescribeRuleGroupsNamespaceCommandOutput>;
|
|
321
|
-
public describeRuleGroupsNamespace(
|
|
322
|
-
args: DescribeRuleGroupsNamespaceCommandInput,
|
|
323
|
-
cb: (err: any, data?: DescribeRuleGroupsNamespaceCommandOutput) => void
|
|
324
|
-
): void;
|
|
325
|
-
public describeRuleGroupsNamespace(
|
|
326
|
-
args: DescribeRuleGroupsNamespaceCommandInput,
|
|
327
|
-
options: __HttpHandlerOptions,
|
|
328
|
-
cb: (err: any, data?: DescribeRuleGroupsNamespaceCommandOutput) => void
|
|
329
|
-
): void;
|
|
330
|
-
public describeRuleGroupsNamespace(
|
|
331
|
-
args: DescribeRuleGroupsNamespaceCommandInput,
|
|
332
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeRuleGroupsNamespaceCommandOutput) => void),
|
|
333
|
-
cb?: (err: any, data?: DescribeRuleGroupsNamespaceCommandOutput) => void
|
|
334
|
-
): Promise<DescribeRuleGroupsNamespaceCommandOutput> | void {
|
|
335
|
-
const command = new DescribeRuleGroupsNamespaceCommand(args);
|
|
336
|
-
if (typeof optionsOrCb === "function") {
|
|
337
|
-
this.send(command, optionsOrCb);
|
|
338
|
-
} else if (typeof cb === "function") {
|
|
339
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
340
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
341
|
-
} else {
|
|
342
|
-
return this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Describes an existing AMP workspace.
|
|
348
|
-
*/
|
|
349
|
-
public describeWorkspace(
|
|
350
|
-
args: DescribeWorkspaceCommandInput,
|
|
351
|
-
options?: __HttpHandlerOptions
|
|
352
|
-
): Promise<DescribeWorkspaceCommandOutput>;
|
|
353
|
-
public describeWorkspace(
|
|
354
|
-
args: DescribeWorkspaceCommandInput,
|
|
355
|
-
cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void
|
|
356
|
-
): void;
|
|
357
|
-
public describeWorkspace(
|
|
358
|
-
args: DescribeWorkspaceCommandInput,
|
|
359
|
-
options: __HttpHandlerOptions,
|
|
360
|
-
cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void
|
|
361
|
-
): void;
|
|
362
|
-
public describeWorkspace(
|
|
363
|
-
args: DescribeWorkspaceCommandInput,
|
|
364
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeWorkspaceCommandOutput) => void),
|
|
365
|
-
cb?: (err: any, data?: DescribeWorkspaceCommandOutput) => void
|
|
366
|
-
): Promise<DescribeWorkspaceCommandOutput> | void {
|
|
367
|
-
const command = new DescribeWorkspaceCommand(args);
|
|
368
|
-
if (typeof optionsOrCb === "function") {
|
|
369
|
-
this.send(command, optionsOrCb);
|
|
370
|
-
} else if (typeof cb === "function") {
|
|
371
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
372
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
373
|
-
} else {
|
|
374
|
-
return this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Lists rule groups namespaces.
|
|
380
|
-
*/
|
|
381
|
-
public listRuleGroupsNamespaces(
|
|
382
|
-
args: ListRuleGroupsNamespacesCommandInput,
|
|
383
|
-
options?: __HttpHandlerOptions
|
|
384
|
-
): Promise<ListRuleGroupsNamespacesCommandOutput>;
|
|
385
|
-
public listRuleGroupsNamespaces(
|
|
386
|
-
args: ListRuleGroupsNamespacesCommandInput,
|
|
387
|
-
cb: (err: any, data?: ListRuleGroupsNamespacesCommandOutput) => void
|
|
388
|
-
): void;
|
|
389
|
-
public listRuleGroupsNamespaces(
|
|
390
|
-
args: ListRuleGroupsNamespacesCommandInput,
|
|
391
|
-
options: __HttpHandlerOptions,
|
|
392
|
-
cb: (err: any, data?: ListRuleGroupsNamespacesCommandOutput) => void
|
|
393
|
-
): void;
|
|
394
|
-
public listRuleGroupsNamespaces(
|
|
395
|
-
args: ListRuleGroupsNamespacesCommandInput,
|
|
396
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRuleGroupsNamespacesCommandOutput) => void),
|
|
397
|
-
cb?: (err: any, data?: ListRuleGroupsNamespacesCommandOutput) => void
|
|
398
|
-
): Promise<ListRuleGroupsNamespacesCommandOutput> | void {
|
|
399
|
-
const command = new ListRuleGroupsNamespacesCommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
} else if (typeof cb === "function") {
|
|
403
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
404
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
405
|
-
} else {
|
|
406
|
-
return this.send(command, optionsOrCb);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Lists the tags you have assigned to the resource.
|
|
412
|
-
*/
|
|
413
|
-
public listTagsForResource(
|
|
414
|
-
args: ListTagsForResourceCommandInput,
|
|
415
|
-
options?: __HttpHandlerOptions
|
|
416
|
-
): Promise<ListTagsForResourceCommandOutput>;
|
|
417
|
-
public listTagsForResource(
|
|
418
|
-
args: ListTagsForResourceCommandInput,
|
|
419
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
420
|
-
): void;
|
|
421
|
-
public listTagsForResource(
|
|
422
|
-
args: ListTagsForResourceCommandInput,
|
|
423
|
-
options: __HttpHandlerOptions,
|
|
424
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
425
|
-
): void;
|
|
426
|
-
public listTagsForResource(
|
|
427
|
-
args: ListTagsForResourceCommandInput,
|
|
428
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
|
|
429
|
-
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
430
|
-
): Promise<ListTagsForResourceCommandOutput> | void {
|
|
431
|
-
const command = new ListTagsForResourceCommand(args);
|
|
432
|
-
if (typeof optionsOrCb === "function") {
|
|
433
|
-
this.send(command, optionsOrCb);
|
|
434
|
-
} else if (typeof cb === "function") {
|
|
435
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
437
|
-
} else {
|
|
438
|
-
return this.send(command, optionsOrCb);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Lists all AMP workspaces, including workspaces being created or deleted.
|
|
444
|
-
*/
|
|
445
|
-
public listWorkspaces(
|
|
446
|
-
args: ListWorkspacesCommandInput,
|
|
447
|
-
options?: __HttpHandlerOptions
|
|
448
|
-
): Promise<ListWorkspacesCommandOutput>;
|
|
449
|
-
public listWorkspaces(
|
|
450
|
-
args: ListWorkspacesCommandInput,
|
|
451
|
-
cb: (err: any, data?: ListWorkspacesCommandOutput) => void
|
|
452
|
-
): void;
|
|
453
|
-
public listWorkspaces(
|
|
454
|
-
args: ListWorkspacesCommandInput,
|
|
455
|
-
options: __HttpHandlerOptions,
|
|
456
|
-
cb: (err: any, data?: ListWorkspacesCommandOutput) => void
|
|
457
|
-
): void;
|
|
458
|
-
public listWorkspaces(
|
|
459
|
-
args: ListWorkspacesCommandInput,
|
|
460
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkspacesCommandOutput) => void),
|
|
461
|
-
cb?: (err: any, data?: ListWorkspacesCommandOutput) => void
|
|
462
|
-
): Promise<ListWorkspacesCommandOutput> | void {
|
|
463
|
-
const command = new ListWorkspacesCommand(args);
|
|
464
|
-
if (typeof optionsOrCb === "function") {
|
|
465
|
-
this.send(command, optionsOrCb);
|
|
466
|
-
} else if (typeof cb === "function") {
|
|
467
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
468
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
469
|
-
} else {
|
|
470
|
-
return this.send(command, optionsOrCb);
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Update an alert manager definition.
|
|
476
|
-
*/
|
|
477
|
-
public putAlertManagerDefinition(
|
|
478
|
-
args: PutAlertManagerDefinitionCommandInput,
|
|
479
|
-
options?: __HttpHandlerOptions
|
|
480
|
-
): Promise<PutAlertManagerDefinitionCommandOutput>;
|
|
481
|
-
public putAlertManagerDefinition(
|
|
482
|
-
args: PutAlertManagerDefinitionCommandInput,
|
|
483
|
-
cb: (err: any, data?: PutAlertManagerDefinitionCommandOutput) => void
|
|
484
|
-
): void;
|
|
485
|
-
public putAlertManagerDefinition(
|
|
486
|
-
args: PutAlertManagerDefinitionCommandInput,
|
|
487
|
-
options: __HttpHandlerOptions,
|
|
488
|
-
cb: (err: any, data?: PutAlertManagerDefinitionCommandOutput) => void
|
|
489
|
-
): void;
|
|
490
|
-
public putAlertManagerDefinition(
|
|
491
|
-
args: PutAlertManagerDefinitionCommandInput,
|
|
492
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutAlertManagerDefinitionCommandOutput) => void),
|
|
493
|
-
cb?: (err: any, data?: PutAlertManagerDefinitionCommandOutput) => void
|
|
494
|
-
): Promise<PutAlertManagerDefinitionCommandOutput> | void {
|
|
495
|
-
const command = new PutAlertManagerDefinitionCommand(args);
|
|
496
|
-
if (typeof optionsOrCb === "function") {
|
|
497
|
-
this.send(command, optionsOrCb);
|
|
498
|
-
} else if (typeof cb === "function") {
|
|
499
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
500
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
501
|
-
} else {
|
|
502
|
-
return this.send(command, optionsOrCb);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* Update a rule groups namespace.
|
|
508
|
-
*/
|
|
509
|
-
public putRuleGroupsNamespace(
|
|
510
|
-
args: PutRuleGroupsNamespaceCommandInput,
|
|
511
|
-
options?: __HttpHandlerOptions
|
|
512
|
-
): Promise<PutRuleGroupsNamespaceCommandOutput>;
|
|
513
|
-
public putRuleGroupsNamespace(
|
|
514
|
-
args: PutRuleGroupsNamespaceCommandInput,
|
|
515
|
-
cb: (err: any, data?: PutRuleGroupsNamespaceCommandOutput) => void
|
|
516
|
-
): void;
|
|
517
|
-
public putRuleGroupsNamespace(
|
|
518
|
-
args: PutRuleGroupsNamespaceCommandInput,
|
|
519
|
-
options: __HttpHandlerOptions,
|
|
520
|
-
cb: (err: any, data?: PutRuleGroupsNamespaceCommandOutput) => void
|
|
521
|
-
): void;
|
|
522
|
-
public putRuleGroupsNamespace(
|
|
523
|
-
args: PutRuleGroupsNamespaceCommandInput,
|
|
524
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRuleGroupsNamespaceCommandOutput) => void),
|
|
525
|
-
cb?: (err: any, data?: PutRuleGroupsNamespaceCommandOutput) => void
|
|
526
|
-
): Promise<PutRuleGroupsNamespaceCommandOutput> | void {
|
|
527
|
-
const command = new PutRuleGroupsNamespaceCommand(args);
|
|
528
|
-
if (typeof optionsOrCb === "function") {
|
|
529
|
-
this.send(command, optionsOrCb);
|
|
530
|
-
} else if (typeof cb === "function") {
|
|
531
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
532
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
533
|
-
} else {
|
|
534
|
-
return this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Creates tags for the specified resource.
|
|
540
|
-
*/
|
|
541
|
-
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
542
|
-
public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
543
|
-
public tagResource(
|
|
544
|
-
args: TagResourceCommandInput,
|
|
545
|
-
options: __HttpHandlerOptions,
|
|
546
|
-
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
547
|
-
): void;
|
|
548
|
-
public tagResource(
|
|
549
|
-
args: TagResourceCommandInput,
|
|
550
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
|
|
551
|
-
cb?: (err: any, data?: TagResourceCommandOutput) => void
|
|
552
|
-
): Promise<TagResourceCommandOutput> | void {
|
|
553
|
-
const command = new TagResourceCommand(args);
|
|
554
|
-
if (typeof optionsOrCb === "function") {
|
|
555
|
-
this.send(command, optionsOrCb);
|
|
556
|
-
} else if (typeof cb === "function") {
|
|
557
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
558
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
559
|
-
} else {
|
|
560
|
-
return this.send(command, optionsOrCb);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Deletes tags from the specified resource.
|
|
566
|
-
*/
|
|
567
|
-
public untagResource(
|
|
568
|
-
args: UntagResourceCommandInput,
|
|
569
|
-
options?: __HttpHandlerOptions
|
|
570
|
-
): Promise<UntagResourceCommandOutput>;
|
|
571
|
-
public untagResource(
|
|
572
|
-
args: UntagResourceCommandInput,
|
|
573
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
574
|
-
): void;
|
|
575
|
-
public untagResource(
|
|
576
|
-
args: UntagResourceCommandInput,
|
|
577
|
-
options: __HttpHandlerOptions,
|
|
578
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
579
|
-
): void;
|
|
580
|
-
public untagResource(
|
|
581
|
-
args: UntagResourceCommandInput,
|
|
582
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
|
|
583
|
-
cb?: (err: any, data?: UntagResourceCommandOutput) => void
|
|
584
|
-
): Promise<UntagResourceCommandOutput> | void {
|
|
585
|
-
const command = new UntagResourceCommand(args);
|
|
586
|
-
if (typeof optionsOrCb === "function") {
|
|
587
|
-
this.send(command, optionsOrCb);
|
|
588
|
-
} else if (typeof cb === "function") {
|
|
589
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
590
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
591
|
-
} else {
|
|
592
|
-
return this.send(command, optionsOrCb);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* Updates an AMP workspace alias.
|
|
598
|
-
*/
|
|
599
|
-
public updateWorkspaceAlias(
|
|
600
|
-
args: UpdateWorkspaceAliasCommandInput,
|
|
601
|
-
options?: __HttpHandlerOptions
|
|
602
|
-
): Promise<UpdateWorkspaceAliasCommandOutput>;
|
|
603
|
-
public updateWorkspaceAlias(
|
|
604
|
-
args: UpdateWorkspaceAliasCommandInput,
|
|
605
|
-
cb: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void
|
|
606
|
-
): void;
|
|
607
|
-
public updateWorkspaceAlias(
|
|
608
|
-
args: UpdateWorkspaceAliasCommandInput,
|
|
609
|
-
options: __HttpHandlerOptions,
|
|
610
|
-
cb: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void
|
|
611
|
-
): void;
|
|
612
|
-
public updateWorkspaceAlias(
|
|
613
|
-
args: UpdateWorkspaceAliasCommandInput,
|
|
614
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateWorkspaceAliasCommandOutput) => void),
|
|
615
|
-
cb?: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void
|
|
616
|
-
): Promise<UpdateWorkspaceAliasCommandOutput> | void {
|
|
617
|
-
const command = new UpdateWorkspaceAliasCommand(args);
|
|
618
|
-
if (typeof optionsOrCb === "function") {
|
|
619
|
-
this.send(command, optionsOrCb);
|
|
620
|
-
} else if (typeof cb === "function") {
|
|
621
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
622
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
623
|
-
} else {
|
|
624
|
-
return this.send(command, optionsOrCb);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|