@aws-sdk/client-oam 3.218.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 (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +216 -0
  3. package/dist-cjs/OAM.js +232 -0
  4. package/dist-cjs/OAMClient.js +40 -0
  5. package/dist-cjs/commands/CreateLinkCommand.js +46 -0
  6. package/dist-cjs/commands/CreateSinkCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteLinkCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteSinkCommand.js +46 -0
  9. package/dist-cjs/commands/GetLinkCommand.js +46 -0
  10. package/dist-cjs/commands/GetSinkCommand.js +46 -0
  11. package/dist-cjs/commands/GetSinkPolicyCommand.js +46 -0
  12. package/dist-cjs/commands/ListAttachedLinksCommand.js +46 -0
  13. package/dist-cjs/commands/ListLinksCommand.js +46 -0
  14. package/dist-cjs/commands/ListSinksCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  16. package/dist-cjs/commands/PutSinkPolicyCommand.js +46 -0
  17. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  18. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  19. package/dist-cjs/commands/UpdateLinkCommand.js +46 -0
  20. package/dist-cjs/commands/index.js +18 -0
  21. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  22. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/dist-cjs/endpoint/ruleset.js +312 -0
  24. package/dist-cjs/index.js +11 -0
  25. package/dist-cjs/models/OAMServiceException.js +11 -0
  26. package/dist-cjs/models/index.js +4 -0
  27. package/dist-cjs/models/models_0.js +258 -0
  28. package/dist-cjs/pagination/Interfaces.js +2 -0
  29. package/dist-cjs/pagination/ListAttachedLinksPaginator.js +36 -0
  30. package/dist-cjs/pagination/ListLinksPaginator.js +36 -0
  31. package/dist-cjs/pagination/ListSinksPaginator.js +36 -0
  32. package/dist-cjs/pagination/index.js +7 -0
  33. package/dist-cjs/protocols/Aws_restJson1.js +1313 -0
  34. package/dist-cjs/runtimeConfig.browser.js +42 -0
  35. package/dist-cjs/runtimeConfig.js +50 -0
  36. package/dist-cjs/runtimeConfig.native.js +15 -0
  37. package/dist-cjs/runtimeConfig.shared.js +18 -0
  38. package/dist-es/OAM.js +228 -0
  39. package/dist-es/OAMClient.js +36 -0
  40. package/dist-es/commands/CreateLinkCommand.js +42 -0
  41. package/dist-es/commands/CreateSinkCommand.js +42 -0
  42. package/dist-es/commands/DeleteLinkCommand.js +42 -0
  43. package/dist-es/commands/DeleteSinkCommand.js +42 -0
  44. package/dist-es/commands/GetLinkCommand.js +42 -0
  45. package/dist-es/commands/GetSinkCommand.js +42 -0
  46. package/dist-es/commands/GetSinkPolicyCommand.js +42 -0
  47. package/dist-es/commands/ListAttachedLinksCommand.js +42 -0
  48. package/dist-es/commands/ListLinksCommand.js +42 -0
  49. package/dist-es/commands/ListSinksCommand.js +42 -0
  50. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  51. package/dist-es/commands/PutSinkPolicyCommand.js +42 -0
  52. package/dist-es/commands/TagResourceCommand.js +42 -0
  53. package/dist-es/commands/UntagResourceCommand.js +42 -0
  54. package/dist-es/commands/UpdateLinkCommand.js +42 -0
  55. package/dist-es/commands/index.js +15 -0
  56. package/dist-es/endpoint/EndpointParameters.js +8 -0
  57. package/dist-es/endpoint/endpointResolver.js +8 -0
  58. package/dist-es/endpoint/ruleset.js +309 -0
  59. package/dist-es/index.js +6 -0
  60. package/dist-es/models/OAMServiceException.js +7 -0
  61. package/dist-es/models/index.js +1 -0
  62. package/dist-es/models/models_0.js +214 -0
  63. package/dist-es/pagination/Interfaces.js +1 -0
  64. package/dist-es/pagination/ListAttachedLinksPaginator.js +32 -0
  65. package/dist-es/pagination/ListLinksPaginator.js +32 -0
  66. package/dist-es/pagination/ListSinksPaginator.js +32 -0
  67. package/dist-es/pagination/index.js +4 -0
  68. package/dist-es/protocols/Aws_restJson1.js +1280 -0
  69. package/dist-es/runtimeConfig.browser.js +37 -0
  70. package/dist-es/runtimeConfig.js +45 -0
  71. package/dist-es/runtimeConfig.native.js +11 -0
  72. package/dist-es/runtimeConfig.shared.js +14 -0
  73. package/dist-types/OAM.d.ts +194 -0
  74. package/dist-types/OAMClient.d.ts +167 -0
  75. package/dist-types/commands/CreateLinkCommand.d.ts +46 -0
  76. package/dist-types/commands/CreateSinkCommand.d.ts +43 -0
  77. package/dist-types/commands/DeleteLinkCommand.d.ts +38 -0
  78. package/dist-types/commands/DeleteSinkCommand.d.ts +37 -0
  79. package/dist-types/commands/GetLinkCommand.d.ts +38 -0
  80. package/dist-types/commands/GetSinkCommand.d.ts +38 -0
  81. package/dist-types/commands/GetSinkPolicyCommand.d.ts +38 -0
  82. package/dist-types/commands/ListAttachedLinksCommand.d.ts +39 -0
  83. package/dist-types/commands/ListLinksCommand.d.ts +39 -0
  84. package/dist-types/commands/ListSinksCommand.d.ts +37 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  86. package/dist-types/commands/PutSinkPolicyCommand.d.ts +60 -0
  87. package/dist-types/commands/TagResourceCommand.d.ts +53 -0
  88. package/dist-types/commands/UntagResourceCommand.d.ts +43 -0
  89. package/dist-types/commands/UpdateLinkCommand.d.ts +40 -0
  90. package/dist-types/commands/index.d.ts +15 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/index.d.ts +6 -0
  95. package/dist-types/models/OAMServiceException.d.ts +10 -0
  96. package/dist-types/models/index.d.ts +1 -0
  97. package/dist-types/models/models_0.d.ts +724 -0
  98. package/dist-types/pagination/Interfaces.d.ts +6 -0
  99. package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +4 -0
  100. package/dist-types/pagination/ListLinksPaginator.d.ts +4 -0
  101. package/dist-types/pagination/ListSinksPaginator.d.ts +4 -0
  102. package/dist-types/pagination/index.d.ts +4 -0
  103. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  104. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  105. package/dist-types/runtimeConfig.d.ts +42 -0
  106. package/dist-types/runtimeConfig.native.d.ts +41 -0
  107. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  108. package/dist-types/ts3.4/OAM.d.ts +259 -0
  109. package/dist-types/ts3.4/OAMClient.d.ts +200 -0
  110. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +34 -0
  111. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +34 -0
  112. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +34 -0
  113. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +34 -0
  114. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +32 -0
  115. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +32 -0
  116. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +34 -0
  117. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +37 -0
  118. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +34 -0
  119. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +34 -0
  120. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +34 -0
  122. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  124. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +34 -0
  125. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  126. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  127. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  128. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  129. package/dist-types/ts3.4/index.d.ts +6 -0
  130. package/dist-types/ts3.4/models/OAMServiceException.d.ts +7 -0
  131. package/dist-types/ts3.4/models/index.d.ts +1 -0
  132. package/dist-types/ts3.4/models/models_0.d.ts +313 -0
  133. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  134. package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +11 -0
  137. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  138. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  140. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  141. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  142. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  143. package/package.json +101 -0
@@ -0,0 +1,724 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { OAMServiceException as __BaseException } from "./OAMServiceException";
3
+ /**
4
+ * <p>A resource was in an inconsistent state during an update or a deletion.</p>
5
+ */
6
+ export declare class ConflictException extends __BaseException {
7
+ readonly name: "ConflictException";
8
+ readonly $fault: "client";
9
+ Message?: string;
10
+ /**
11
+ * <p>The name of the exception.</p>
12
+ */
13
+ amznErrorType?: string;
14
+ /**
15
+ * @internal
16
+ */
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare enum ResourceType {
20
+ AWS_CLOUDWATCH_METRIC = "AWS::CloudWatch::Metric",
21
+ AWS_LOGS_LOGGROUP = "AWS::Logs::LogGroup",
22
+ AWS_XRAY_TRACE = "AWS::XRay::Trace"
23
+ }
24
+ export interface CreateLinkInput {
25
+ /**
26
+ * <p>Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring
27
+ * account.</p>
28
+ * <p>You can use a custom label or use the following variables:</p>
29
+ * <ul>
30
+ * <li>
31
+ * <p>
32
+ * <code>$AccountName</code> is the name of the account</p>
33
+ * </li>
34
+ * <li>
35
+ * <p>
36
+ * <code>$AccountEmail</code> is the globally unique email address of the account</p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <code>$AccountEmailNoDomain</code> is the email address of the account without the domain name</p>
41
+ * </li>
42
+ * </ul>
43
+ */
44
+ LabelTemplate: string | undefined;
45
+ /**
46
+ * <p>An array of strings that define which types of data that the source account shares with the monitoring
47
+ * account.</p>
48
+ */
49
+ ResourceTypes: (ResourceType | string)[] | undefined;
50
+ /**
51
+ * <p>The ARN of the sink to use to create this link. You can use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html">ListSinks</a> to find the ARNs of sinks.</p>
52
+ * <p>For more information about sinks, see
53
+ * <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_CreateSink.html">CreateSink</a>.</p>
54
+ */
55
+ SinkIdentifier: string | undefined;
56
+ /**
57
+ * <p>Assigns one or more tags (key-value pairs) to the link. </p>
58
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
59
+ * permissions by granting a user
60
+ * permission to access or change only resources with certain tag values.</p>
61
+ * <p>For more information about using tags to control access, see
62
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
63
+ */
64
+ Tags?: Record<string, string>;
65
+ }
66
+ export interface CreateLinkOutput {
67
+ /**
68
+ * <p>The ARN of the link that is newly created.</p>
69
+ */
70
+ Arn?: string;
71
+ /**
72
+ * <p>The random ID string that Amazon Web Services generated as part of the link ARN.</p>
73
+ */
74
+ Id?: string;
75
+ /**
76
+ * <p>The label that you assigned to this link. If the <code>labelTemplate</code> includes variables,
77
+ * this field displays the variables resolved to their actual values.</p>
78
+ */
79
+ Label?: string;
80
+ /**
81
+ * <p>The exact label template that you specified, with the variables not resolved.</p>
82
+ */
83
+ LabelTemplate?: string;
84
+ /**
85
+ * <p>The resource types supported by this link.</p>
86
+ */
87
+ ResourceTypes?: string[];
88
+ /**
89
+ * <p>The ARN of the sink that is used for this link.</p>
90
+ */
91
+ SinkArn?: string;
92
+ /**
93
+ * <p>The tags assigned to the link.</p>
94
+ */
95
+ Tags?: Record<string, string>;
96
+ }
97
+ /**
98
+ * <p>Unexpected error while processing the request. Retry the request.</p>
99
+ */
100
+ export declare class InternalServiceFault extends __BaseException {
101
+ readonly name: "InternalServiceFault";
102
+ readonly $fault: "server";
103
+ Message?: string;
104
+ /**
105
+ * <p>The name of the exception.</p>
106
+ */
107
+ amznErrorType?: string;
108
+ /**
109
+ * @internal
110
+ */
111
+ constructor(opts: __ExceptionOptionType<InternalServiceFault, __BaseException>);
112
+ }
113
+ /**
114
+ * <p>A parameter is specified incorrectly.</p>
115
+ */
116
+ export declare class InvalidParameterException extends __BaseException {
117
+ readonly name: "InvalidParameterException";
118
+ readonly $fault: "client";
119
+ /**
120
+ * <p>The name of the exception.</p>
121
+ */
122
+ amznErrorType?: string;
123
+ /**
124
+ * @internal
125
+ */
126
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
127
+ }
128
+ /**
129
+ * <p>A required parameter is missing from the request.</p>
130
+ */
131
+ export declare class MissingRequiredParameterException extends __BaseException {
132
+ readonly name: "MissingRequiredParameterException";
133
+ readonly $fault: "client";
134
+ /**
135
+ * <p>The name of the exception.</p>
136
+ */
137
+ amznErrorType?: string;
138
+ /**
139
+ * @internal
140
+ */
141
+ constructor(opts: __ExceptionOptionType<MissingRequiredParameterException, __BaseException>);
142
+ }
143
+ /**
144
+ * <p>The request would cause a service quota to be exceeded.</p>
145
+ */
146
+ export declare class ServiceQuotaExceededException extends __BaseException {
147
+ readonly name: "ServiceQuotaExceededException";
148
+ readonly $fault: "client";
149
+ Message?: string;
150
+ /**
151
+ * <p>The name of the exception.</p>
152
+ */
153
+ amznErrorType?: string;
154
+ /**
155
+ * @internal
156
+ */
157
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
158
+ }
159
+ export interface CreateSinkInput {
160
+ /**
161
+ * <p>A name for the sink.</p>
162
+ */
163
+ Name: string | undefined;
164
+ /**
165
+ * <p>Assigns one or more tags (key-value pairs) to the link. </p>
166
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
167
+ * permissions by granting a user
168
+ * permission to access or change only resources with certain tag values.</p>
169
+ * <p>For more information about using tags to control access, see
170
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
171
+ */
172
+ Tags?: Record<string, string>;
173
+ }
174
+ export interface CreateSinkOutput {
175
+ /**
176
+ * <p>The ARN of the sink that is newly created.</p>
177
+ */
178
+ Arn?: string;
179
+ /**
180
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
181
+ */
182
+ Id?: string;
183
+ /**
184
+ * <p>The name of the sink.</p>
185
+ */
186
+ Name?: string;
187
+ /**
188
+ * <p>The tags assigned to the sink.</p>
189
+ */
190
+ Tags?: Record<string, string>;
191
+ }
192
+ export interface DeleteLinkInput {
193
+ /**
194
+ * <p>The ARN of the link to delete.</p>
195
+ */
196
+ Identifier: string | undefined;
197
+ }
198
+ export interface DeleteLinkOutput {
199
+ }
200
+ /**
201
+ * <p>The request references a resource that does not exist.</p>
202
+ */
203
+ export declare class ResourceNotFoundException extends __BaseException {
204
+ readonly name: "ResourceNotFoundException";
205
+ readonly $fault: "client";
206
+ Message?: string;
207
+ /**
208
+ * <p>The name of the exception.</p>
209
+ */
210
+ amznErrorType?: string;
211
+ /**
212
+ * @internal
213
+ */
214
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
215
+ }
216
+ export interface DeleteSinkInput {
217
+ /**
218
+ * <p>The ARN of the sink to delete.</p>
219
+ */
220
+ Identifier: string | undefined;
221
+ }
222
+ export interface DeleteSinkOutput {
223
+ }
224
+ export interface GetLinkInput {
225
+ /**
226
+ * <p>The ARN of the link to retrieve information for.</p>
227
+ */
228
+ Identifier: string | undefined;
229
+ }
230
+ export interface GetLinkOutput {
231
+ /**
232
+ * <p>The ARN of the link.</p>
233
+ */
234
+ Arn?: string;
235
+ /**
236
+ * <p>The random ID string that Amazon Web Services generated as part of the link ARN.</p>
237
+ */
238
+ Id?: string;
239
+ /**
240
+ * <p>The label that you assigned to this link, with the variables resolved to their actual values.</p>
241
+ */
242
+ Label?: string;
243
+ /**
244
+ * <p>The exact label template that was specified when the link was created, with the template variables not resolved.</p>
245
+ */
246
+ LabelTemplate?: string;
247
+ /**
248
+ * <p>The resource types supported by this link.</p>
249
+ */
250
+ ResourceTypes?: string[];
251
+ /**
252
+ * <p>The ARN of the sink that is used for this link.</p>
253
+ */
254
+ SinkArn?: string;
255
+ /**
256
+ * <p>The tags assigned to the link.</p>
257
+ */
258
+ Tags?: Record<string, string>;
259
+ }
260
+ export interface GetSinkInput {
261
+ /**
262
+ * <p>The ARN of the sink to retrieve information for.</p>
263
+ */
264
+ Identifier: string | undefined;
265
+ }
266
+ export interface GetSinkOutput {
267
+ /**
268
+ * <p>The ARN of the sink.</p>
269
+ */
270
+ Arn?: string;
271
+ /**
272
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
273
+ */
274
+ Id?: string;
275
+ /**
276
+ * <p>The name of the sink.</p>
277
+ */
278
+ Name?: string;
279
+ /**
280
+ * <p>The tags assigned to the sink.</p>
281
+ */
282
+ Tags?: Record<string, string>;
283
+ }
284
+ export interface GetSinkPolicyInput {
285
+ /**
286
+ * <p>The ARN of the sink to retrieve the policy of.</p>
287
+ */
288
+ SinkIdentifier: string | undefined;
289
+ }
290
+ export interface GetSinkPolicyOutput {
291
+ /**
292
+ * <p>The ARN of the sink.</p>
293
+ */
294
+ SinkArn?: string;
295
+ /**
296
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
297
+ */
298
+ SinkId?: string;
299
+ /**
300
+ * <p>The policy that you specified, in JSON format.</p>
301
+ */
302
+ Policy?: string;
303
+ }
304
+ export interface ListAttachedLinksInput {
305
+ /**
306
+ * <p>Limits the number of returned links to the specified number.</p>
307
+ */
308
+ MaxResults?: number;
309
+ /**
310
+ * <p>The token for the next set of items to return. You received this token from a previous call.</p>
311
+ */
312
+ NextToken?: string;
313
+ /**
314
+ * <p>The ARN of the sink that you want to retrieve links for.</p>
315
+ */
316
+ SinkIdentifier: string | undefined;
317
+ }
318
+ /**
319
+ * <p>A structure that contains information about one link attached to this monitoring
320
+ * account sink.</p>
321
+ */
322
+ export interface ListAttachedLinksItem {
323
+ /**
324
+ * <p>The label that was assigned to this link at creation, with the variables resolved to their actual values.</p>
325
+ */
326
+ Label?: string;
327
+ /**
328
+ * <p>The ARN of the link.</p>
329
+ */
330
+ LinkArn?: string;
331
+ /**
332
+ * <p>The resource types supported by this link.</p>
333
+ */
334
+ ResourceTypes?: string[];
335
+ }
336
+ export interface ListAttachedLinksOutput {
337
+ /**
338
+ * <p>An array of structures that contain the information about the attached links.</p>
339
+ */
340
+ Items: ListAttachedLinksItem[] | undefined;
341
+ /**
342
+ * <p>The token to use when requesting the next set of links.</p>
343
+ */
344
+ NextToken?: string;
345
+ }
346
+ export interface ListLinksInput {
347
+ /**
348
+ * <p>Limits the number of returned links to the specified number.</p>
349
+ */
350
+ MaxResults?: number;
351
+ /**
352
+ * <p>The token for the next set of items to return. You received this token from a previous call.</p>
353
+ */
354
+ NextToken?: string;
355
+ }
356
+ /**
357
+ * <p>A structure that contains information about one of this source account's links to a monitoring account.</p>
358
+ */
359
+ export interface ListLinksItem {
360
+ /**
361
+ * <p>The ARN of the link.</p>
362
+ */
363
+ Arn?: string;
364
+ /**
365
+ * <p>The random ID string that Amazon Web Services generated as part of the link ARN.</p>
366
+ */
367
+ Id?: string;
368
+ /**
369
+ * <p>The label that was assigned to this link at creation, with the variables resolved to their actual values.</p>
370
+ */
371
+ Label?: string;
372
+ /**
373
+ * <p>The resource types supported by this link.</p>
374
+ */
375
+ ResourceTypes?: string[];
376
+ /**
377
+ * <p>The ARN of the sink that this link is attached to.</p>
378
+ */
379
+ SinkArn?: string;
380
+ }
381
+ export interface ListLinksOutput {
382
+ /**
383
+ * <p>An array of structures that contain the information about the returned links.</p>
384
+ */
385
+ Items: ListLinksItem[] | undefined;
386
+ /**
387
+ * <p>The token to use when requesting the next set of links.</p>
388
+ */
389
+ NextToken?: string;
390
+ }
391
+ export interface ListSinksInput {
392
+ /**
393
+ * <p>Limits the number of returned links to the specified number.</p>
394
+ */
395
+ MaxResults?: number;
396
+ /**
397
+ * <p>The token for the next set of items to return. You received this token from a previous call.</p>
398
+ */
399
+ NextToken?: string;
400
+ }
401
+ /**
402
+ * <p>A structure that contains information about one of this monitoring account's sinks.</p>
403
+ */
404
+ export interface ListSinksItem {
405
+ /**
406
+ * <p>The ARN of the sink.</p>
407
+ */
408
+ Arn?: string;
409
+ /**
410
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
411
+ */
412
+ Id?: string;
413
+ /**
414
+ * <p>The name of the sink.</p>
415
+ */
416
+ Name?: string;
417
+ }
418
+ export interface ListSinksOutput {
419
+ /**
420
+ * <p>An array of structures that contain the information about the returned sinks.</p>
421
+ */
422
+ Items: ListSinksItem[] | undefined;
423
+ /**
424
+ * <p>The token to use when requesting the next set of sinks.</p>
425
+ */
426
+ NextToken?: string;
427
+ }
428
+ export interface ListTagsForResourceInput {
429
+ /**
430
+ * <p>The ARN of the resource that you want to view tags for.</p>
431
+ * <p>The ARN format of a sink is
432
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:sink/<i>sink-id</i>
433
+ * </code>
434
+ * </p>
435
+ * <p>The ARN format of a link is
436
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:link/<i>link-id</i>
437
+ * </code>
438
+ * </p>
439
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
440
+ * resources and operations</a>.</p>
441
+ * <important>
442
+ * <p>Unlike tagging permissions in other Amazon Web Services services, to retrieve the list of tags
443
+ * for links or sinks you must have the <code>oam:RequestTag</code> permission. The
444
+ * <code>aws:ReguestTag</code> permission does not allow you to tag and untag links and
445
+ * sinks.</p>
446
+ * </important>
447
+ */
448
+ ResourceArn: string | undefined;
449
+ }
450
+ export interface ListTagsForResourceOutput {
451
+ /**
452
+ * <p>The list of tags associated with the requested resource.&gt;</p>
453
+ */
454
+ Tags?: Record<string, string>;
455
+ }
456
+ /**
457
+ * <p>The value of a parameter in the request caused an error.</p>
458
+ */
459
+ export declare class ValidationException extends __BaseException {
460
+ readonly name: "ValidationException";
461
+ readonly $fault: "client";
462
+ Message?: string;
463
+ /**
464
+ * @internal
465
+ */
466
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
467
+ }
468
+ export interface PutSinkPolicyInput {
469
+ /**
470
+ * <p>The ARN of the sink to attach this policy to.</p>
471
+ */
472
+ SinkIdentifier: string | undefined;
473
+ /**
474
+ * <p>The JSON policy to use. If you are updating an existing policy, the entire existing policy is
475
+ * replaced by what you specify here.</p>
476
+ * <p>The policy must be in JSON string format with quotation marks escaped and no newlines.</p>
477
+ * <p>For examples of different types of policies, see the <b>Examples</b> section on this page.</p>
478
+ */
479
+ Policy: string | undefined;
480
+ }
481
+ export interface PutSinkPolicyOutput {
482
+ /**
483
+ * <p>The ARN of the sink.</p>
484
+ */
485
+ SinkArn?: string;
486
+ /**
487
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
488
+ */
489
+ SinkId?: string;
490
+ /**
491
+ * <p>The policy that you specified.</p>
492
+ */
493
+ Policy?: string;
494
+ }
495
+ export interface TagResourceInput {
496
+ /**
497
+ * <p>The ARN of the resource that you're adding tags to.</p>
498
+ * <p>The ARN format of a sink is
499
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:sink/<i>sink-id</i>
500
+ * </code>
501
+ * </p>
502
+ * <p>The ARN format of a link is
503
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:link/<i>link-id</i>
504
+ * </code>
505
+ * </p>
506
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
507
+ * resources and operations</a>.</p>
508
+ */
509
+ ResourceArn: string | undefined;
510
+ /**
511
+ * <p>The list of key-value pairs to associate with the resource.</p>
512
+ */
513
+ Tags: Record<string, string> | undefined;
514
+ }
515
+ export interface TagResourceOutput {
516
+ }
517
+ /**
518
+ * <p>A resource can have no more than 50 tags.</p>
519
+ */
520
+ export declare class TooManyTagsException extends __BaseException {
521
+ readonly name: "TooManyTagsException";
522
+ readonly $fault: "client";
523
+ Message?: string;
524
+ /**
525
+ * @internal
526
+ */
527
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
528
+ }
529
+ export interface UntagResourceInput {
530
+ /**
531
+ * <p>The ARN of the resource that you're removing tags from.</p>
532
+ * <p>The ARN format of a sink is
533
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:sink/<i>sink-id</i>
534
+ * </code>
535
+ * </p>
536
+ * <p>The ARN format of a link is
537
+ * <code>arn:aws:oam:<i>Region</i>:<i>account-id</i>:link/<i>link-id</i>
538
+ * </code>
539
+ * </p>
540
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
541
+ * resources and operations</a>.</p>
542
+ */
543
+ ResourceArn: string | undefined;
544
+ /**
545
+ * <p>The list of tag keys to remove from the resource.</p>
546
+ */
547
+ TagKeys: string[] | undefined;
548
+ }
549
+ export interface UntagResourceOutput {
550
+ }
551
+ export interface UpdateLinkInput {
552
+ /**
553
+ * <p>The ARN of the link that you want to update.</p>
554
+ */
555
+ Identifier: string | undefined;
556
+ /**
557
+ * <p>An array of strings that define which types of data that the source account will send to the monitoring
558
+ * account.</p>
559
+ * <p>Your input here replaces the current set of data types that are shared.</p>
560
+ */
561
+ ResourceTypes: (ResourceType | string)[] | undefined;
562
+ }
563
+ export interface UpdateLinkOutput {
564
+ /**
565
+ * <p>The ARN of the link that you have updated.</p>
566
+ */
567
+ Arn?: string;
568
+ /**
569
+ * <p>The random ID string that Amazon Web Services generated as part of the sink ARN.</p>
570
+ */
571
+ Id?: string;
572
+ /**
573
+ * <p>The label assigned to this link, with the variables resolved to their actual values.</p>
574
+ */
575
+ Label?: string;
576
+ /**
577
+ * <p>The exact label template that was specified when the link was created, with the template variables not resolved.</p>
578
+ */
579
+ LabelTemplate?: string;
580
+ /**
581
+ * <p>The resource types now supported by this link.</p>
582
+ */
583
+ ResourceTypes?: string[];
584
+ /**
585
+ * <p>The ARN of the sink that is used for this link.</p>
586
+ */
587
+ SinkArn?: string;
588
+ /**
589
+ * <p>The tags assigned to the link.</p>
590
+ */
591
+ Tags?: Record<string, string>;
592
+ }
593
+ /**
594
+ * @internal
595
+ */
596
+ export declare const CreateLinkInputFilterSensitiveLog: (obj: CreateLinkInput) => any;
597
+ /**
598
+ * @internal
599
+ */
600
+ export declare const CreateLinkOutputFilterSensitiveLog: (obj: CreateLinkOutput) => any;
601
+ /**
602
+ * @internal
603
+ */
604
+ export declare const CreateSinkInputFilterSensitiveLog: (obj: CreateSinkInput) => any;
605
+ /**
606
+ * @internal
607
+ */
608
+ export declare const CreateSinkOutputFilterSensitiveLog: (obj: CreateSinkOutput) => any;
609
+ /**
610
+ * @internal
611
+ */
612
+ export declare const DeleteLinkInputFilterSensitiveLog: (obj: DeleteLinkInput) => any;
613
+ /**
614
+ * @internal
615
+ */
616
+ export declare const DeleteLinkOutputFilterSensitiveLog: (obj: DeleteLinkOutput) => any;
617
+ /**
618
+ * @internal
619
+ */
620
+ export declare const DeleteSinkInputFilterSensitiveLog: (obj: DeleteSinkInput) => any;
621
+ /**
622
+ * @internal
623
+ */
624
+ export declare const DeleteSinkOutputFilterSensitiveLog: (obj: DeleteSinkOutput) => any;
625
+ /**
626
+ * @internal
627
+ */
628
+ export declare const GetLinkInputFilterSensitiveLog: (obj: GetLinkInput) => any;
629
+ /**
630
+ * @internal
631
+ */
632
+ export declare const GetLinkOutputFilterSensitiveLog: (obj: GetLinkOutput) => any;
633
+ /**
634
+ * @internal
635
+ */
636
+ export declare const GetSinkInputFilterSensitiveLog: (obj: GetSinkInput) => any;
637
+ /**
638
+ * @internal
639
+ */
640
+ export declare const GetSinkOutputFilterSensitiveLog: (obj: GetSinkOutput) => any;
641
+ /**
642
+ * @internal
643
+ */
644
+ export declare const GetSinkPolicyInputFilterSensitiveLog: (obj: GetSinkPolicyInput) => any;
645
+ /**
646
+ * @internal
647
+ */
648
+ export declare const GetSinkPolicyOutputFilterSensitiveLog: (obj: GetSinkPolicyOutput) => any;
649
+ /**
650
+ * @internal
651
+ */
652
+ export declare const ListAttachedLinksInputFilterSensitiveLog: (obj: ListAttachedLinksInput) => any;
653
+ /**
654
+ * @internal
655
+ */
656
+ export declare const ListAttachedLinksItemFilterSensitiveLog: (obj: ListAttachedLinksItem) => any;
657
+ /**
658
+ * @internal
659
+ */
660
+ export declare const ListAttachedLinksOutputFilterSensitiveLog: (obj: ListAttachedLinksOutput) => any;
661
+ /**
662
+ * @internal
663
+ */
664
+ export declare const ListLinksInputFilterSensitiveLog: (obj: ListLinksInput) => any;
665
+ /**
666
+ * @internal
667
+ */
668
+ export declare const ListLinksItemFilterSensitiveLog: (obj: ListLinksItem) => any;
669
+ /**
670
+ * @internal
671
+ */
672
+ export declare const ListLinksOutputFilterSensitiveLog: (obj: ListLinksOutput) => any;
673
+ /**
674
+ * @internal
675
+ */
676
+ export declare const ListSinksInputFilterSensitiveLog: (obj: ListSinksInput) => any;
677
+ /**
678
+ * @internal
679
+ */
680
+ export declare const ListSinksItemFilterSensitiveLog: (obj: ListSinksItem) => any;
681
+ /**
682
+ * @internal
683
+ */
684
+ export declare const ListSinksOutputFilterSensitiveLog: (obj: ListSinksOutput) => any;
685
+ /**
686
+ * @internal
687
+ */
688
+ export declare const ListTagsForResourceInputFilterSensitiveLog: (obj: ListTagsForResourceInput) => any;
689
+ /**
690
+ * @internal
691
+ */
692
+ export declare const ListTagsForResourceOutputFilterSensitiveLog: (obj: ListTagsForResourceOutput) => any;
693
+ /**
694
+ * @internal
695
+ */
696
+ export declare const PutSinkPolicyInputFilterSensitiveLog: (obj: PutSinkPolicyInput) => any;
697
+ /**
698
+ * @internal
699
+ */
700
+ export declare const PutSinkPolicyOutputFilterSensitiveLog: (obj: PutSinkPolicyOutput) => any;
701
+ /**
702
+ * @internal
703
+ */
704
+ export declare const TagResourceInputFilterSensitiveLog: (obj: TagResourceInput) => any;
705
+ /**
706
+ * @internal
707
+ */
708
+ export declare const TagResourceOutputFilterSensitiveLog: (obj: TagResourceOutput) => any;
709
+ /**
710
+ * @internal
711
+ */
712
+ export declare const UntagResourceInputFilterSensitiveLog: (obj: UntagResourceInput) => any;
713
+ /**
714
+ * @internal
715
+ */
716
+ export declare const UntagResourceOutputFilterSensitiveLog: (obj: UntagResourceOutput) => any;
717
+ /**
718
+ * @internal
719
+ */
720
+ export declare const UpdateLinkInputFilterSensitiveLog: (obj: UpdateLinkInput) => any;
721
+ /**
722
+ * @internal
723
+ */
724
+ export declare const UpdateLinkOutputFilterSensitiveLog: (obj: UpdateLinkOutput) => any;