@aws-sdk/client-rum 3.750.0 → 3.760.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/README.md +24 -0
- package/dist-cjs/index.js +284 -1
- package/dist-es/RUM.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +48 -0
- package/dist-es/protocols/Aws_restJson1.js +148 -1
- package/dist-types/RUM.d.ts +21 -0
- package/dist-types/RUMClient.d.ts +5 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +96 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +102 -0
- package/dist-types/commands/PutRumEventsCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +144 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/RUM.d.ts +51 -0
- package/dist-types/ts3.4/RUMClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -249,6 +249,14 @@ DeleteAppMonitor
|
|
|
249
249
|
|
|
250
250
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/DeleteAppMonitorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/DeleteAppMonitorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/DeleteAppMonitorCommandOutput/)
|
|
251
251
|
|
|
252
|
+
</details>
|
|
253
|
+
<details>
|
|
254
|
+
<summary>
|
|
255
|
+
DeleteResourcePolicy
|
|
256
|
+
</summary>
|
|
257
|
+
|
|
258
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/DeleteResourcePolicyCommandOutput/)
|
|
259
|
+
|
|
252
260
|
</details>
|
|
253
261
|
<details>
|
|
254
262
|
<summary>
|
|
@@ -273,6 +281,14 @@ GetAppMonitorData
|
|
|
273
281
|
|
|
274
282
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/GetAppMonitorDataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/GetAppMonitorDataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/GetAppMonitorDataCommandOutput/)
|
|
275
283
|
|
|
284
|
+
</details>
|
|
285
|
+
<details>
|
|
286
|
+
<summary>
|
|
287
|
+
GetResourcePolicy
|
|
288
|
+
</summary>
|
|
289
|
+
|
|
290
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/GetResourcePolicyCommandOutput/)
|
|
291
|
+
|
|
276
292
|
</details>
|
|
277
293
|
<details>
|
|
278
294
|
<summary>
|
|
@@ -297,6 +313,14 @@ ListTagsForResource
|
|
|
297
313
|
|
|
298
314
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/ListTagsForResourceCommandOutput/)
|
|
299
315
|
|
|
316
|
+
</details>
|
|
317
|
+
<details>
|
|
318
|
+
<summary>
|
|
319
|
+
PutResourcePolicy
|
|
320
|
+
</summary>
|
|
321
|
+
|
|
322
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rum/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rum/Interface/PutResourcePolicyCommandOutput/)
|
|
323
|
+
|
|
300
324
|
</details>
|
|
301
325
|
<details>
|
|
302
326
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -29,14 +29,21 @@ __export(src_exports, {
|
|
|
29
29
|
CreateAppMonitorCommand: () => CreateAppMonitorCommand,
|
|
30
30
|
CustomEventsStatus: () => CustomEventsStatus,
|
|
31
31
|
DeleteAppMonitorCommand: () => DeleteAppMonitorCommand,
|
|
32
|
+
DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
|
|
32
33
|
DeleteRumMetricsDestinationCommand: () => DeleteRumMetricsDestinationCommand,
|
|
33
34
|
GetAppMonitorCommand: () => GetAppMonitorCommand,
|
|
34
35
|
GetAppMonitorDataCommand: () => GetAppMonitorDataCommand,
|
|
36
|
+
GetResourcePolicyCommand: () => GetResourcePolicyCommand,
|
|
35
37
|
InternalServerException: () => InternalServerException,
|
|
38
|
+
InvalidPolicyRevisionIdException: () => InvalidPolicyRevisionIdException,
|
|
36
39
|
ListAppMonitorsCommand: () => ListAppMonitorsCommand,
|
|
37
40
|
ListRumMetricsDestinationsCommand: () => ListRumMetricsDestinationsCommand,
|
|
38
41
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
42
|
+
MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
|
|
39
43
|
MetricDestination: () => MetricDestination,
|
|
44
|
+
PolicyNotFoundException: () => PolicyNotFoundException,
|
|
45
|
+
PolicySizeLimitExceededException: () => PolicySizeLimitExceededException,
|
|
46
|
+
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
40
47
|
PutRumEventsCommand: () => PutRumEventsCommand,
|
|
41
48
|
PutRumMetricsDestinationCommand: () => PutRumMetricsDestinationCommand,
|
|
42
49
|
RUM: () => RUM,
|
|
@@ -437,6 +444,78 @@ var ValidationException = class _ValidationException extends RUMServiceException
|
|
|
437
444
|
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
438
445
|
}
|
|
439
446
|
};
|
|
447
|
+
var InvalidPolicyRevisionIdException = class _InvalidPolicyRevisionIdException extends RUMServiceException {
|
|
448
|
+
static {
|
|
449
|
+
__name(this, "InvalidPolicyRevisionIdException");
|
|
450
|
+
}
|
|
451
|
+
name = "InvalidPolicyRevisionIdException";
|
|
452
|
+
$fault = "client";
|
|
453
|
+
/**
|
|
454
|
+
* @internal
|
|
455
|
+
*/
|
|
456
|
+
constructor(opts) {
|
|
457
|
+
super({
|
|
458
|
+
name: "InvalidPolicyRevisionIdException",
|
|
459
|
+
$fault: "client",
|
|
460
|
+
...opts
|
|
461
|
+
});
|
|
462
|
+
Object.setPrototypeOf(this, _InvalidPolicyRevisionIdException.prototype);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
var PolicyNotFoundException = class _PolicyNotFoundException extends RUMServiceException {
|
|
466
|
+
static {
|
|
467
|
+
__name(this, "PolicyNotFoundException");
|
|
468
|
+
}
|
|
469
|
+
name = "PolicyNotFoundException";
|
|
470
|
+
$fault = "client";
|
|
471
|
+
/**
|
|
472
|
+
* @internal
|
|
473
|
+
*/
|
|
474
|
+
constructor(opts) {
|
|
475
|
+
super({
|
|
476
|
+
name: "PolicyNotFoundException",
|
|
477
|
+
$fault: "client",
|
|
478
|
+
...opts
|
|
479
|
+
});
|
|
480
|
+
Object.setPrototypeOf(this, _PolicyNotFoundException.prototype);
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends RUMServiceException {
|
|
484
|
+
static {
|
|
485
|
+
__name(this, "MalformedPolicyDocumentException");
|
|
486
|
+
}
|
|
487
|
+
name = "MalformedPolicyDocumentException";
|
|
488
|
+
$fault = "client";
|
|
489
|
+
/**
|
|
490
|
+
* @internal
|
|
491
|
+
*/
|
|
492
|
+
constructor(opts) {
|
|
493
|
+
super({
|
|
494
|
+
name: "MalformedPolicyDocumentException",
|
|
495
|
+
$fault: "client",
|
|
496
|
+
...opts
|
|
497
|
+
});
|
|
498
|
+
Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
var PolicySizeLimitExceededException = class _PolicySizeLimitExceededException extends RUMServiceException {
|
|
502
|
+
static {
|
|
503
|
+
__name(this, "PolicySizeLimitExceededException");
|
|
504
|
+
}
|
|
505
|
+
name = "PolicySizeLimitExceededException";
|
|
506
|
+
$fault = "client";
|
|
507
|
+
/**
|
|
508
|
+
* @internal
|
|
509
|
+
*/
|
|
510
|
+
constructor(opts) {
|
|
511
|
+
super({
|
|
512
|
+
name: "PolicySizeLimitExceededException",
|
|
513
|
+
$fault: "client",
|
|
514
|
+
...opts
|
|
515
|
+
});
|
|
516
|
+
Object.setPrototypeOf(this, _PolicySizeLimitExceededException.prototype);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
440
519
|
|
|
441
520
|
// src/protocols/Aws_restJson1.ts
|
|
442
521
|
var se_BatchCreateRumMetricDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -515,6 +594,18 @@ var se_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
515
594
|
b.m("DELETE").h(headers).b(body);
|
|
516
595
|
return b.build();
|
|
517
596
|
}, "se_DeleteAppMonitorCommand");
|
|
597
|
+
var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
598
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
599
|
+
const headers = {};
|
|
600
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
601
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
602
|
+
const query = (0, import_smithy_client.map)({
|
|
603
|
+
[_pRI]: [, input[_PRI]]
|
|
604
|
+
});
|
|
605
|
+
let body;
|
|
606
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
607
|
+
return b.build();
|
|
608
|
+
}, "se_DeleteResourcePolicyCommand");
|
|
518
609
|
var se_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
519
610
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
520
611
|
const headers = {};
|
|
@@ -556,6 +647,15 @@ var se_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
556
647
|
b.m("POST").h(headers).b(body);
|
|
557
648
|
return b.build();
|
|
558
649
|
}, "se_GetAppMonitorDataCommand");
|
|
650
|
+
var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
651
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
652
|
+
const headers = {};
|
|
653
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
654
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
655
|
+
let body;
|
|
656
|
+
b.m("GET").h(headers).b(body);
|
|
657
|
+
return b.build();
|
|
658
|
+
}, "se_GetResourcePolicyCommand");
|
|
559
659
|
var se_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
660
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
561
661
|
const headers = {};
|
|
@@ -590,6 +690,23 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
590
690
|
b.m("GET").h(headers).b(body);
|
|
591
691
|
return b.build();
|
|
592
692
|
}, "se_ListTagsForResourceCommand");
|
|
693
|
+
var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
694
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
695
|
+
const headers = {
|
|
696
|
+
"content-type": "application/json"
|
|
697
|
+
};
|
|
698
|
+
b.bp("/appmonitor/{Name}/policy");
|
|
699
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
700
|
+
let body;
|
|
701
|
+
body = JSON.stringify(
|
|
702
|
+
(0, import_smithy_client.take)(input, {
|
|
703
|
+
PolicyDocument: [],
|
|
704
|
+
PolicyRevisionId: []
|
|
705
|
+
})
|
|
706
|
+
);
|
|
707
|
+
b.m("PUT").h(headers).b(body);
|
|
708
|
+
return b.build();
|
|
709
|
+
}, "se_PutResourcePolicyCommand");
|
|
593
710
|
var se_PutRumEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
594
711
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
595
712
|
const headers = {
|
|
@@ -600,6 +717,7 @@ var se_PutRumEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
600
717
|
let body;
|
|
601
718
|
body = JSON.stringify(
|
|
602
719
|
(0, import_smithy_client.take)(input, {
|
|
720
|
+
Alias: [],
|
|
603
721
|
AppMonitorDetails: (_) => (0, import_smithy_client._json)(_),
|
|
604
722
|
BatchId: [],
|
|
605
723
|
RumEvents: (_) => se_RumEventList(_, context),
|
|
@@ -770,6 +888,20 @@ var de_DeleteAppMonitorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
770
888
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
771
889
|
return contents;
|
|
772
890
|
}, "de_DeleteAppMonitorCommand");
|
|
891
|
+
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
+
return de_CommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = (0, import_smithy_client.map)({
|
|
896
|
+
$metadata: deserializeMetadata(output)
|
|
897
|
+
});
|
|
898
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
899
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
900
|
+
PolicyRevisionId: import_smithy_client.expectString
|
|
901
|
+
});
|
|
902
|
+
Object.assign(contents, doc);
|
|
903
|
+
return contents;
|
|
904
|
+
}, "de_DeleteResourcePolicyCommand");
|
|
773
905
|
var de_DeleteRumMetricsDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
907
|
return de_CommandError(output, context);
|
|
@@ -809,6 +941,21 @@ var de_GetAppMonitorDataCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
809
941
|
Object.assign(contents, doc);
|
|
810
942
|
return contents;
|
|
811
943
|
}, "de_GetAppMonitorDataCommand");
|
|
944
|
+
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return de_CommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = (0, import_smithy_client.map)({
|
|
949
|
+
$metadata: deserializeMetadata(output)
|
|
950
|
+
});
|
|
951
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
952
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
953
|
+
PolicyDocument: import_smithy_client.expectString,
|
|
954
|
+
PolicyRevisionId: import_smithy_client.expectString
|
|
955
|
+
});
|
|
956
|
+
Object.assign(contents, doc);
|
|
957
|
+
return contents;
|
|
958
|
+
}, "de_GetResourcePolicyCommand");
|
|
812
959
|
var de_ListAppMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
813
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
814
961
|
return de_CommandError(output, context);
|
|
@@ -854,6 +1001,21 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
854
1001
|
Object.assign(contents, doc);
|
|
855
1002
|
return contents;
|
|
856
1003
|
}, "de_ListTagsForResourceCommand");
|
|
1004
|
+
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1007
|
+
}
|
|
1008
|
+
const contents = (0, import_smithy_client.map)({
|
|
1009
|
+
$metadata: deserializeMetadata(output)
|
|
1010
|
+
});
|
|
1011
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1012
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1013
|
+
PolicyDocument: import_smithy_client.expectString,
|
|
1014
|
+
PolicyRevisionId: import_smithy_client.expectString
|
|
1015
|
+
});
|
|
1016
|
+
Object.assign(contents, doc);
|
|
1017
|
+
return contents;
|
|
1018
|
+
}, "de_PutResourcePolicyCommand");
|
|
857
1019
|
var de_PutRumEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
1021
|
return de_CommandError(output, context);
|
|
@@ -942,6 +1104,18 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
942
1104
|
case "ValidationException":
|
|
943
1105
|
case "com.amazonaws.rum#ValidationException":
|
|
944
1106
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
+
case "InvalidPolicyRevisionIdException":
|
|
1108
|
+
case "com.amazonaws.rum#InvalidPolicyRevisionIdException":
|
|
1109
|
+
throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
|
|
1110
|
+
case "PolicyNotFoundException":
|
|
1111
|
+
case "com.amazonaws.rum#PolicyNotFoundException":
|
|
1112
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1113
|
+
case "MalformedPolicyDocumentException":
|
|
1114
|
+
case "com.amazonaws.rum#MalformedPolicyDocumentException":
|
|
1115
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "PolicySizeLimitExceededException":
|
|
1117
|
+
case "com.amazonaws.rum#PolicySizeLimitExceededException":
|
|
1118
|
+
throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
|
|
945
1119
|
default:
|
|
946
1120
|
const parsedBody = parsedOutput.body;
|
|
947
1121
|
return throwDefaultError({
|
|
@@ -995,6 +1169,58 @@ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
|
|
|
995
1169
|
});
|
|
996
1170
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
997
1171
|
}, "de_InternalServerExceptionRes");
|
|
1172
|
+
var de_InvalidPolicyRevisionIdExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1173
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1174
|
+
const data = parsedOutput.body;
|
|
1175
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1176
|
+
message: import_smithy_client.expectString
|
|
1177
|
+
});
|
|
1178
|
+
Object.assign(contents, doc);
|
|
1179
|
+
const exception = new InvalidPolicyRevisionIdException({
|
|
1180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
+
...contents
|
|
1182
|
+
});
|
|
1183
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1184
|
+
}, "de_InvalidPolicyRevisionIdExceptionRes");
|
|
1185
|
+
var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1186
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1187
|
+
const data = parsedOutput.body;
|
|
1188
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1189
|
+
message: import_smithy_client.expectString
|
|
1190
|
+
});
|
|
1191
|
+
Object.assign(contents, doc);
|
|
1192
|
+
const exception = new MalformedPolicyDocumentException({
|
|
1193
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1194
|
+
...contents
|
|
1195
|
+
});
|
|
1196
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1197
|
+
}, "de_MalformedPolicyDocumentExceptionRes");
|
|
1198
|
+
var de_PolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1199
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1200
|
+
const data = parsedOutput.body;
|
|
1201
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1202
|
+
message: import_smithy_client.expectString
|
|
1203
|
+
});
|
|
1204
|
+
Object.assign(contents, doc);
|
|
1205
|
+
const exception = new PolicyNotFoundException({
|
|
1206
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
|
+
...contents
|
|
1208
|
+
});
|
|
1209
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1210
|
+
}, "de_PolicyNotFoundExceptionRes");
|
|
1211
|
+
var de_PolicySizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1212
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1213
|
+
const data = parsedOutput.body;
|
|
1214
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1215
|
+
message: import_smithy_client.expectString
|
|
1216
|
+
});
|
|
1217
|
+
Object.assign(contents, doc);
|
|
1218
|
+
const exception = new PolicySizeLimitExceededException({
|
|
1219
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1220
|
+
...contents
|
|
1221
|
+
});
|
|
1222
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1223
|
+
}, "de_PolicySizeLimitExceededExceptionRes");
|
|
998
1224
|
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
999
1225
|
const contents = (0, import_smithy_client.map)({});
|
|
1000
1226
|
const data = parsedOutput.body;
|
|
@@ -1118,12 +1344,14 @@ var _DA = "DestinationArn";
|
|
|
1118
1344
|
var _MDI = "MetricDefinitionIds";
|
|
1119
1345
|
var _MR = "MaxResults";
|
|
1120
1346
|
var _NT = "NextToken";
|
|
1347
|
+
var _PRI = "PolicyRevisionId";
|
|
1121
1348
|
var _TK = "TagKeys";
|
|
1122
1349
|
var _d = "destination";
|
|
1123
1350
|
var _dA = "destinationArn";
|
|
1124
1351
|
var _mDI = "metricDefinitionIds";
|
|
1125
1352
|
var _mR = "maxResults";
|
|
1126
1353
|
var _nT = "nextToken";
|
|
1354
|
+
var _pRI = "policyRevisionId";
|
|
1127
1355
|
var _rAS = "retryAfterSeconds";
|
|
1128
1356
|
var _ra = "retry-after";
|
|
1129
1357
|
var _tK = "tagKeys";
|
|
@@ -1200,6 +1428,21 @@ var DeleteAppMonitorCommand = class extends import_smithy_client.Command.classBu
|
|
|
1200
1428
|
}
|
|
1201
1429
|
};
|
|
1202
1430
|
|
|
1431
|
+
// src/commands/DeleteResourcePolicyCommand.ts
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1436
|
+
return [
|
|
1437
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1438
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1439
|
+
];
|
|
1440
|
+
}).s("RUM", "DeleteResourcePolicy", {}).n("RUMClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
|
|
1441
|
+
static {
|
|
1442
|
+
__name(this, "DeleteResourcePolicyCommand");
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1203
1446
|
// src/commands/DeleteRumMetricsDestinationCommand.ts
|
|
1204
1447
|
|
|
1205
1448
|
|
|
@@ -1245,6 +1488,21 @@ var GetAppMonitorDataCommand = class extends import_smithy_client.Command.classB
|
|
|
1245
1488
|
}
|
|
1246
1489
|
};
|
|
1247
1490
|
|
|
1491
|
+
// src/commands/GetResourcePolicyCommand.ts
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1496
|
+
return [
|
|
1497
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1498
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1499
|
+
];
|
|
1500
|
+
}).s("RUM", "GetResourcePolicy", {}).n("RUMClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
|
|
1501
|
+
static {
|
|
1502
|
+
__name(this, "GetResourcePolicyCommand");
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1248
1506
|
// src/commands/ListAppMonitorsCommand.ts
|
|
1249
1507
|
|
|
1250
1508
|
|
|
@@ -1290,6 +1548,21 @@ var ListTagsForResourceCommand = class extends import_smithy_client.Command.clas
|
|
|
1290
1548
|
}
|
|
1291
1549
|
};
|
|
1292
1550
|
|
|
1551
|
+
// src/commands/PutResourcePolicyCommand.ts
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1556
|
+
return [
|
|
1557
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1558
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1559
|
+
];
|
|
1560
|
+
}).s("RUM", "PutResourcePolicy", {}).n("RUMClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
|
|
1561
|
+
static {
|
|
1562
|
+
__name(this, "PutResourcePolicyCommand");
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1293
1566
|
// src/commands/PutRumEventsCommand.ts
|
|
1294
1567
|
|
|
1295
1568
|
|
|
@@ -1387,12 +1660,15 @@ var commands = {
|
|
|
1387
1660
|
BatchGetRumMetricDefinitionsCommand,
|
|
1388
1661
|
CreateAppMonitorCommand,
|
|
1389
1662
|
DeleteAppMonitorCommand,
|
|
1663
|
+
DeleteResourcePolicyCommand,
|
|
1390
1664
|
DeleteRumMetricsDestinationCommand,
|
|
1391
1665
|
GetAppMonitorCommand,
|
|
1392
1666
|
GetAppMonitorDataCommand,
|
|
1667
|
+
GetResourcePolicyCommand,
|
|
1393
1668
|
ListAppMonitorsCommand,
|
|
1394
1669
|
ListRumMetricsDestinationsCommand,
|
|
1395
1670
|
ListTagsForResourceCommand,
|
|
1671
|
+
PutResourcePolicyCommand,
|
|
1396
1672
|
PutRumEventsCommand,
|
|
1397
1673
|
PutRumMetricsDestinationCommand,
|
|
1398
1674
|
TagResourceCommand,
|
|
@@ -1435,12 +1711,15 @@ var paginateListRumMetricsDestinations = (0, import_core.createPaginator)(RUMCli
|
|
|
1435
1711
|
BatchGetRumMetricDefinitionsCommand,
|
|
1436
1712
|
CreateAppMonitorCommand,
|
|
1437
1713
|
DeleteAppMonitorCommand,
|
|
1714
|
+
DeleteResourcePolicyCommand,
|
|
1438
1715
|
DeleteRumMetricsDestinationCommand,
|
|
1439
1716
|
GetAppMonitorCommand,
|
|
1440
1717
|
GetAppMonitorDataCommand,
|
|
1718
|
+
GetResourcePolicyCommand,
|
|
1441
1719
|
ListAppMonitorsCommand,
|
|
1442
1720
|
ListRumMetricsDestinationsCommand,
|
|
1443
1721
|
ListTagsForResourceCommand,
|
|
1722
|
+
PutResourcePolicyCommand,
|
|
1444
1723
|
PutRumEventsCommand,
|
|
1445
1724
|
PutRumMetricsDestinationCommand,
|
|
1446
1725
|
TagResourceCommand,
|
|
@@ -1461,6 +1740,10 @@ var paginateListRumMetricsDestinations = (0, import_core.createPaginator)(RUMCli
|
|
|
1461
1740
|
ResourceNotFoundException,
|
|
1462
1741
|
ServiceQuotaExceededException,
|
|
1463
1742
|
ThrottlingException,
|
|
1464
|
-
ValidationException
|
|
1743
|
+
ValidationException,
|
|
1744
|
+
InvalidPolicyRevisionIdException,
|
|
1745
|
+
PolicyNotFoundException,
|
|
1746
|
+
MalformedPolicyDocumentException,
|
|
1747
|
+
PolicySizeLimitExceededException
|
|
1465
1748
|
});
|
|
1466
1749
|
|
package/dist-es/RUM.js
CHANGED
|
@@ -4,12 +4,15 @@ import { BatchDeleteRumMetricDefinitionsCommand, } from "./commands/BatchDeleteR
|
|
|
4
4
|
import { BatchGetRumMetricDefinitionsCommand, } from "./commands/BatchGetRumMetricDefinitionsCommand";
|
|
5
5
|
import { CreateAppMonitorCommand, } from "./commands/CreateAppMonitorCommand";
|
|
6
6
|
import { DeleteAppMonitorCommand, } from "./commands/DeleteAppMonitorCommand";
|
|
7
|
+
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
7
8
|
import { DeleteRumMetricsDestinationCommand, } from "./commands/DeleteRumMetricsDestinationCommand";
|
|
8
9
|
import { GetAppMonitorCommand, } from "./commands/GetAppMonitorCommand";
|
|
9
10
|
import { GetAppMonitorDataCommand, } from "./commands/GetAppMonitorDataCommand";
|
|
11
|
+
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
10
12
|
import { ListAppMonitorsCommand, } from "./commands/ListAppMonitorsCommand";
|
|
11
13
|
import { ListRumMetricsDestinationsCommand, } from "./commands/ListRumMetricsDestinationsCommand";
|
|
12
14
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
15
|
+
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
13
16
|
import { PutRumEventsCommand, } from "./commands/PutRumEventsCommand";
|
|
14
17
|
import { PutRumMetricsDestinationCommand, } from "./commands/PutRumMetricsDestinationCommand";
|
|
15
18
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -23,12 +26,15 @@ const commands = {
|
|
|
23
26
|
BatchGetRumMetricDefinitionsCommand,
|
|
24
27
|
CreateAppMonitorCommand,
|
|
25
28
|
DeleteAppMonitorCommand,
|
|
29
|
+
DeleteResourcePolicyCommand,
|
|
26
30
|
DeleteRumMetricsDestinationCommand,
|
|
27
31
|
GetAppMonitorCommand,
|
|
28
32
|
GetAppMonitorDataCommand,
|
|
33
|
+
GetResourcePolicyCommand,
|
|
29
34
|
ListAppMonitorsCommand,
|
|
30
35
|
ListRumMetricsDestinationsCommand,
|
|
31
36
|
ListTagsForResourceCommand,
|
|
37
|
+
PutResourcePolicyCommand,
|
|
32
38
|
PutRumEventsCommand,
|
|
33
39
|
PutRumMetricsDestinationCommand,
|
|
34
40
|
TagResourceCommand,
|
|
@@ -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";
|
|
@@ -121,3 +121,51 @@ export class ValidationException extends __BaseException {
|
|
|
121
121
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
export class InvalidPolicyRevisionIdException extends __BaseException {
|
|
125
|
+
name = "InvalidPolicyRevisionIdException";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
constructor(opts) {
|
|
128
|
+
super({
|
|
129
|
+
name: "InvalidPolicyRevisionIdException",
|
|
130
|
+
$fault: "client",
|
|
131
|
+
...opts,
|
|
132
|
+
});
|
|
133
|
+
Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export class PolicyNotFoundException extends __BaseException {
|
|
137
|
+
name = "PolicyNotFoundException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "PolicyNotFoundException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export class MalformedPolicyDocumentException extends __BaseException {
|
|
149
|
+
name = "MalformedPolicyDocumentException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "MalformedPolicyDocumentException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
export class PolicySizeLimitExceededException extends __BaseException {
|
|
161
|
+
name = "PolicySizeLimitExceededException";
|
|
162
|
+
$fault = "client";
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "PolicySizeLimitExceededException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, PolicySizeLimitExceededException.prototype);
|
|
170
|
+
}
|
|
171
|
+
}
|