@aws-sdk/client-rum 3.758.0 → 3.769.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 (30) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +318 -23
  3. package/dist-es/RUM.js +6 -0
  4. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
  5. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  6. package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +52 -0
  9. package/dist-es/protocols/Aws_restJson1.js +154 -1
  10. package/dist-types/RUM.d.ts +21 -0
  11. package/dist-types/RUMClient.d.ts +5 -2
  12. package/dist-types/commands/CreateAppMonitorCommand.d.ts +10 -1
  13. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +96 -0
  14. package/dist-types/commands/GetAppMonitorCommand.d.ts +9 -0
  15. package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
  16. package/dist-types/commands/PutResourcePolicyCommand.d.ts +102 -0
  17. package/dist-types/commands/PutRumEventsCommand.d.ts +1 -0
  18. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +9 -0
  19. package/dist-types/commands/index.d.ts +3 -0
  20. package/dist-types/models/models_0.d.ts +236 -1
  21. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  22. package/dist-types/ts3.4/RUM.d.ts +51 -0
  23. package/dist-types/ts3.4/RUMClient.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  25. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  26. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +81 -1
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  30. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("RUM", "DeleteResourcePolicy", {})
17
+ .n("RUMClient", "DeleteResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteResourcePolicyCommand)
20
+ .de(de_DeleteResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("RUM", "GetResourcePolicy", {})
17
+ .n("RUMClient", "GetResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetResourcePolicyCommand)
20
+ .de(de_GetResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("RUM", "PutResourcePolicy", {})
17
+ .n("RUMClient", "PutResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutResourcePolicyCommand)
20
+ .de(de_PutResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -3,12 +3,15 @@ export * from "./BatchDeleteRumMetricDefinitionsCommand";
3
3
  export * from "./BatchGetRumMetricDefinitionsCommand";
4
4
  export * from "./CreateAppMonitorCommand";
5
5
  export * from "./DeleteAppMonitorCommand";
6
+ export * from "./DeleteResourcePolicyCommand";
6
7
  export * from "./DeleteRumMetricsDestinationCommand";
7
8
  export * from "./GetAppMonitorCommand";
8
9
  export * from "./GetAppMonitorDataCommand";
10
+ export * from "./GetResourcePolicyCommand";
9
11
  export * from "./ListAppMonitorsCommand";
10
12
  export * from "./ListRumMetricsDestinationsCommand";
11
13
  export * from "./ListTagsForResourceCommand";
14
+ export * from "./PutResourcePolicyCommand";
12
15
  export * from "./PutRumEventsCommand";
13
16
  export * from "./PutRumMetricsDestinationCommand";
14
17
  export * from "./TagResourceCommand";
@@ -20,6 +20,10 @@ export const CustomEventsStatus = {
20
20
  DISABLED: "DISABLED",
21
21
  ENABLED: "ENABLED",
22
22
  };
23
+ export const DeobfuscationStatus = {
24
+ DISABLED: "DISABLED",
25
+ ENABLED: "ENABLED",
26
+ };
23
27
  export const StateEnum = {
24
28
  ACTIVE: "ACTIVE",
25
29
  CREATED: "CREATED",
@@ -121,3 +125,51 @@ export class ValidationException extends __BaseException {
121
125
  Object.setPrototypeOf(this, ValidationException.prototype);
122
126
  }
123
127
  }
128
+ export class InvalidPolicyRevisionIdException extends __BaseException {
129
+ name = "InvalidPolicyRevisionIdException";
130
+ $fault = "client";
131
+ constructor(opts) {
132
+ super({
133
+ name: "InvalidPolicyRevisionIdException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
138
+ }
139
+ }
140
+ export class PolicyNotFoundException extends __BaseException {
141
+ name = "PolicyNotFoundException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "PolicyNotFoundException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
150
+ }
151
+ }
152
+ export class MalformedPolicyDocumentException extends __BaseException {
153
+ name = "MalformedPolicyDocumentException";
154
+ $fault = "client";
155
+ constructor(opts) {
156
+ super({
157
+ name: "MalformedPolicyDocumentException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
162
+ }
163
+ }
164
+ export class PolicySizeLimitExceededException extends __BaseException {
165
+ name = "PolicySizeLimitExceededException";
166
+ $fault = "client";
167
+ constructor(opts) {
168
+ super({
169
+ name: "PolicySizeLimitExceededException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ Object.setPrototypeOf(this, PolicySizeLimitExceededException.prototype);
174
+ }
175
+ }
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
4
4
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, ConflictException, InternalServerException, InvalidPolicyRevisionIdException, MalformedPolicyDocumentException, PolicyNotFoundException, PolicySizeLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
6
  import { RUMServiceException as __BaseException } from "../models/RUMServiceException";
7
7
  export const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
8
8
  const b = rb(input, context);
@@ -60,7 +60,9 @@ export const se_CreateAppMonitorCommand = async (input, context) => {
60
60
  AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
61
61
  CustomEvents: (_) => _json(_),
62
62
  CwLogEnabled: [],
63
+ DeobfuscationConfiguration: (_) => _json(_),
63
64
  Domain: [],
65
+ DomainList: (_) => _json(_),
64
66
  Name: [],
65
67
  Tags: (_) => _json(_),
66
68
  }));
@@ -76,6 +78,18 @@ export const se_DeleteAppMonitorCommand = async (input, context) => {
76
78
  b.m("DELETE").h(headers).b(body);
77
79
  return b.build();
78
80
  };
81
+ export const se_DeleteResourcePolicyCommand = async (input, context) => {
82
+ const b = rb(input, context);
83
+ const headers = {};
84
+ b.bp("/appmonitor/{Name}/policy");
85
+ b.p("Name", () => input.Name, "{Name}", false);
86
+ const query = map({
87
+ [_pRI]: [, input[_PRI]],
88
+ });
89
+ let body;
90
+ b.m("DELETE").h(headers).q(query).b(body);
91
+ return b.build();
92
+ };
79
93
  export const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
80
94
  const b = rb(input, context);
81
95
  const headers = {};
@@ -115,6 +129,15 @@ export const se_GetAppMonitorDataCommand = async (input, context) => {
115
129
  b.m("POST").h(headers).b(body);
116
130
  return b.build();
117
131
  };
132
+ export const se_GetResourcePolicyCommand = async (input, context) => {
133
+ const b = rb(input, context);
134
+ const headers = {};
135
+ b.bp("/appmonitor/{Name}/policy");
136
+ b.p("Name", () => input.Name, "{Name}", false);
137
+ let body;
138
+ b.m("GET").h(headers).b(body);
139
+ return b.build();
140
+ };
118
141
  export const se_ListAppMonitorsCommand = async (input, context) => {
119
142
  const b = rb(input, context);
120
143
  const headers = {};
@@ -149,6 +172,21 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
149
172
  b.m("GET").h(headers).b(body);
150
173
  return b.build();
151
174
  };
175
+ export const se_PutResourcePolicyCommand = async (input, context) => {
176
+ const b = rb(input, context);
177
+ const headers = {
178
+ "content-type": "application/json",
179
+ };
180
+ b.bp("/appmonitor/{Name}/policy");
181
+ b.p("Name", () => input.Name, "{Name}", false);
182
+ let body;
183
+ body = JSON.stringify(take(input, {
184
+ PolicyDocument: [],
185
+ PolicyRevisionId: [],
186
+ }));
187
+ b.m("PUT").h(headers).b(body);
188
+ return b.build();
189
+ };
152
190
  export const se_PutRumEventsCommand = async (input, context) => {
153
191
  const b = rb(input, context);
154
192
  const headers = {
@@ -158,6 +196,7 @@ export const se_PutRumEventsCommand = async (input, context) => {
158
196
  b.p("Id", () => input.Id, "{Id}", false);
159
197
  let body;
160
198
  body = JSON.stringify(take(input, {
199
+ Alias: [],
161
200
  AppMonitorDetails: (_) => _json(_),
162
201
  BatchId: [],
163
202
  RumEvents: (_) => se_RumEventList(_, context),
@@ -228,7 +267,9 @@ export const se_UpdateAppMonitorCommand = async (input, context) => {
228
267
  AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
229
268
  CustomEvents: (_) => _json(_),
230
269
  CwLogEnabled: [],
270
+ DeobfuscationConfiguration: (_) => _json(_),
231
271
  Domain: [],
272
+ DomainList: (_) => _json(_),
232
273
  }));
233
274
  b.m("PATCH").h(headers).b(body);
234
275
  return b.build();
@@ -319,6 +360,20 @@ export const de_DeleteAppMonitorCommand = async (output, context) => {
319
360
  await collectBody(output.body, context);
320
361
  return contents;
321
362
  };
363
+ export const de_DeleteResourcePolicyCommand = async (output, context) => {
364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
365
+ return de_CommandError(output, context);
366
+ }
367
+ const contents = map({
368
+ $metadata: deserializeMetadata(output),
369
+ });
370
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
371
+ const doc = take(data, {
372
+ PolicyRevisionId: __expectString,
373
+ });
374
+ Object.assign(contents, doc);
375
+ return contents;
376
+ };
322
377
  export const de_DeleteRumMetricsDestinationCommand = async (output, context) => {
323
378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
324
379
  return de_CommandError(output, context);
@@ -358,6 +413,21 @@ export const de_GetAppMonitorDataCommand = async (output, context) => {
358
413
  Object.assign(contents, doc);
359
414
  return contents;
360
415
  };
416
+ export const de_GetResourcePolicyCommand = async (output, context) => {
417
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
418
+ return de_CommandError(output, context);
419
+ }
420
+ const contents = map({
421
+ $metadata: deserializeMetadata(output),
422
+ });
423
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
424
+ const doc = take(data, {
425
+ PolicyDocument: __expectString,
426
+ PolicyRevisionId: __expectString,
427
+ });
428
+ Object.assign(contents, doc);
429
+ return contents;
430
+ };
361
431
  export const de_ListAppMonitorsCommand = async (output, context) => {
362
432
  if (output.statusCode !== 200 && output.statusCode >= 300) {
363
433
  return de_CommandError(output, context);
@@ -403,6 +473,21 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
403
473
  Object.assign(contents, doc);
404
474
  return contents;
405
475
  };
476
+ export const de_PutResourcePolicyCommand = async (output, context) => {
477
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
478
+ return de_CommandError(output, context);
479
+ }
480
+ const contents = map({
481
+ $metadata: deserializeMetadata(output),
482
+ });
483
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
484
+ const doc = take(data, {
485
+ PolicyDocument: __expectString,
486
+ PolicyRevisionId: __expectString,
487
+ });
488
+ Object.assign(contents, doc);
489
+ return contents;
490
+ };
406
491
  export const de_PutRumEventsCommand = async (output, context) => {
407
492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
493
  return de_CommandError(output, context);
@@ -491,6 +576,18 @@ const de_CommandError = async (output, context) => {
491
576
  case "ValidationException":
492
577
  case "com.amazonaws.rum#ValidationException":
493
578
  throw await de_ValidationExceptionRes(parsedOutput, context);
579
+ case "InvalidPolicyRevisionIdException":
580
+ case "com.amazonaws.rum#InvalidPolicyRevisionIdException":
581
+ throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
582
+ case "PolicyNotFoundException":
583
+ case "com.amazonaws.rum#PolicyNotFoundException":
584
+ throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
585
+ case "MalformedPolicyDocumentException":
586
+ case "com.amazonaws.rum#MalformedPolicyDocumentException":
587
+ throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
588
+ case "PolicySizeLimitExceededException":
589
+ case "com.amazonaws.rum#PolicySizeLimitExceededException":
590
+ throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
494
591
  default:
495
592
  const parsedBody = parsedOutput.body;
496
593
  return throwDefaultError({
@@ -544,6 +641,58 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
544
641
  });
545
642
  return __decorateServiceException(exception, parsedOutput.body);
546
643
  };
644
+ const de_InvalidPolicyRevisionIdExceptionRes = async (parsedOutput, context) => {
645
+ const contents = map({});
646
+ const data = parsedOutput.body;
647
+ const doc = take(data, {
648
+ message: __expectString,
649
+ });
650
+ Object.assign(contents, doc);
651
+ const exception = new InvalidPolicyRevisionIdException({
652
+ $metadata: deserializeMetadata(parsedOutput),
653
+ ...contents,
654
+ });
655
+ return __decorateServiceException(exception, parsedOutput.body);
656
+ };
657
+ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
658
+ const contents = map({});
659
+ const data = parsedOutput.body;
660
+ const doc = take(data, {
661
+ message: __expectString,
662
+ });
663
+ Object.assign(contents, doc);
664
+ const exception = new MalformedPolicyDocumentException({
665
+ $metadata: deserializeMetadata(parsedOutput),
666
+ ...contents,
667
+ });
668
+ return __decorateServiceException(exception, parsedOutput.body);
669
+ };
670
+ const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
671
+ const contents = map({});
672
+ const data = parsedOutput.body;
673
+ const doc = take(data, {
674
+ message: __expectString,
675
+ });
676
+ Object.assign(contents, doc);
677
+ const exception = new PolicyNotFoundException({
678
+ $metadata: deserializeMetadata(parsedOutput),
679
+ ...contents,
680
+ });
681
+ return __decorateServiceException(exception, parsedOutput.body);
682
+ };
683
+ const de_PolicySizeLimitExceededExceptionRes = async (parsedOutput, context) => {
684
+ const contents = map({});
685
+ const data = parsedOutput.body;
686
+ const doc = take(data, {
687
+ message: __expectString,
688
+ });
689
+ Object.assign(contents, doc);
690
+ const exception = new PolicySizeLimitExceededException({
691
+ $metadata: deserializeMetadata(parsedOutput),
692
+ ...contents,
693
+ });
694
+ return __decorateServiceException(exception, parsedOutput.body);
695
+ };
547
696
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
548
697
  const contents = map({});
549
698
  const data = parsedOutput.body;
@@ -637,7 +786,9 @@ const de_AppMonitor = (output, context) => {
637
786
  Created: __expectString,
638
787
  CustomEvents: _json,
639
788
  DataStorage: _json,
789
+ DeobfuscationConfiguration: _json,
640
790
  Domain: __expectString,
791
+ DomainList: _json,
641
792
  Id: __expectString,
642
793
  LastModified: __expectString,
643
794
  Name: __expectString,
@@ -670,12 +821,14 @@ const _DA = "DestinationArn";
670
821
  const _MDI = "MetricDefinitionIds";
671
822
  const _MR = "MaxResults";
672
823
  const _NT = "NextToken";
824
+ const _PRI = "PolicyRevisionId";
673
825
  const _TK = "TagKeys";
674
826
  const _d = "destination";
675
827
  const _dA = "destinationArn";
676
828
  const _mDI = "metricDefinitionIds";
677
829
  const _mR = "maxResults";
678
830
  const _nT = "nextToken";
831
+ const _pRI = "policyRevisionId";
679
832
  const _rAS = "retryAfterSeconds";
680
833
  const _ra = "retry-after";
681
834
  const _tK = "tagKeys";
@@ -4,12 +4,15 @@ import { BatchDeleteRumMetricDefinitionsCommandInput, BatchDeleteRumMetricDefini
4
4
  import { BatchGetRumMetricDefinitionsCommandInput, BatchGetRumMetricDefinitionsCommandOutput } from "./commands/BatchGetRumMetricDefinitionsCommand";
5
5
  import { CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput } from "./commands/CreateAppMonitorCommand";
6
6
  import { DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput } from "./commands/DeleteAppMonitorCommand";
7
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
7
8
  import { DeleteRumMetricsDestinationCommandInput, DeleteRumMetricsDestinationCommandOutput } from "./commands/DeleteRumMetricsDestinationCommand";
8
9
  import { GetAppMonitorCommandInput, GetAppMonitorCommandOutput } from "./commands/GetAppMonitorCommand";
9
10
  import { GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput } from "./commands/GetAppMonitorDataCommand";
11
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
10
12
  import { ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput } from "./commands/ListAppMonitorsCommand";
11
13
  import { ListRumMetricsDestinationsCommandInput, ListRumMetricsDestinationsCommandOutput } from "./commands/ListRumMetricsDestinationsCommand";
12
14
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
15
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
13
16
  import { PutRumEventsCommandInput, PutRumEventsCommandOutput } from "./commands/PutRumEventsCommand";
14
17
  import { PutRumMetricsDestinationCommandInput, PutRumMetricsDestinationCommandOutput } from "./commands/PutRumMetricsDestinationCommand";
15
18
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -48,6 +51,12 @@ export interface RUM {
48
51
  deleteAppMonitor(args: DeleteAppMonitorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAppMonitorCommandOutput>;
49
52
  deleteAppMonitor(args: DeleteAppMonitorCommandInput, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
50
53
  deleteAppMonitor(args: DeleteAppMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link DeleteResourcePolicyCommand}
56
+ */
57
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
58
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
59
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
51
60
  /**
52
61
  * @see {@link DeleteRumMetricsDestinationCommand}
53
62
  */
@@ -66,6 +75,12 @@ export interface RUM {
66
75
  getAppMonitorData(args: GetAppMonitorDataCommandInput, options?: __HttpHandlerOptions): Promise<GetAppMonitorDataCommandOutput>;
67
76
  getAppMonitorData(args: GetAppMonitorDataCommandInput, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
68
77
  getAppMonitorData(args: GetAppMonitorDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link GetResourcePolicyCommand}
80
+ */
81
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
82
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
83
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
69
84
  /**
70
85
  * @see {@link ListAppMonitorsCommand}
71
86
  */
@@ -85,6 +100,12 @@ export interface RUM {
85
100
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
86
101
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
87
102
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link PutResourcePolicyCommand}
105
+ */
106
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
107
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
108
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
88
109
  /**
89
110
  * @see {@link PutRumEventsCommand}
90
111
  */
@@ -12,12 +12,15 @@ import { BatchDeleteRumMetricDefinitionsCommandInput, BatchDeleteRumMetricDefini
12
12
  import { BatchGetRumMetricDefinitionsCommandInput, BatchGetRumMetricDefinitionsCommandOutput } from "./commands/BatchGetRumMetricDefinitionsCommand";
13
13
  import { CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput } from "./commands/CreateAppMonitorCommand";
14
14
  import { DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput } from "./commands/DeleteAppMonitorCommand";
15
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
15
16
  import { DeleteRumMetricsDestinationCommandInput, DeleteRumMetricsDestinationCommandOutput } from "./commands/DeleteRumMetricsDestinationCommand";
16
17
  import { GetAppMonitorCommandInput, GetAppMonitorCommandOutput } from "./commands/GetAppMonitorCommand";
17
18
  import { GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput } from "./commands/GetAppMonitorDataCommand";
19
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
18
20
  import { ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput } from "./commands/ListAppMonitorsCommand";
19
21
  import { ListRumMetricsDestinationsCommandInput, ListRumMetricsDestinationsCommandOutput } from "./commands/ListRumMetricsDestinationsCommand";
20
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
21
24
  import { PutRumEventsCommandInput, PutRumEventsCommandOutput } from "./commands/PutRumEventsCommand";
22
25
  import { PutRumMetricsDestinationCommandInput, PutRumMetricsDestinationCommandOutput } from "./commands/PutRumMetricsDestinationCommand";
23
26
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -30,11 +33,11 @@ export { __Client };
30
33
  /**
31
34
  * @public
32
35
  */
33
- export type ServiceInputTypes = BatchCreateRumMetricDefinitionsCommandInput | BatchDeleteRumMetricDefinitionsCommandInput | BatchGetRumMetricDefinitionsCommandInput | CreateAppMonitorCommandInput | DeleteAppMonitorCommandInput | DeleteRumMetricsDestinationCommandInput | GetAppMonitorCommandInput | GetAppMonitorDataCommandInput | ListAppMonitorsCommandInput | ListRumMetricsDestinationsCommandInput | ListTagsForResourceCommandInput | PutRumEventsCommandInput | PutRumMetricsDestinationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppMonitorCommandInput | UpdateRumMetricDefinitionCommandInput;
36
+ export type ServiceInputTypes = BatchCreateRumMetricDefinitionsCommandInput | BatchDeleteRumMetricDefinitionsCommandInput | BatchGetRumMetricDefinitionsCommandInput | CreateAppMonitorCommandInput | DeleteAppMonitorCommandInput | DeleteResourcePolicyCommandInput | DeleteRumMetricsDestinationCommandInput | GetAppMonitorCommandInput | GetAppMonitorDataCommandInput | GetResourcePolicyCommandInput | ListAppMonitorsCommandInput | ListRumMetricsDestinationsCommandInput | ListTagsForResourceCommandInput | PutResourcePolicyCommandInput | PutRumEventsCommandInput | PutRumMetricsDestinationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppMonitorCommandInput | UpdateRumMetricDefinitionCommandInput;
34
37
  /**
35
38
  * @public
36
39
  */
37
- export type ServiceOutputTypes = BatchCreateRumMetricDefinitionsCommandOutput | BatchDeleteRumMetricDefinitionsCommandOutput | BatchGetRumMetricDefinitionsCommandOutput | CreateAppMonitorCommandOutput | DeleteAppMonitorCommandOutput | DeleteRumMetricsDestinationCommandOutput | GetAppMonitorCommandOutput | GetAppMonitorDataCommandOutput | ListAppMonitorsCommandOutput | ListRumMetricsDestinationsCommandOutput | ListTagsForResourceCommandOutput | PutRumEventsCommandOutput | PutRumMetricsDestinationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppMonitorCommandOutput | UpdateRumMetricDefinitionCommandOutput;
40
+ export type ServiceOutputTypes = BatchCreateRumMetricDefinitionsCommandOutput | BatchDeleteRumMetricDefinitionsCommandOutput | BatchGetRumMetricDefinitionsCommandOutput | CreateAppMonitorCommandOutput | DeleteAppMonitorCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRumMetricsDestinationCommandOutput | GetAppMonitorCommandOutput | GetAppMonitorDataCommandOutput | GetResourcePolicyCommandOutput | ListAppMonitorsCommandOutput | ListRumMetricsDestinationsCommandOutput | ListTagsForResourceCommandOutput | PutResourcePolicyCommandOutput | PutRumEventsCommandOutput | PutRumMetricsDestinationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppMonitorCommandOutput | UpdateRumMetricDefinitionCommandOutput;
38
41
  /**
39
42
  * @public
40
43
  */
@@ -44,7 +44,10 @@ declare const CreateAppMonitorCommand_base: {
44
44
  * const client = new RUMClient(config);
45
45
  * const input = { // CreateAppMonitorRequest
46
46
  * Name: "STRING_VALUE", // required
47
- * Domain: "STRING_VALUE", // required
47
+ * Domain: "STRING_VALUE",
48
+ * DomainList: [ // AppMonitorDomainList
49
+ * "STRING_VALUE",
50
+ * ],
48
51
  * Tags: { // TagMap
49
52
  * "<keys>": "STRING_VALUE",
50
53
  * },
@@ -71,6 +74,12 @@ declare const CreateAppMonitorCommand_base: {
71
74
  * CustomEvents: { // CustomEvents
72
75
  * Status: "STRING_VALUE",
73
76
  * },
77
+ * DeobfuscationConfiguration: { // DeobfuscationConfiguration
78
+ * JavaScriptSourceMaps: { // JavaScriptSourceMaps
79
+ * Status: "STRING_VALUE", // required
80
+ * S3Uri: "STRING_VALUE",
81
+ * },
82
+ * },
74
83
  * };
75
84
  * const command = new CreateAppMonitorCommand(input);
76
85
  * const response = await client.send(command);
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0";
4
+ import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteResourcePolicyCommand}.
14
+ */
15
+ export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteResourcePolicyCommand}.
21
+ */
22
+ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteResourcePolicyCommand_base: {
25
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Removes the association of a resource-based policy from an app monitor.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { RUMClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-rum"; // ES Modules import
35
+ * // const { RUMClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-rum"); // CommonJS import
36
+ * const client = new RUMClient(config);
37
+ * const input = { // DeleteResourcePolicyRequest
38
+ * Name: "STRING_VALUE", // required
39
+ * PolicyRevisionId: "STRING_VALUE",
40
+ * };
41
+ * const command = new DeleteResourcePolicyCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeleteResourcePolicyResponse
44
+ * // PolicyRevisionId: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
50
+ * @returns {@link DeleteResourcePolicyCommandOutput}
51
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
52
+ * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
53
+ * @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You don't have sufficient permissions to perform this action.</p>
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>This operation attempted to create a resource that already exists.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>Internal service exception.</p>
63
+ *
64
+ * @throws {@link InvalidPolicyRevisionIdException} (client fault)
65
+ * <p>The policy revision ID that you provided doeesn't match the latest policy revision ID.</p>
66
+ *
67
+ * @throws {@link PolicyNotFoundException} (client fault)
68
+ * <p>The resource-based policy doesn't exist on this app monitor.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>Resource not found.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The request was throttled because of quota limits.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>One of the arguments for the request is not valid.</p>
78
+ *
79
+ * @throws {@link RUMServiceException}
80
+ * <p>Base exception class for all service exceptions from RUM service.</p>
81
+ *
82
+ * @public
83
+ */
84
+ export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: DeleteResourcePolicyRequest;
89
+ output: DeleteResourcePolicyResponse;
90
+ };
91
+ sdk: {
92
+ input: DeleteResourcePolicyCommandInput;
93
+ output: DeleteResourcePolicyCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -43,6 +43,9 @@ declare const GetAppMonitorCommand_base: {
43
43
  * // AppMonitor: { // AppMonitor
44
44
  * // Name: "STRING_VALUE",
45
45
  * // Domain: "STRING_VALUE",
46
+ * // DomainList: [ // AppMonitorDomainList
47
+ * // "STRING_VALUE",
48
+ * // ],
46
49
  * // Id: "STRING_VALUE",
47
50
  * // Created: "STRING_VALUE",
48
51
  * // LastModified: "STRING_VALUE",
@@ -78,6 +81,12 @@ declare const GetAppMonitorCommand_base: {
78
81
  * // CustomEvents: { // CustomEvents
79
82
  * // Status: "STRING_VALUE",
80
83
  * // },
84
+ * // DeobfuscationConfiguration: { // DeobfuscationConfiguration
85
+ * // JavaScriptSourceMaps: { // JavaScriptSourceMaps
86
+ * // Status: "STRING_VALUE", // required
87
+ * // S3Uri: "STRING_VALUE",
88
+ * // },
89
+ * // },
81
90
  * // },
82
91
  * // };
83
92
  *