@aws-sdk/client-oam 3.315.0 → 3.316.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/dist-cjs/OAM.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OAM = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateLinkCommand_1 = require("./commands/CreateLinkCommand");
5
6
  const CreateSinkCommand_1 = require("./commands/CreateSinkCommand");
6
7
  const DeleteLinkCommand_1 = require("./commands/DeleteLinkCommand");
@@ -17,216 +18,24 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
17
18
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
18
19
  const UpdateLinkCommand_1 = require("./commands/UpdateLinkCommand");
19
20
  const OAMClient_1 = require("./OAMClient");
21
+ const commands = {
22
+ CreateLinkCommand: CreateLinkCommand_1.CreateLinkCommand,
23
+ CreateSinkCommand: CreateSinkCommand_1.CreateSinkCommand,
24
+ DeleteLinkCommand: DeleteLinkCommand_1.DeleteLinkCommand,
25
+ DeleteSinkCommand: DeleteSinkCommand_1.DeleteSinkCommand,
26
+ GetLinkCommand: GetLinkCommand_1.GetLinkCommand,
27
+ GetSinkCommand: GetSinkCommand_1.GetSinkCommand,
28
+ GetSinkPolicyCommand: GetSinkPolicyCommand_1.GetSinkPolicyCommand,
29
+ ListAttachedLinksCommand: ListAttachedLinksCommand_1.ListAttachedLinksCommand,
30
+ ListLinksCommand: ListLinksCommand_1.ListLinksCommand,
31
+ ListSinksCommand: ListSinksCommand_1.ListSinksCommand,
32
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
33
+ PutSinkPolicyCommand: PutSinkPolicyCommand_1.PutSinkPolicyCommand,
34
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
35
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
36
+ UpdateLinkCommand: UpdateLinkCommand_1.UpdateLinkCommand,
37
+ };
20
38
  class OAM extends OAMClient_1.OAMClient {
21
- createLink(args, optionsOrCb, cb) {
22
- const command = new CreateLinkCommand_1.CreateLinkCommand(args);
23
- if (typeof optionsOrCb === "function") {
24
- this.send(command, optionsOrCb);
25
- }
26
- else if (typeof cb === "function") {
27
- if (typeof optionsOrCb !== "object")
28
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
- this.send(command, optionsOrCb || {}, cb);
30
- }
31
- else {
32
- return this.send(command, optionsOrCb);
33
- }
34
- }
35
- createSink(args, optionsOrCb, cb) {
36
- const command = new CreateSinkCommand_1.CreateSinkCommand(args);
37
- if (typeof optionsOrCb === "function") {
38
- this.send(command, optionsOrCb);
39
- }
40
- else if (typeof cb === "function") {
41
- if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
- this.send(command, optionsOrCb || {}, cb);
44
- }
45
- else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
- deleteLink(args, optionsOrCb, cb) {
50
- const command = new DeleteLinkCommand_1.DeleteLinkCommand(args);
51
- if (typeof optionsOrCb === "function") {
52
- this.send(command, optionsOrCb);
53
- }
54
- else if (typeof cb === "function") {
55
- if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
- this.send(command, optionsOrCb || {}, cb);
58
- }
59
- else {
60
- return this.send(command, optionsOrCb);
61
- }
62
- }
63
- deleteSink(args, optionsOrCb, cb) {
64
- const command = new DeleteSinkCommand_1.DeleteSinkCommand(args);
65
- if (typeof optionsOrCb === "function") {
66
- this.send(command, optionsOrCb);
67
- }
68
- else if (typeof cb === "function") {
69
- if (typeof optionsOrCb !== "object")
70
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
- this.send(command, optionsOrCb || {}, cb);
72
- }
73
- else {
74
- return this.send(command, optionsOrCb);
75
- }
76
- }
77
- getLink(args, optionsOrCb, cb) {
78
- const command = new GetLinkCommand_1.GetLinkCommand(args);
79
- if (typeof optionsOrCb === "function") {
80
- this.send(command, optionsOrCb);
81
- }
82
- else if (typeof cb === "function") {
83
- if (typeof optionsOrCb !== "object")
84
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
- this.send(command, optionsOrCb || {}, cb);
86
- }
87
- else {
88
- return this.send(command, optionsOrCb);
89
- }
90
- }
91
- getSink(args, optionsOrCb, cb) {
92
- const command = new GetSinkCommand_1.GetSinkCommand(args);
93
- if (typeof optionsOrCb === "function") {
94
- this.send(command, optionsOrCb);
95
- }
96
- else if (typeof cb === "function") {
97
- if (typeof optionsOrCb !== "object")
98
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
- this.send(command, optionsOrCb || {}, cb);
100
- }
101
- else {
102
- return this.send(command, optionsOrCb);
103
- }
104
- }
105
- getSinkPolicy(args, optionsOrCb, cb) {
106
- const command = new GetSinkPolicyCommand_1.GetSinkPolicyCommand(args);
107
- if (typeof optionsOrCb === "function") {
108
- this.send(command, optionsOrCb);
109
- }
110
- else if (typeof cb === "function") {
111
- if (typeof optionsOrCb !== "object")
112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
- this.send(command, optionsOrCb || {}, cb);
114
- }
115
- else {
116
- return this.send(command, optionsOrCb);
117
- }
118
- }
119
- listAttachedLinks(args, optionsOrCb, cb) {
120
- const command = new ListAttachedLinksCommand_1.ListAttachedLinksCommand(args);
121
- if (typeof optionsOrCb === "function") {
122
- this.send(command, optionsOrCb);
123
- }
124
- else if (typeof cb === "function") {
125
- if (typeof optionsOrCb !== "object")
126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
- this.send(command, optionsOrCb || {}, cb);
128
- }
129
- else {
130
- return this.send(command, optionsOrCb);
131
- }
132
- }
133
- listLinks(args, optionsOrCb, cb) {
134
- const command = new ListLinksCommand_1.ListLinksCommand(args);
135
- if (typeof optionsOrCb === "function") {
136
- this.send(command, optionsOrCb);
137
- }
138
- else if (typeof cb === "function") {
139
- if (typeof optionsOrCb !== "object")
140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
- this.send(command, optionsOrCb || {}, cb);
142
- }
143
- else {
144
- return this.send(command, optionsOrCb);
145
- }
146
- }
147
- listSinks(args, optionsOrCb, cb) {
148
- const command = new ListSinksCommand_1.ListSinksCommand(args);
149
- if (typeof optionsOrCb === "function") {
150
- this.send(command, optionsOrCb);
151
- }
152
- else if (typeof cb === "function") {
153
- if (typeof optionsOrCb !== "object")
154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
- this.send(command, optionsOrCb || {}, cb);
156
- }
157
- else {
158
- return this.send(command, optionsOrCb);
159
- }
160
- }
161
- listTagsForResource(args, optionsOrCb, cb) {
162
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
163
- if (typeof optionsOrCb === "function") {
164
- this.send(command, optionsOrCb);
165
- }
166
- else if (typeof cb === "function") {
167
- if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
- this.send(command, optionsOrCb || {}, cb);
170
- }
171
- else {
172
- return this.send(command, optionsOrCb);
173
- }
174
- }
175
- putSinkPolicy(args, optionsOrCb, cb) {
176
- const command = new PutSinkPolicyCommand_1.PutSinkPolicyCommand(args);
177
- if (typeof optionsOrCb === "function") {
178
- this.send(command, optionsOrCb);
179
- }
180
- else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
- this.send(command, optionsOrCb || {}, cb);
184
- }
185
- else {
186
- return this.send(command, optionsOrCb);
187
- }
188
- }
189
- tagResource(args, optionsOrCb, cb) {
190
- const command = new TagResourceCommand_1.TagResourceCommand(args);
191
- if (typeof optionsOrCb === "function") {
192
- this.send(command, optionsOrCb);
193
- }
194
- else if (typeof cb === "function") {
195
- if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
- this.send(command, optionsOrCb || {}, cb);
198
- }
199
- else {
200
- return this.send(command, optionsOrCb);
201
- }
202
- }
203
- untagResource(args, optionsOrCb, cb) {
204
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
205
- if (typeof optionsOrCb === "function") {
206
- this.send(command, optionsOrCb);
207
- }
208
- else if (typeof cb === "function") {
209
- if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
- this.send(command, optionsOrCb || {}, cb);
212
- }
213
- else {
214
- return this.send(command, optionsOrCb);
215
- }
216
- }
217
- updateLink(args, optionsOrCb, cb) {
218
- const command = new UpdateLinkCommand_1.UpdateLinkCommand(args);
219
- if (typeof optionsOrCb === "function") {
220
- this.send(command, optionsOrCb);
221
- }
222
- else if (typeof cb === "function") {
223
- if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
- this.send(command, optionsOrCb || {}, cb);
226
- }
227
- else {
228
- return this.send(command, optionsOrCb);
229
- }
230
- }
231
39
  }
232
40
  exports.OAM = OAM;
41
+ (0, smithy_client_1.createAggregatedClient)(commands, OAM);
package/dist-es/OAM.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateLinkCommand } from "./commands/CreateLinkCommand";
2
3
  import { CreateSinkCommand } from "./commands/CreateSinkCommand";
3
4
  import { DeleteLinkCommand } from "./commands/DeleteLinkCommand";
@@ -14,215 +15,23 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
14
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
16
  import { UpdateLinkCommand } from "./commands/UpdateLinkCommand";
16
17
  import { OAMClient } from "./OAMClient";
18
+ const commands = {
19
+ CreateLinkCommand,
20
+ CreateSinkCommand,
21
+ DeleteLinkCommand,
22
+ DeleteSinkCommand,
23
+ GetLinkCommand,
24
+ GetSinkCommand,
25
+ GetSinkPolicyCommand,
26
+ ListAttachedLinksCommand,
27
+ ListLinksCommand,
28
+ ListSinksCommand,
29
+ ListTagsForResourceCommand,
30
+ PutSinkPolicyCommand,
31
+ TagResourceCommand,
32
+ UntagResourceCommand,
33
+ UpdateLinkCommand,
34
+ };
17
35
  export class OAM extends OAMClient {
18
- createLink(args, optionsOrCb, cb) {
19
- const command = new CreateLinkCommand(args);
20
- if (typeof optionsOrCb === "function") {
21
- this.send(command, optionsOrCb);
22
- }
23
- else if (typeof cb === "function") {
24
- if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
- this.send(command, optionsOrCb || {}, cb);
27
- }
28
- else {
29
- return this.send(command, optionsOrCb);
30
- }
31
- }
32
- createSink(args, optionsOrCb, cb) {
33
- const command = new CreateSinkCommand(args);
34
- if (typeof optionsOrCb === "function") {
35
- this.send(command, optionsOrCb);
36
- }
37
- else if (typeof cb === "function") {
38
- if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
- this.send(command, optionsOrCb || {}, cb);
41
- }
42
- else {
43
- return this.send(command, optionsOrCb);
44
- }
45
- }
46
- deleteLink(args, optionsOrCb, cb) {
47
- const command = new DeleteLinkCommand(args);
48
- if (typeof optionsOrCb === "function") {
49
- this.send(command, optionsOrCb);
50
- }
51
- else if (typeof cb === "function") {
52
- if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
- this.send(command, optionsOrCb || {}, cb);
55
- }
56
- else {
57
- return this.send(command, optionsOrCb);
58
- }
59
- }
60
- deleteSink(args, optionsOrCb, cb) {
61
- const command = new DeleteSinkCommand(args);
62
- if (typeof optionsOrCb === "function") {
63
- this.send(command, optionsOrCb);
64
- }
65
- else if (typeof cb === "function") {
66
- if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
- this.send(command, optionsOrCb || {}, cb);
69
- }
70
- else {
71
- return this.send(command, optionsOrCb);
72
- }
73
- }
74
- getLink(args, optionsOrCb, cb) {
75
- const command = new GetLinkCommand(args);
76
- if (typeof optionsOrCb === "function") {
77
- this.send(command, optionsOrCb);
78
- }
79
- else if (typeof cb === "function") {
80
- if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- }
84
- else {
85
- return this.send(command, optionsOrCb);
86
- }
87
- }
88
- getSink(args, optionsOrCb, cb) {
89
- const command = new GetSinkCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- getSinkPolicy(args, optionsOrCb, cb) {
103
- const command = new GetSinkPolicyCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- listAttachedLinks(args, optionsOrCb, cb) {
117
- const command = new ListAttachedLinksCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- listLinks(args, optionsOrCb, cb) {
131
- const command = new ListLinksCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- listSinks(args, optionsOrCb, cb) {
145
- const command = new ListSinksCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- listTagsForResource(args, optionsOrCb, cb) {
159
- const command = new ListTagsForResourceCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- putSinkPolicy(args, optionsOrCb, cb) {
173
- const command = new PutSinkPolicyCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- tagResource(args, optionsOrCb, cb) {
187
- const command = new TagResourceCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- untagResource(args, optionsOrCb, cb) {
201
- const command = new UntagResourceCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- updateLink(args, optionsOrCb, cb) {
215
- const command = new UpdateLinkCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
36
  }
37
+ createAggregatedClient(commands, OAM);
@@ -15,196 +15,112 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
15
15
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
16
16
  import { UpdateLinkCommandInput, UpdateLinkCommandOutput } from "./commands/UpdateLinkCommand";
17
17
  import { OAMClient } from "./OAMClient";
18
- /**
19
- * @public
20
- * <p>Use Amazon CloudWatch Observability Access Manager to create and manage links between source accounts and
21
- * monitoring accounts by using <i>CloudWatch cross-account observability</i>. With
22
- * CloudWatch cross-account observability, you can monitor and troubleshoot applications that span
23
- * multiple accounts within a Region. Seamlessly search, visualize, and analyze your metrics,
24
- * logs, and traces in any of the linked accounts without account boundaries.</p>
25
- *
26
- * <p>Set up one or more Amazon Web Services accounts as <i>monitoring
27
- * accounts</i> and link them with multiple <i>source accounts</i>. A
28
- * monitoring account is a central Amazon Web Services account that can view and interact with
29
- * observability data generated from source accounts. A source account is an individual Amazon Web Services account that generates observability data for the resources that reside in it.
30
- * Source accounts share their observability data with the monitoring account. The shared
31
- * observability data can include metrics in Amazon CloudWatch, logs in Amazon CloudWatch Logs, and traces in X-Ray.</p>
32
- */
33
- export declare class OAM extends OAMClient {
18
+ export interface OAM {
34
19
  /**
35
- * @public
36
- * <p>Creates a link between a source account and a sink that you have created in a monitoring account.</p>
37
- * <p>Before you create a link, you must create a sink in the monitoring account and create a
38
- * sink policy in that account. The sink policy must permit the source account to link to it. You
39
- * can grant permission to source accounts by granting permission to an entire organization or to
40
- * individual accounts.</p>
41
- * <p>For more information, see
42
- * <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_CreateSink.html">CreateSink</a> and
43
- * <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html">PutSinkPolicy</a>.</p>
44
- * <p>Each monitoring account can be linked to as many as 100,000 source accounts.</p>
45
- * <p>Each source account can be linked to as many as five monitoring accounts.</p>
20
+ * @see {@link CreateLinkCommand}
46
21
  */
47
22
  createLink(args: CreateLinkCommandInput, options?: __HttpHandlerOptions): Promise<CreateLinkCommandOutput>;
48
23
  createLink(args: CreateLinkCommandInput, cb: (err: any, data?: CreateLinkCommandOutput) => void): void;
49
24
  createLink(args: CreateLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLinkCommandOutput) => void): void;
50
25
  /**
51
- * @public
52
- * <p>Use this to create a <i>sink</i> in the current account, so that it can be
53
- * used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that
54
- * represents an attachment point in a monitoring account. Source accounts can link to the sink
55
- * to send observability data.</p>
56
- * <p>After you create a sink, you must create a sink policy that allows source accounts to attach to it.
57
- * For more information, see <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html">PutSinkPolicy</a>.</p>
58
- * <p>Each account can contain one sink. If you delete a sink, you can then create a new one in that account.</p>
26
+ * @see {@link CreateSinkCommand}
59
27
  */
60
28
  createSink(args: CreateSinkCommandInput, options?: __HttpHandlerOptions): Promise<CreateSinkCommandOutput>;
61
29
  createSink(args: CreateSinkCommandInput, cb: (err: any, data?: CreateSinkCommandOutput) => void): void;
62
30
  createSink(args: CreateSinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSinkCommandOutput) => void): void;
63
31
  /**
64
- * @public
65
- * <p>Deletes a link between a monitoring account sink and a source account. You must run this operation
66
- * in the source account.</p>
32
+ * @see {@link DeleteLinkCommand}
67
33
  */
68
34
  deleteLink(args: DeleteLinkCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLinkCommandOutput>;
69
35
  deleteLink(args: DeleteLinkCommandInput, cb: (err: any, data?: DeleteLinkCommandOutput) => void): void;
70
36
  deleteLink(args: DeleteLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLinkCommandOutput) => void): void;
71
37
  /**
72
- * @public
73
- * <p>Deletes a sink. You must delete all links to a sink before you can delete that sink.</p>
38
+ * @see {@link DeleteSinkCommand}
74
39
  */
75
40
  deleteSink(args: DeleteSinkCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSinkCommandOutput>;
76
41
  deleteSink(args: DeleteSinkCommandInput, cb: (err: any, data?: DeleteSinkCommandOutput) => void): void;
77
42
  deleteSink(args: DeleteSinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSinkCommandOutput) => void): void;
78
43
  /**
79
- * @public
80
- * <p>Returns complete information about one link.</p>
81
- * <p>To use this operation, provide the link ARN. To retrieve a list of link ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListLinks.html">ListLinks</a>.</p>
44
+ * @see {@link GetLinkCommand}
82
45
  */
83
46
  getLink(args: GetLinkCommandInput, options?: __HttpHandlerOptions): Promise<GetLinkCommandOutput>;
84
47
  getLink(args: GetLinkCommandInput, cb: (err: any, data?: GetLinkCommandOutput) => void): void;
85
48
  getLink(args: GetLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLinkCommandOutput) => void): void;
86
49
  /**
87
- * @public
88
- * <p>Returns complete information about one monitoring account sink.</p>
89
- * <p>To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html">ListSinks</a>.</p>
50
+ * @see {@link GetSinkCommand}
90
51
  */
91
52
  getSink(args: GetSinkCommandInput, options?: __HttpHandlerOptions): Promise<GetSinkCommandOutput>;
92
53
  getSink(args: GetSinkCommandInput, cb: (err: any, data?: GetSinkCommandOutput) => void): void;
93
54
  getSink(args: GetSinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSinkCommandOutput) => void): void;
94
55
  /**
95
- * @public
96
- * <p>Returns the current sink policy attached to this sink. The sink policy specifies what
97
- * accounts can attach to this sink as source accounts, and what types of data they can share.</p>
56
+ * @see {@link GetSinkPolicyCommand}
98
57
  */
99
58
  getSinkPolicy(args: GetSinkPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetSinkPolicyCommandOutput>;
100
59
  getSinkPolicy(args: GetSinkPolicyCommandInput, cb: (err: any, data?: GetSinkPolicyCommandOutput) => void): void;
101
60
  getSinkPolicy(args: GetSinkPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSinkPolicyCommandOutput) => void): void;
102
61
  /**
103
- * @public
104
- * <p>Returns a list of source account links that are linked to this monitoring account sink.</p>
105
- * <p>To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html">ListSinks</a>.</p>
106
- * <p>To find a list of links for one source account, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListLinks.html">ListLinks</a>.</p>
62
+ * @see {@link ListAttachedLinksCommand}
107
63
  */
108
64
  listAttachedLinks(args: ListAttachedLinksCommandInput, options?: __HttpHandlerOptions): Promise<ListAttachedLinksCommandOutput>;
109
65
  listAttachedLinks(args: ListAttachedLinksCommandInput, cb: (err: any, data?: ListAttachedLinksCommandOutput) => void): void;
110
66
  listAttachedLinks(args: ListAttachedLinksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttachedLinksCommandOutput) => void): void;
111
67
  /**
112
- * @public
113
- * <p>Use this operation in a source account to return a list of links to monitoring account sinks that
114
- * this source account has.</p>
115
- * <p>To find a list of links for one monitoring account sink, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListAttachedLinks.html">ListAttachedLinks</a> from within the monitoring account.</p>
68
+ * @see {@link ListLinksCommand}
116
69
  */
117
70
  listLinks(args: ListLinksCommandInput, options?: __HttpHandlerOptions): Promise<ListLinksCommandOutput>;
118
71
  listLinks(args: ListLinksCommandInput, cb: (err: any, data?: ListLinksCommandOutput) => void): void;
119
72
  listLinks(args: ListLinksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLinksCommandOutput) => void): void;
120
73
  /**
121
- * @public
122
- * <p>Use this operation in a monitoring account to return the list of sinks created in that account.</p>
74
+ * @see {@link ListSinksCommand}
123
75
  */
124
76
  listSinks(args: ListSinksCommandInput, options?: __HttpHandlerOptions): Promise<ListSinksCommandOutput>;
125
77
  listSinks(args: ListSinksCommandInput, cb: (err: any, data?: ListSinksCommandOutput) => void): void;
126
78
  listSinks(args: ListSinksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSinksCommandOutput) => void): void;
127
79
  /**
128
- * @public
129
- * <p>Displays the tags associated with a resource. Both sinks and links support tagging.</p>
80
+ * @see {@link ListTagsForResourceCommand}
130
81
  */
131
82
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
132
83
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
133
84
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
134
85
  /**
135
- * @public
136
- * <p>Creates or updates the resource policy that grants permissions to source
137
- * accounts to link to the monitoring account sink. When you create a sink policy, you can grant
138
- * permissions to all accounts in an organization or to individual accounts.</p>
139
- * <p>You can also use a sink policy to limit the types of data that is shared. The three types that
140
- * you can allow or deny are:</p>
141
- * <ul>
142
- * <li>
143
- * <p>
144
- * <b>Metrics</b> - Specify with
145
- * <code>AWS::CloudWatch::Metric</code>
146
- * </p>
147
- * </li>
148
- * <li>
149
- * <p>
150
- * <b>Log groups</b> - Specify with <code>AWS::Logs::LogGroup</code>
151
- * </p>
152
- * </li>
153
- * <li>
154
- * <p>
155
- * <b>Traces</b> - Specify with <code>AWS::XRay::Trace</code>
156
- * </p>
157
- * </li>
158
- * </ul>
159
- * <p>See the examples in this section to see how to specify permitted source accounts and data types.</p>
86
+ * @see {@link PutSinkPolicyCommand}
160
87
  */
161
88
  putSinkPolicy(args: PutSinkPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutSinkPolicyCommandOutput>;
162
89
  putSinkPolicy(args: PutSinkPolicyCommandInput, cb: (err: any, data?: PutSinkPolicyCommandOutput) => void): void;
163
90
  putSinkPolicy(args: PutSinkPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSinkPolicyCommandOutput) => void): void;
164
91
  /**
165
- * @public
166
- * <p>Assigns one or more tags (key-value pairs) to the specified resource.
167
- * Both sinks and links can be tagged. </p>
168
- * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
169
- * permissions by granting a user
170
- * permission to access or change only resources with certain tag values.</p>
171
- * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
172
- * <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new tag key for the alarm,
173
- * this tag is appended to the list of tags associated
174
- * with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
175
- * the previous value for that tag.</p>
176
- * <p>You can associate as many as 50 tags with a resource.</p>
177
- * <important>
178
- * <p>Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and
179
- * sinks you must have the <code>oam:ResourceTag</code> permission. The
180
- * <code>iam:ResourceTag</code> permission does not allow you to tag and untag links and
181
- * sinks.</p>
182
- * </important>
92
+ * @see {@link TagResourceCommand}
183
93
  */
184
94
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
185
95
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
186
96
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
187
97
  /**
188
- * @public
189
- * <p>Removes one or more tags from the specified resource.</p>
190
- * <important>
191
- * <p>Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and
192
- * sinks you must have the <code>oam:ResourceTag</code> permission. The
193
- * <code>iam:TagResource</code> permission does not allow you to tag and untag links and
194
- * sinks.</p>
195
- * </important>
98
+ * @see {@link UntagResourceCommand}
196
99
  */
197
100
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
198
101
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
199
102
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
200
103
  /**
201
- * @public
202
- * <p>Use this operation to change what types of data are shared from a source account to its linked
203
- * monitoring account sink. You can't change the sink or change the monitoring account with this operation.</p>
204
- * <p>To update the list of tags associated with the sink, use
205
- * <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
104
+ * @see {@link UpdateLinkCommand}
206
105
  */
207
106
  updateLink(args: UpdateLinkCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLinkCommandOutput>;
208
107
  updateLink(args: UpdateLinkCommandInput, cb: (err: any, data?: UpdateLinkCommandOutput) => void): void;
209
108
  updateLink(args: UpdateLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLinkCommandOutput) => void): void;
210
109
  }
110
+ /**
111
+ * @public
112
+ * <p>Use Amazon CloudWatch Observability Access Manager to create and manage links between source accounts and
113
+ * monitoring accounts by using <i>CloudWatch cross-account observability</i>. With
114
+ * CloudWatch cross-account observability, you can monitor and troubleshoot applications that span
115
+ * multiple accounts within a Region. Seamlessly search, visualize, and analyze your metrics,
116
+ * logs, and traces in any of the linked accounts without account boundaries.</p>
117
+ *
118
+ * <p>Set up one or more Amazon Web Services accounts as <i>monitoring
119
+ * accounts</i> and link them with multiple <i>source accounts</i>. A
120
+ * monitoring account is a central Amazon Web Services account that can view and interact with
121
+ * observability data generated from source accounts. A source account is an individual Amazon Web Services account that generates observability data for the resources that reside in it.
122
+ * Source accounts share their observability data with the monitoring account. The shared
123
+ * observability data can include metrics in Amazon CloudWatch, logs in Amazon CloudWatch Logs, and traces in X-Ray.</p>
124
+ */
125
+ export declare class OAM extends OAMClient implements OAM {
126
+ }
@@ -60,7 +60,7 @@ import {
60
60
  UpdateLinkCommandOutput,
61
61
  } from "./commands/UpdateLinkCommand";
62
62
  import { OAMClient } from "./OAMClient";
63
- export declare class OAM extends OAMClient {
63
+ export interface OAM {
64
64
  createLink(
65
65
  args: CreateLinkCommandInput,
66
66
  options?: __HttpHandlerOptions
@@ -257,3 +257,4 @@ export declare class OAM extends OAMClient {
257
257
  cb: (err: any, data?: UpdateLinkCommandOutput) => void
258
258
  ): void;
259
259
  }
260
+ export declare class OAM extends OAMClient implements OAM {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-oam",
3
3
  "description": "AWS SDK for JavaScript Oam Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",