@aws-sdk/client-amp 3.32.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.
Files changed (219) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Amp.js +265 -0
  4. package/{dist/cjs → dist-cjs}/AmpClient.js +8 -9
  5. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +60 -0
  6. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +60 -0
  7. package/{dist/cjs → dist-cjs}/commands/CreateWorkspaceCommand.js +2 -3
  8. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +60 -0
  9. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +60 -0
  10. package/{dist/cjs → dist-cjs}/commands/DeleteWorkspaceCommand.js +2 -3
  11. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +60 -0
  12. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +60 -0
  13. package/{dist/cjs → dist-cjs}/commands/DescribeWorkspaceCommand.js +2 -3
  14. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +60 -0
  15. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/commands/ListWorkspacesCommand.js +2 -3
  17. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +60 -0
  18. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +60 -0
  19. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  20. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  21. package/{dist/cjs → dist-cjs}/commands/UpdateWorkspaceAliasCommand.js +2 -3
  22. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  23. package/{dist/cjs → dist-cjs}/index.js +12 -1
  24. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  25. package/dist-cjs/models/models_0.js +501 -0
  26. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  27. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +45 -0
  28. package/{dist/cjs → dist-cjs}/pagination/ListWorkspacesPaginator.js +0 -1
  29. package/dist-cjs/protocols/Aws_restJson1.js +2393 -0
  30. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  31. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  34. package/dist-cjs/waiters/waitForWorkspaceActive.js +63 -0
  35. package/dist-cjs/waiters/waitForWorkspaceDeleted.js +48 -0
  36. package/dist-es/Amp.js +265 -0
  37. package/{dist/es → dist-es}/AmpClient.js +2 -11
  38. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +39 -0
  39. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +39 -0
  40. package/{dist/es → dist-es}/commands/CreateWorkspaceCommand.js +4 -30
  41. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +39 -0
  42. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +39 -0
  43. package/{dist/es → dist-es}/commands/DeleteWorkspaceCommand.js +4 -30
  44. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +39 -0
  45. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +39 -0
  46. package/{dist/es → dist-es}/commands/DescribeWorkspaceCommand.js +4 -30
  47. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +39 -0
  48. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  49. package/{dist/es → dist-es}/commands/ListWorkspacesCommand.js +4 -30
  50. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +39 -0
  51. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +39 -0
  52. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  53. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  54. package/{dist/es → dist-es}/commands/UpdateWorkspaceAliasCommand.js +4 -30
  55. package/{dist/es → dist-es}/endpoints.js +1 -2
  56. package/dist-es/index.js +25 -0
  57. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  58. package/dist-es/models/models_0.js +218 -0
  59. package/dist-es/pagination/Interfaces.js +1 -0
  60. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +74 -0
  61. package/{dist/es → dist-es}/pagination/ListWorkspacesPaginator.js +16 -29
  62. package/dist-es/protocols/Aws_restJson1.js +2684 -0
  63. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  64. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  65. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  66. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  67. package/dist-es/waiters/waitForWorkspaceActive.js +69 -0
  68. package/dist-es/waiters/waitForWorkspaceDeleted.js +54 -0
  69. package/dist-types/Amp.d.ts +126 -0
  70. package/{dist/types/ts3.4 → dist-types}/AmpClient.d.ts +149 -140
  71. package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
  72. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
  73. package/{dist/types → dist-types}/commands/CreateWorkspaceCommand.d.ts +2 -2
  74. package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
  75. package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
  76. package/{dist/types → dist-types}/commands/DeleteWorkspaceCommand.d.ts +2 -2
  77. package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
  78. package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
  79. package/{dist/types → dist-types}/commands/DescribeWorkspaceCommand.d.ts +2 -2
  80. package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
  81. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/ListWorkspacesCommand.d.ts +2 -2
  83. package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
  84. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
  85. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  89. package/dist-types/index.d.ts +25 -0
  90. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  91. package/dist-types/models/models_0.d.ts +1103 -0
  92. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  93. package/dist-types/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
  94. package/{dist/types → dist-types}/pagination/ListWorkspacesPaginator.d.ts +1 -1
  95. package/dist-types/protocols/Aws_restJson1.d.ts +53 -0
  96. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  97. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  98. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  99. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  100. package/dist-types/ts3.4/Amp.d.ts +126 -0
  101. package/{dist/types → dist-types/ts3.4}/AmpClient.d.ts +149 -140
  102. package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
  103. package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
  104. package/{dist/types → dist-types}/ts3.4/commands/CreateWorkspaceCommand.d.ts +2 -2
  105. package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
  107. package/{dist/types → dist-types}/ts3.4/commands/DeleteWorkspaceCommand.d.ts +2 -2
  108. package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
  109. package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
  110. package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkspaceCommand.d.ts +2 -2
  111. package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
  112. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/ts3.4/commands/ListWorkspacesCommand.d.ts +2 -2
  114. package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
  116. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  120. package/dist-types/ts3.4/index.d.ts +25 -0
  121. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  122. package/dist-types/ts3.4/models/models_0.d.ts +1103 -0
  123. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  124. package/dist-types/ts3.4/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
  125. package/{dist/types → dist-types}/ts3.4/pagination/ListWorkspacesPaginator.d.ts +1 -1
  126. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  127. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  128. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  129. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  130. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  131. package/dist-types/ts3.4/waiters/waitForWorkspaceActive.d.ts +14 -0
  132. package/dist-types/ts3.4/waiters/waitForWorkspaceDeleted.d.ts +14 -0
  133. package/dist-types/waiters/waitForWorkspaceActive.d.ts +14 -0
  134. package/dist-types/waiters/waitForWorkspaceDeleted.d.ts +14 -0
  135. package/package.json +53 -49
  136. package/Amp.ts +0 -293
  137. package/AmpClient.ts +0 -265
  138. package/commands/CreateWorkspaceCommand.ts +0 -94
  139. package/commands/DeleteWorkspaceCommand.ts +0 -94
  140. package/commands/DescribeWorkspaceCommand.ts +0 -94
  141. package/commands/ListTagsForResourceCommand.ts +0 -94
  142. package/commands/ListWorkspacesCommand.ts +0 -94
  143. package/commands/TagResourceCommand.ts +0 -94
  144. package/commands/UntagResourceCommand.ts +0 -94
  145. package/commands/UpdateWorkspaceAliasCommand.ts +0 -94
  146. package/dist/cjs/Amp.js +0 -131
  147. package/dist/cjs/Amp.js.map +0 -1
  148. package/dist/cjs/AmpClient.js.map +0 -1
  149. package/dist/cjs/commands/CreateWorkspaceCommand.js.map +0 -1
  150. package/dist/cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
  151. package/dist/cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
  152. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  153. package/dist/cjs/commands/ListWorkspacesCommand.js.map +0 -1
  154. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  155. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  156. package/dist/cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  157. package/dist/cjs/endpoints.js.map +0 -1
  158. package/dist/cjs/index.js.map +0 -1
  159. package/dist/cjs/models/index.js.map +0 -1
  160. package/dist/cjs/models/models_0.js +0 -259
  161. package/dist/cjs/models/models_0.js.map +0 -1
  162. package/dist/cjs/package.json +0 -93
  163. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  164. package/dist/cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
  165. package/dist/cjs/protocols/Aws_restJson1.js +0 -1176
  166. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  167. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  168. package/dist/cjs/runtimeConfig.js.map +0 -1
  169. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  170. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  171. package/dist/es/Amp.js +0 -134
  172. package/dist/es/Amp.js.map +0 -1
  173. package/dist/es/AmpClient.js.map +0 -1
  174. package/dist/es/commands/CreateWorkspaceCommand.js.map +0 -1
  175. package/dist/es/commands/DeleteWorkspaceCommand.js.map +0 -1
  176. package/dist/es/commands/DescribeWorkspaceCommand.js.map +0 -1
  177. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  178. package/dist/es/commands/ListWorkspacesCommand.js.map +0 -1
  179. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  180. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  181. package/dist/es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  182. package/dist/es/endpoints.js.map +0 -1
  183. package/dist/es/index.js +0 -14
  184. package/dist/es/index.js.map +0 -1
  185. package/dist/es/models/index.js +0 -2
  186. package/dist/es/models/index.js.map +0 -1
  187. package/dist/es/models/models_0.js +0 -207
  188. package/dist/es/models/models_0.js.map +0 -1
  189. package/dist/es/package.json +0 -93
  190. package/dist/es/pagination/Interfaces.js +0 -2
  191. package/dist/es/pagination/Interfaces.js.map +0 -1
  192. package/dist/es/pagination/ListWorkspacesPaginator.js.map +0 -1
  193. package/dist/es/protocols/Aws_restJson1.js +0 -1327
  194. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  195. package/dist/es/runtimeConfig.browser.js.map +0 -1
  196. package/dist/es/runtimeConfig.js.map +0 -1
  197. package/dist/es/runtimeConfig.native.js.map +0 -1
  198. package/dist/es/runtimeConfig.shared.js.map +0 -1
  199. package/dist/types/Amp.d.ts +0 -63
  200. package/dist/types/index.d.ts +0 -13
  201. package/dist/types/models/models_0.d.ts +0 -562
  202. package/dist/types/protocols/Aws_restJson1.d.ts +0 -26
  203. package/dist/types/ts3.4/Amp.d.ts +0 -63
  204. package/dist/types/ts3.4/index.d.ts +0 -13
  205. package/dist/types/ts3.4/models/models_0.d.ts +0 -562
  206. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +0 -26
  207. package/endpoints.ts +0 -57
  208. package/index.ts +0 -13
  209. package/jest.config.js +0 -4
  210. package/models/models_0.ts +0 -689
  211. package/pagination/Interfaces.ts +0 -7
  212. package/pagination/ListWorkspacesPaginator.ts +0 -58
  213. package/protocols/Aws_restJson1.ts +0 -1348
  214. package/runtimeConfig.browser.ts +0 -40
  215. package/runtimeConfig.native.ts +0 -16
  216. package/runtimeConfig.shared.ts +0 -16
  217. package/runtimeConfig.ts +0 -45
  218. package/tsconfig.es.json +0 -12
  219. package/tsconfig.json +0 -32
@@ -1,562 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * User does not have sufficient access to perform this action.
4
- */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- /**
9
- * Description of the error.
10
- */
11
- message: string | undefined;
12
- }
13
- export declare namespace AccessDeniedException {
14
- /**
15
- * @internal
16
- */
17
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
18
- }
19
- /**
20
- * Unexpected error during processing of request.
21
- */
22
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
23
- name: "InternalServerException";
24
- $fault: "server";
25
- $retryable: {};
26
- /**
27
- * Description of the error.
28
- */
29
- message: string | undefined;
30
- /**
31
- * Advice to clients on when the call can be safely retried.
32
- */
33
- retryAfterSeconds?: number;
34
- }
35
- export declare namespace InternalServerException {
36
- /**
37
- * @internal
38
- */
39
- const filterSensitiveLog: (obj: InternalServerException) => any;
40
- }
41
- export interface ListTagsForResourceRequest {
42
- /**
43
- * The ARN of the resource.
44
- */
45
- resourceArn: string | undefined;
46
- }
47
- export declare namespace ListTagsForResourceRequest {
48
- /**
49
- * @internal
50
- */
51
- const filterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
52
- }
53
- export interface ListTagsForResourceResponse {
54
- /**
55
- * The list of tags assigned to the resource.
56
- */
57
- tags?: {
58
- [key: string]: string;
59
- };
60
- }
61
- export declare namespace ListTagsForResourceResponse {
62
- /**
63
- * @internal
64
- */
65
- const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
66
- }
67
- /**
68
- * Request references a resource which does not exist.
69
- */
70
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
71
- name: "ResourceNotFoundException";
72
- $fault: "client";
73
- /**
74
- * Description of the error.
75
- */
76
- message: string | undefined;
77
- /**
78
- * Identifier of the resource affected.
79
- */
80
- resourceId: string | undefined;
81
- /**
82
- * Type of the resource affected.
83
- */
84
- resourceType: string | undefined;
85
- }
86
- export declare namespace ResourceNotFoundException {
87
- /**
88
- * @internal
89
- */
90
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
91
- }
92
- /**
93
- * Request was denied due to request throttling.
94
- */
95
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
96
- name: "ThrottlingException";
97
- $fault: "client";
98
- $retryable: {};
99
- /**
100
- * Description of the error.
101
- */
102
- message: string | undefined;
103
- /**
104
- * Service Quotas requirement to identify originating service.
105
- */
106
- serviceCode?: string;
107
- /**
108
- * Service Quotas requirement to identify originating quota.
109
- */
110
- quotaCode?: string;
111
- /**
112
- * Advice to clients on when the call can be safely retried.
113
- */
114
- retryAfterSeconds?: number;
115
- }
116
- export declare namespace ThrottlingException {
117
- /**
118
- * @internal
119
- */
120
- const filterSensitiveLog: (obj: ThrottlingException) => any;
121
- }
122
- /**
123
- * Stores information about a field passed inside a request that resulted in an exception.
124
- */
125
- export interface ValidationExceptionField {
126
- /**
127
- * The field name.
128
- */
129
- name: string | undefined;
130
- /**
131
- * Message describing why the field failed validation.
132
- */
133
- message: string | undefined;
134
- }
135
- export declare namespace ValidationExceptionField {
136
- /**
137
- * @internal
138
- */
139
- const filterSensitiveLog: (obj: ValidationExceptionField) => any;
140
- }
141
- export declare enum ValidationExceptionReason {
142
- CANNOT_PARSE = "CANNOT_PARSE",
143
- FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
144
- OTHER = "OTHER",
145
- UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
146
- }
147
- /**
148
- * The input fails to satisfy the constraints specified by an AWS service.
149
- */
150
- export interface ValidationException extends __SmithyException, $MetadataBearer {
151
- name: "ValidationException";
152
- $fault: "client";
153
- /**
154
- * Description of the error.
155
- */
156
- message: string | undefined;
157
- /**
158
- * Reason the request failed validation.
159
- */
160
- reason: ValidationExceptionReason | string | undefined;
161
- /**
162
- * The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
163
- */
164
- fieldList?: ValidationExceptionField[];
165
- }
166
- export declare namespace ValidationException {
167
- /**
168
- * @internal
169
- */
170
- const filterSensitiveLog: (obj: ValidationException) => any;
171
- }
172
- export interface TagResourceRequest {
173
- /**
174
- * The ARN of the resource.
175
- */
176
- resourceArn: string | undefined;
177
- /**
178
- * The list of tags assigned to the resource.
179
- */
180
- tags: {
181
- [key: string]: string;
182
- } | undefined;
183
- }
184
- export declare namespace TagResourceRequest {
185
- /**
186
- * @internal
187
- */
188
- const filterSensitiveLog: (obj: TagResourceRequest) => any;
189
- }
190
- export interface TagResourceResponse {
191
- }
192
- export declare namespace TagResourceResponse {
193
- /**
194
- * @internal
195
- */
196
- const filterSensitiveLog: (obj: TagResourceResponse) => any;
197
- }
198
- export interface UntagResourceRequest {
199
- /**
200
- * The ARN of the resource.
201
- */
202
- resourceArn: string | undefined;
203
- /**
204
- * One or more tag keys
205
- */
206
- tagKeys: string[] | undefined;
207
- }
208
- export declare namespace UntagResourceRequest {
209
- /**
210
- * @internal
211
- */
212
- const filterSensitiveLog: (obj: UntagResourceRequest) => any;
213
- }
214
- export interface UntagResourceResponse {
215
- }
216
- export declare namespace UntagResourceResponse {
217
- /**
218
- * @internal
219
- */
220
- const filterSensitiveLog: (obj: UntagResourceResponse) => any;
221
- }
222
- /**
223
- * Updating or deleting a resource can cause an inconsistent state.
224
- */
225
- export interface ConflictException extends __SmithyException, $MetadataBearer {
226
- name: "ConflictException";
227
- $fault: "client";
228
- /**
229
- * Description of the error.
230
- */
231
- message: string | undefined;
232
- /**
233
- * Identifier of the resource affected.
234
- */
235
- resourceId: string | undefined;
236
- /**
237
- * Type of the resource affected.
238
- */
239
- resourceType: string | undefined;
240
- }
241
- export declare namespace ConflictException {
242
- /**
243
- * @internal
244
- */
245
- const filterSensitiveLog: (obj: ConflictException) => any;
246
- }
247
- /**
248
- * Represents the input of a CreateWorkspace operation.
249
- */
250
- export interface CreateWorkspaceRequest {
251
- /**
252
- * An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.
253
- */
254
- alias?: string;
255
- /**
256
- * Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
257
- */
258
- clientToken?: string;
259
- /**
260
- * Optional, user-provided tags for this workspace.
261
- */
262
- tags?: {
263
- [key: string]: string;
264
- };
265
- }
266
- export declare namespace CreateWorkspaceRequest {
267
- /**
268
- * @internal
269
- */
270
- const filterSensitiveLog: (obj: CreateWorkspaceRequest) => any;
271
- }
272
- export declare enum WorkspaceStatusCode {
273
- /**
274
- * Workspace has been created and is usable.
275
- */
276
- ACTIVE = "ACTIVE",
277
- /**
278
- * Workspace is being created. Deletion is disallowed until status is ACTIVE.
279
- */
280
- CREATING = "CREATING",
281
- /**
282
- * Workspace creation failed. Refer to WorkspaceStatus.failureReason for more details.
283
- */
284
- CREATION_FAILED = "CREATION_FAILED",
285
- /**
286
- * Workspace is being deleted. Deletions are allowed only when status is ACTIVE.
287
- */
288
- DELETING = "DELETING",
289
- /**
290
- * Workspace is being updated. Updates are allowed only when status is ACTIVE.
291
- */
292
- UPDATING = "UPDATING"
293
- }
294
- /**
295
- * Represents the status of a workspace.
296
- */
297
- export interface WorkspaceStatus {
298
- /**
299
- * Status code of this workspace.
300
- */
301
- statusCode: WorkspaceStatusCode | string | undefined;
302
- }
303
- export declare namespace WorkspaceStatus {
304
- /**
305
- * @internal
306
- */
307
- const filterSensitiveLog: (obj: WorkspaceStatus) => any;
308
- }
309
- /**
310
- * Represents the output of a CreateWorkspace operation.
311
- */
312
- export interface CreateWorkspaceResponse {
313
- /**
314
- * The generated ID of the workspace that was just created.
315
- */
316
- workspaceId: string | undefined;
317
- /**
318
- * The ARN of the workspace that was just created.
319
- */
320
- arn: string | undefined;
321
- /**
322
- * The status of the workspace that was just created (usually CREATING).
323
- */
324
- status: WorkspaceStatus | undefined;
325
- /**
326
- * The tags of this workspace.
327
- */
328
- tags?: {
329
- [key: string]: string;
330
- };
331
- }
332
- export declare namespace CreateWorkspaceResponse {
333
- /**
334
- * @internal
335
- */
336
- const filterSensitiveLog: (obj: CreateWorkspaceResponse) => any;
337
- }
338
- /**
339
- * Request would cause a service quota to be exceeded.
340
- */
341
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
342
- name: "ServiceQuotaExceededException";
343
- $fault: "client";
344
- /**
345
- * Description of the error.
346
- */
347
- message: string | undefined;
348
- /**
349
- * Identifier of the resource affected.
350
- */
351
- resourceId: string | undefined;
352
- /**
353
- * Type of the resource affected.
354
- */
355
- resourceType: string | undefined;
356
- /**
357
- * Service Quotas requirement to identify originating service.
358
- */
359
- serviceCode: string | undefined;
360
- /**
361
- * Service Quotas requirement to identify originating quota.
362
- */
363
- quotaCode: string | undefined;
364
- }
365
- export declare namespace ServiceQuotaExceededException {
366
- /**
367
- * @internal
368
- */
369
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
370
- }
371
- /**
372
- * Represents the input of a DeleteWorkspace operation.
373
- */
374
- export interface DeleteWorkspaceRequest {
375
- /**
376
- * The ID of the workspace to delete.
377
- */
378
- workspaceId: string | undefined;
379
- /**
380
- * Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
381
- */
382
- clientToken?: string;
383
- }
384
- export declare namespace DeleteWorkspaceRequest {
385
- /**
386
- * @internal
387
- */
388
- const filterSensitiveLog: (obj: DeleteWorkspaceRequest) => any;
389
- }
390
- /**
391
- * Represents the input of a DescribeWorkspace operation.
392
- */
393
- export interface DescribeWorkspaceRequest {
394
- /**
395
- * The ID of the workspace to describe.
396
- */
397
- workspaceId: string | undefined;
398
- }
399
- export declare namespace DescribeWorkspaceRequest {
400
- /**
401
- * @internal
402
- */
403
- const filterSensitiveLog: (obj: DescribeWorkspaceRequest) => any;
404
- }
405
- /**
406
- * Represents the properties of a workspace.
407
- */
408
- export interface WorkspaceDescription {
409
- /**
410
- * Unique string identifying this workspace.
411
- */
412
- workspaceId: string | undefined;
413
- /**
414
- * Alias of this workspace.
415
- */
416
- alias?: string;
417
- /**
418
- * The Amazon Resource Name (ARN) of this workspace.
419
- */
420
- arn: string | undefined;
421
- /**
422
- * The status of this workspace.
423
- */
424
- status: WorkspaceStatus | undefined;
425
- /**
426
- * Prometheus endpoint URI.
427
- */
428
- prometheusEndpoint?: string;
429
- /**
430
- * The time when the workspace was created.
431
- */
432
- createdAt: Date | undefined;
433
- /**
434
- * The tags of this workspace.
435
- */
436
- tags?: {
437
- [key: string]: string;
438
- };
439
- }
440
- export declare namespace WorkspaceDescription {
441
- /**
442
- * @internal
443
- */
444
- const filterSensitiveLog: (obj: WorkspaceDescription) => any;
445
- }
446
- /**
447
- * Represents the output of a DescribeWorkspace operation.
448
- */
449
- export interface DescribeWorkspaceResponse {
450
- /**
451
- * The properties of the selected workspace.
452
- */
453
- workspace: WorkspaceDescription | undefined;
454
- }
455
- export declare namespace DescribeWorkspaceResponse {
456
- /**
457
- * @internal
458
- */
459
- const filterSensitiveLog: (obj: DescribeWorkspaceResponse) => any;
460
- }
461
- /**
462
- * Represents the input of a ListWorkspaces operation.
463
- */
464
- export interface ListWorkspacesRequest {
465
- /**
466
- * Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.
467
- */
468
- nextToken?: string;
469
- /**
470
- * Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.
471
- */
472
- alias?: string;
473
- /**
474
- * Maximum results to return in response (default=100, maximum=1000).
475
- */
476
- maxResults?: number;
477
- }
478
- export declare namespace ListWorkspacesRequest {
479
- /**
480
- * @internal
481
- */
482
- const filterSensitiveLog: (obj: ListWorkspacesRequest) => any;
483
- }
484
- /**
485
- * Represents a summary of the properties of a workspace.
486
- */
487
- export interface WorkspaceSummary {
488
- /**
489
- * Unique string identifying this workspace.
490
- */
491
- workspaceId: string | undefined;
492
- /**
493
- * Alias of this workspace.
494
- */
495
- alias?: string;
496
- /**
497
- * The AmazonResourceName of this workspace.
498
- */
499
- arn: string | undefined;
500
- /**
501
- * The status of this workspace.
502
- */
503
- status: WorkspaceStatus | undefined;
504
- /**
505
- * The time when the workspace was created.
506
- */
507
- createdAt: Date | undefined;
508
- /**
509
- * The tags of this workspace.
510
- */
511
- tags?: {
512
- [key: string]: string;
513
- };
514
- }
515
- export declare namespace WorkspaceSummary {
516
- /**
517
- * @internal
518
- */
519
- const filterSensitiveLog: (obj: WorkspaceSummary) => any;
520
- }
521
- /**
522
- * Represents the output of a ListWorkspaces operation.
523
- */
524
- export interface ListWorkspacesResponse {
525
- /**
526
- * The list of existing workspaces, including those undergoing creation or deletion.
527
- */
528
- workspaces: WorkspaceSummary[] | undefined;
529
- /**
530
- * Pagination token to use when requesting the next page in this list.
531
- */
532
- nextToken?: string;
533
- }
534
- export declare namespace ListWorkspacesResponse {
535
- /**
536
- * @internal
537
- */
538
- const filterSensitiveLog: (obj: ListWorkspacesResponse) => any;
539
- }
540
- /**
541
- * Represents the input of an UpdateWorkspaceAlias operation.
542
- */
543
- export interface UpdateWorkspaceAliasRequest {
544
- /**
545
- * The ID of the workspace being updated.
546
- */
547
- workspaceId: string | undefined;
548
- /**
549
- * The new alias of the workspace.
550
- */
551
- alias?: string;
552
- /**
553
- * Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
554
- */
555
- clientToken?: string;
556
- }
557
- export declare namespace UpdateWorkspaceAliasRequest {
558
- /**
559
- * @internal
560
- */
561
- const filterSensitiveLog: (obj: UpdateWorkspaceAliasRequest) => any;
562
- }
@@ -1,26 +0,0 @@
1
- import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "../commands/CreateWorkspaceCommand";
2
- import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "../commands/DeleteWorkspaceCommand";
3
- import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "../commands/DescribeWorkspaceCommand";
4
- import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
5
- import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "../commands/ListWorkspacesCommand";
6
- import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
7
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
8
- import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "../commands/UpdateWorkspaceAliasCommand";
9
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
10
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
11
- export declare const serializeAws_restJson1CreateWorkspaceCommand: (input: CreateWorkspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
- export declare const serializeAws_restJson1DeleteWorkspaceCommand: (input: DeleteWorkspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
- export declare const serializeAws_restJson1DescribeWorkspaceCommand: (input: DescribeWorkspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
- export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
- export declare const serializeAws_restJson1ListWorkspacesCommand: (input: ListWorkspacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
- export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
- export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
- export declare const serializeAws_restJson1UpdateWorkspaceAliasCommand: (input: UpdateWorkspaceAliasCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
- export declare const deserializeAws_restJson1CreateWorkspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceCommandOutput>;
20
- export declare const deserializeAws_restJson1DeleteWorkspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteWorkspaceCommandOutput>;
21
- export declare const deserializeAws_restJson1DescribeWorkspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeWorkspaceCommandOutput>;
22
- export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
23
- export declare const deserializeAws_restJson1ListWorkspacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListWorkspacesCommandOutput>;
24
- export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
25
- export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
26
- export declare const deserializeAws_restJson1UpdateWorkspaceAliasCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkspaceAliasCommandOutput>;
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "aps.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "aps.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "aps.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "aps.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "aps.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "aps",
55
- regionHash,
56
- partitionHash,
57
- });
package/index.ts DELETED
@@ -1,13 +0,0 @@
1
- export * from "./AmpClient";
2
- export * from "./Amp";
3
- export * from "./commands/CreateWorkspaceCommand";
4
- export * from "./commands/DeleteWorkspaceCommand";
5
- export * from "./commands/DescribeWorkspaceCommand";
6
- export * from "./commands/ListTagsForResourceCommand";
7
- export * from "./commands/ListWorkspacesCommand";
8
- export * from "./pagination/ListWorkspacesPaginator";
9
- export * from "./commands/TagResourceCommand";
10
- export * from "./commands/UntagResourceCommand";
11
- export * from "./commands/UpdateWorkspaceAliasCommand";
12
- export * from "./pagination/Interfaces";
13
- export * from "./models/index";
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };