@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,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetResourcePolicyRequest, GetResourcePolicyResponse } 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 GetResourcePolicyCommand}.
14
+ */
15
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourcePolicyCommand}.
21
+ */
22
+ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const GetResourcePolicyCommand_base: {
25
+ new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Use this operation to retrieve information about a resource-based policy that is attached to 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, GetResourcePolicyCommand } from "@aws-sdk/client-rum"; // ES Modules import
35
+ * // const { RUMClient, GetResourcePolicyCommand } = require("@aws-sdk/client-rum"); // CommonJS import
36
+ * const client = new RUMClient(config);
37
+ * const input = { // GetResourcePolicyRequest
38
+ * Name: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetResourcePolicyCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetResourcePolicyResponse
43
+ * // PolicyDocument: "STRING_VALUE",
44
+ * // PolicyRevisionId: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
50
+ * @returns {@link GetResourcePolicyCommandOutput}
51
+ * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
52
+ * @see {@link GetResourcePolicyCommandOutput} 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 PolicyNotFoundException} (client fault)
65
+ * <p>The resource-based policy doesn't exist on this app monitor.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>Resource not found.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was throttled because of quota limits.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>One of the arguments for the request is not valid.</p>
75
+ *
76
+ * @throws {@link RUMServiceException}
77
+ * <p>Base exception class for all service exceptions from RUM service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: GetResourcePolicyRequest;
86
+ output: GetResourcePolicyResponse;
87
+ };
88
+ sdk: {
89
+ input: GetResourcePolicyCommandInput;
90
+ output: GetResourcePolicyCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { PutResourcePolicyRequest, PutResourcePolicyResponse } 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 PutResourcePolicyCommand}.
14
+ */
15
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutResourcePolicyCommand}.
21
+ */
22
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const PutResourcePolicyCommand_base: {
25
+ new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can
31
+ * have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html">Using resource-based policies with CloudWatch RUM</a>.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { RUMClient, PutResourcePolicyCommand } from "@aws-sdk/client-rum"; // ES Modules import
36
+ * // const { RUMClient, PutResourcePolicyCommand } = require("@aws-sdk/client-rum"); // CommonJS import
37
+ * const client = new RUMClient(config);
38
+ * const input = { // PutResourcePolicyRequest
39
+ * Name: "STRING_VALUE", // required
40
+ * PolicyDocument: "STRING_VALUE", // required
41
+ * PolicyRevisionId: "STRING_VALUE",
42
+ * };
43
+ * const command = new PutResourcePolicyCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // PutResourcePolicyResponse
46
+ * // PolicyDocument: "STRING_VALUE",
47
+ * // PolicyRevisionId: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
53
+ * @returns {@link PutResourcePolicyCommandOutput}
54
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
55
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
56
+ * @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You don't have sufficient permissions to perform this action.</p>
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>This operation attempted to create a resource that already exists.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>Internal service exception.</p>
66
+ *
67
+ * @throws {@link InvalidPolicyRevisionIdException} (client fault)
68
+ * <p>The policy revision ID that you provided doeesn't match the latest policy revision ID.</p>
69
+ *
70
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
71
+ * <p>The policy document that you specified is not formatted correctly.</p>
72
+ *
73
+ * @throws {@link PolicySizeLimitExceededException} (client fault)
74
+ * <p>The policy document is too large. The limit is 4 KB.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>Resource not found.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The request was throttled because of quota limits.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>One of the arguments for the request is not valid.</p>
84
+ *
85
+ * @throws {@link RUMServiceException}
86
+ * <p>Base exception class for all service exceptions from RUM service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: PutResourcePolicyRequest;
95
+ output: PutResourcePolicyResponse;
96
+ };
97
+ sdk: {
98
+ input: PutResourcePolicyCommandInput;
99
+ output: PutResourcePolicyCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -58,6 +58,7 @@ declare const PutRumEventsCommand_base: {
58
58
  * details: "STRING_VALUE", // required
59
59
  * },
60
60
  * ],
61
+ * Alias: "STRING_VALUE",
61
62
  * };
62
63
  * const command = new PutRumEventsCommand(input);
63
64
  * const response = await client.send(command);
@@ -47,6 +47,9 @@ declare const UpdateAppMonitorCommand_base: {
47
47
  * const input = { // UpdateAppMonitorRequest
48
48
  * Name: "STRING_VALUE", // required
49
49
  * Domain: "STRING_VALUE",
50
+ * DomainList: [ // AppMonitorDomainList
51
+ * "STRING_VALUE",
52
+ * ],
50
53
  * AppMonitorConfiguration: { // AppMonitorConfiguration
51
54
  * IdentityPoolId: "STRING_VALUE",
52
55
  * ExcludedPages: [ // Pages
@@ -70,6 +73,12 @@ declare const UpdateAppMonitorCommand_base: {
70
73
  * CustomEvents: { // CustomEvents
71
74
  * Status: "STRING_VALUE",
72
75
  * },
76
+ * DeobfuscationConfiguration: { // DeobfuscationConfiguration
77
+ * JavaScriptSourceMaps: { // JavaScriptSourceMaps
78
+ * Status: "STRING_VALUE", // required
79
+ * S3Uri: "STRING_VALUE",
80
+ * },
81
+ * },
73
82
  * };
74
83
  * const command = new UpdateAppMonitorCommand(input);
75
84
  * const response = await client.send(command);
@@ -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";
@@ -192,6 +192,55 @@ export interface DataStorage {
192
192
  */
193
193
  CwLog?: CwLog | undefined;
194
194
  }
195
+ /**
196
+ * @public
197
+ * @enum
198
+ */
199
+ export declare const DeobfuscationStatus: {
200
+ readonly DISABLED: "DISABLED";
201
+ readonly ENABLED: "ENABLED";
202
+ };
203
+ /**
204
+ * @public
205
+ */
206
+ export type DeobfuscationStatus = (typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus];
207
+ /**
208
+ * <p>
209
+ * A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
210
+ * </p>
211
+ * @public
212
+ */
213
+ export interface JavaScriptSourceMaps {
214
+ /**
215
+ * <p>
216
+ * Specifies whether JavaScript error stack traces should be unminified for this app monitor. The default is for JavaScript error stack trace unminification to be <code>DISABLED</code>.
217
+ * </p>
218
+ * @public
219
+ */
220
+ Status: DeobfuscationStatus | undefined;
221
+ /**
222
+ * <p>
223
+ * The S3Uri of the bucket or folder that stores the source map files. It is required if status is ENABLED.
224
+ * </p>
225
+ * @public
226
+ */
227
+ S3Uri?: string | undefined;
228
+ }
229
+ /**
230
+ * <p>
231
+ * A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
232
+ * </p>
233
+ * @public
234
+ */
235
+ export interface DeobfuscationConfiguration {
236
+ /**
237
+ * <p>
238
+ * A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
239
+ * </p>
240
+ * @public
241
+ */
242
+ JavaScriptSourceMaps?: JavaScriptSourceMaps | undefined;
243
+ }
195
244
  /**
196
245
  * @public
197
246
  * @enum
@@ -222,6 +271,13 @@ export interface AppMonitor {
222
271
  * @public
223
272
  */
224
273
  Domain?: string | undefined;
274
+ /**
275
+ * <p>
276
+ * List the domain names for which your application has administrative authority.
277
+ * </p>
278
+ * @public
279
+ */
280
+ DomainList?: string[] | undefined;
225
281
  /**
226
282
  * <p>The unique ID of this app monitor.</p>
227
283
  * @public
@@ -266,6 +322,13 @@ export interface AppMonitor {
266
322
  * @public
267
323
  */
268
324
  CustomEvents?: CustomEvents | undefined;
325
+ /**
326
+ * <p>
327
+ * A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
328
+ * </p>
329
+ * @public
330
+ */
331
+ DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined;
269
332
  }
270
333
  /**
271
334
  * <p>A structure that contains information about the RUM app monitor.</p>
@@ -1100,7 +1163,14 @@ export interface CreateAppMonitorRequest {
1100
1163
  * <p>The top-level internet domain name for which your application has administrative authority.</p>
1101
1164
  * @public
1102
1165
  */
1103
- Domain: string | undefined;
1166
+ Domain?: string | undefined;
1167
+ /**
1168
+ * <p>
1169
+ * List the domain names for which your application has administrative authority. The <code>CreateAppMonitor</code> requires either the domain or the domain list.
1170
+ * </p>
1171
+ * @public
1172
+ */
1173
+ DomainList?: string[] | undefined;
1104
1174
  /**
1105
1175
  * <p>Assigns one or more tags (key-value pairs) to the app monitor.</p>
1106
1176
  * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
@@ -1140,6 +1210,13 @@ export interface CreateAppMonitorRequest {
1140
1210
  * @public
1141
1211
  */
1142
1212
  CustomEvents?: CustomEvents | undefined;
1213
+ /**
1214
+ * <p>
1215
+ * A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
1216
+ * </p>
1217
+ * @public
1218
+ */
1219
+ DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined;
1143
1220
  }
1144
1221
  /**
1145
1222
  * @public
@@ -1166,6 +1243,56 @@ export interface DeleteAppMonitorRequest {
1166
1243
  */
1167
1244
  export interface DeleteAppMonitorResponse {
1168
1245
  }
1246
+ /**
1247
+ * @public
1248
+ */
1249
+ export interface DeleteResourcePolicyRequest {
1250
+ /**
1251
+ * <p>The app monitor that you want to remove the resource policy from.</p>
1252
+ * @public
1253
+ */
1254
+ Name: string | undefined;
1255
+ /**
1256
+ * <p>Specifies a specific policy revision to delete. Provide a <code>PolicyRevisionId</code> to ensure an atomic delete operation.
1257
+ * If the revision ID that you provide doesn't match the latest policy revision ID, the request will be rejected with an <code>InvalidPolicyRevisionIdException</code> error.</p>
1258
+ * @public
1259
+ */
1260
+ PolicyRevisionId?: string | undefined;
1261
+ }
1262
+ /**
1263
+ * @public
1264
+ */
1265
+ export interface DeleteResourcePolicyResponse {
1266
+ /**
1267
+ * <p>The revision ID of the policy that was removed, if it had one.</p>
1268
+ * @public
1269
+ */
1270
+ PolicyRevisionId?: string | undefined;
1271
+ }
1272
+ /**
1273
+ * <p>The policy revision ID that you provided doeesn't match the latest policy revision ID.</p>
1274
+ * @public
1275
+ */
1276
+ export declare class InvalidPolicyRevisionIdException extends __BaseException {
1277
+ readonly name: "InvalidPolicyRevisionIdException";
1278
+ readonly $fault: "client";
1279
+ /**
1280
+ * @internal
1281
+ */
1282
+ constructor(opts: __ExceptionOptionType<InvalidPolicyRevisionIdException, __BaseException>);
1283
+ }
1284
+ /**
1285
+ * <p>The resource-based policy doesn't exist on this app monitor.</p>
1286
+ * @public
1287
+ */
1288
+ export declare class PolicyNotFoundException extends __BaseException {
1289
+ readonly name: "PolicyNotFoundException";
1290
+ readonly $fault: "client";
1291
+ /**
1292
+ * @internal
1293
+ */
1294
+ constructor(opts: __ExceptionOptionType<PolicyNotFoundException, __BaseException>);
1295
+ }
1169
1296
  /**
1170
1297
  * @public
1171
1298
  */
@@ -1308,6 +1435,31 @@ export interface GetAppMonitorDataResponse {
1308
1435
  */
1309
1436
  NextToken?: string | undefined;
1310
1437
  }
1438
+ /**
1439
+ * @public
1440
+ */
1441
+ export interface GetResourcePolicyRequest {
1442
+ /**
1443
+ * <p>The name of the app monitor that is associated with the resource-based policy that you want to view.</p>
1444
+ * @public
1445
+ */
1446
+ Name: string | undefined;
1447
+ }
1448
+ /**
1449
+ * @public
1450
+ */
1451
+ export interface GetResourcePolicyResponse {
1452
+ /**
1453
+ * <p>The JSON policy document that you requested.</p>
1454
+ * @public
1455
+ */
1456
+ PolicyDocument?: string | undefined;
1457
+ /**
1458
+ * <p>The revision ID information for this version of the policy document that you requested.</p>
1459
+ * @public
1460
+ */
1461
+ PolicyRevisionId?: string | undefined;
1462
+ }
1311
1463
  /**
1312
1464
  * @public
1313
1465
  */
@@ -1435,6 +1587,69 @@ export interface ListRumMetricsDestinationsResponse {
1435
1587
  */
1436
1588
  NextToken?: string | undefined;
1437
1589
  }
1590
+ /**
1591
+ * <p>The policy document that you specified is not formatted correctly.</p>
1592
+ * @public
1593
+ */
1594
+ export declare class MalformedPolicyDocumentException extends __BaseException {
1595
+ readonly name: "MalformedPolicyDocumentException";
1596
+ readonly $fault: "client";
1597
+ /**
1598
+ * @internal
1599
+ */
1600
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
1601
+ }
1602
+ /**
1603
+ * <p>The policy document is too large. The limit is 4 KB.</p>
1604
+ * @public
1605
+ */
1606
+ export declare class PolicySizeLimitExceededException extends __BaseException {
1607
+ readonly name: "PolicySizeLimitExceededException";
1608
+ readonly $fault: "client";
1609
+ /**
1610
+ * @internal
1611
+ */
1612
+ constructor(opts: __ExceptionOptionType<PolicySizeLimitExceededException, __BaseException>);
1613
+ }
1614
+ /**
1615
+ * @public
1616
+ */
1617
+ export interface PutResourcePolicyRequest {
1618
+ /**
1619
+ * <p>The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use
1620
+ * the <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_ListAppMonitors.html">ListAppMonitors</a> operation.</p>
1621
+ * @public
1622
+ */
1623
+ Name: string | undefined;
1624
+ /**
1625
+ * <p>The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax
1626
+ * for this policy, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html">Using resource-based policies with CloudWatch RUM</a>.</p>
1627
+ * @public
1628
+ */
1629
+ PolicyDocument: string | undefined;
1630
+ /**
1631
+ * <p>A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.</p>
1632
+ * <p>When you assign a policy revision ID, then later requests about that policy will be rejected with an <code>InvalidPolicyRevisionIdException</code> error
1633
+ * if they don't provide the correct current revision ID.</p>
1634
+ * @public
1635
+ */
1636
+ PolicyRevisionId?: string | undefined;
1637
+ }
1638
+ /**
1639
+ * @public
1640
+ */
1641
+ export interface PutResourcePolicyResponse {
1642
+ /**
1643
+ * <p>The JSON policy document that you specified.</p>
1644
+ * @public
1645
+ */
1646
+ PolicyDocument?: string | undefined;
1647
+ /**
1648
+ * <p>The policy revision ID information that you specified.</p>
1649
+ * @public
1650
+ */
1651
+ PolicyRevisionId?: string | undefined;
1652
+ }
1438
1653
  /**
1439
1654
  * @public
1440
1655
  */
@@ -1492,6 +1707,13 @@ export interface UpdateAppMonitorRequest {
1492
1707
  * @public
1493
1708
  */
1494
1709
  Domain?: string | undefined;
1710
+ /**
1711
+ * <p>
1712
+ * List the domain names for which your application has administrative authority. The <code>UpdateAppMonitor</code> allows either the domain or the domain list.
1713
+ * </p>
1714
+ * @public
1715
+ */
1716
+ DomainList?: string[] | undefined;
1495
1717
  /**
1496
1718
  * <p>A structure that contains much of the configuration data for the app monitor. If you are using
1497
1719
  * Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the
@@ -1518,6 +1740,13 @@ export interface UpdateAppMonitorRequest {
1518
1740
  * @public
1519
1741
  */
1520
1742
  CustomEvents?: CustomEvents | undefined;
1743
+ /**
1744
+ * <p>
1745
+ * A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
1746
+ * </p>
1747
+ * @public
1748
+ */
1749
+ DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined;
1521
1750
  }
1522
1751
  /**
1523
1752
  * @public
@@ -1670,6 +1899,12 @@ export interface PutRumEventsRequest {
1670
1899
  * @public
1671
1900
  */
1672
1901
  RumEvents: RumEvent[] | undefined;
1902
+ /**
1903
+ * <p>If the app monitor uses a resource-based policy that requires <code>PutRumEvents</code> requests to specify a certain alias,
1904
+ * specify that alias here. This alias will be compared to the <code>rum:alias</code> context key in the resource-based policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html">Using resource-based policies with CloudWatch RUM</a>.</p>
1905
+ * @public
1906
+ */
1907
+ Alias?: string | undefined;
1673
1908
  }
1674
1909
  /**
1675
1910
  * @public
@@ -5,12 +5,15 @@ import { BatchDeleteRumMetricDefinitionsCommandInput, BatchDeleteRumMetricDefini
5
5
  import { BatchGetRumMetricDefinitionsCommandInput, BatchGetRumMetricDefinitionsCommandOutput } from "../commands/BatchGetRumMetricDefinitionsCommand";
6
6
  import { CreateAppMonitorCommandInput, CreateAppMonitorCommandOutput } from "../commands/CreateAppMonitorCommand";
7
7
  import { DeleteAppMonitorCommandInput, DeleteAppMonitorCommandOutput } from "../commands/DeleteAppMonitorCommand";
8
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand";
8
9
  import { DeleteRumMetricsDestinationCommandInput, DeleteRumMetricsDestinationCommandOutput } from "../commands/DeleteRumMetricsDestinationCommand";
9
10
  import { GetAppMonitorCommandInput, GetAppMonitorCommandOutput } from "../commands/GetAppMonitorCommand";
10
11
  import { GetAppMonitorDataCommandInput, GetAppMonitorDataCommandOutput } from "../commands/GetAppMonitorDataCommand";
12
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "../commands/GetResourcePolicyCommand";
11
13
  import { ListAppMonitorsCommandInput, ListAppMonitorsCommandOutput } from "../commands/ListAppMonitorsCommand";
12
14
  import { ListRumMetricsDestinationsCommandInput, ListRumMetricsDestinationsCommandOutput } from "../commands/ListRumMetricsDestinationsCommand";
13
15
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
16
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
14
17
  import { PutRumEventsCommandInput, PutRumEventsCommandOutput } from "../commands/PutRumEventsCommand";
15
18
  import { PutRumMetricsDestinationCommandInput, PutRumMetricsDestinationCommandOutput } from "../commands/PutRumMetricsDestinationCommand";
16
19
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -37,6 +40,10 @@ export declare const se_CreateAppMonitorCommand: (input: CreateAppMonitorCommand
37
40
  * serializeAws_restJson1DeleteAppMonitorCommand
38
41
  */
39
42
  export declare const se_DeleteAppMonitorCommand: (input: DeleteAppMonitorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
+ /**
44
+ * serializeAws_restJson1DeleteResourcePolicyCommand
45
+ */
46
+ export declare const se_DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
47
  /**
41
48
  * serializeAws_restJson1DeleteRumMetricsDestinationCommand
42
49
  */
@@ -49,6 +56,10 @@ export declare const se_GetAppMonitorCommand: (input: GetAppMonitorCommandInput,
49
56
  * serializeAws_restJson1GetAppMonitorDataCommand
50
57
  */
51
58
  export declare const se_GetAppMonitorDataCommand: (input: GetAppMonitorDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
+ /**
60
+ * serializeAws_restJson1GetResourcePolicyCommand
61
+ */
62
+ export declare const se_GetResourcePolicyCommand: (input: GetResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
63
  /**
53
64
  * serializeAws_restJson1ListAppMonitorsCommand
54
65
  */
@@ -61,6 +72,10 @@ export declare const se_ListRumMetricsDestinationsCommand: (input: ListRumMetric
61
72
  * serializeAws_restJson1ListTagsForResourceCommand
62
73
  */
63
74
  export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
+ /**
76
+ * serializeAws_restJson1PutResourcePolicyCommand
77
+ */
78
+ export declare const se_PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
64
79
  /**
65
80
  * serializeAws_restJson1PutRumEventsCommand
66
81
  */
@@ -105,6 +120,10 @@ export declare const de_CreateAppMonitorCommand: (output: __HttpResponse, contex
105
120
  * deserializeAws_restJson1DeleteAppMonitorCommand
106
121
  */
107
122
  export declare const de_DeleteAppMonitorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAppMonitorCommandOutput>;
123
+ /**
124
+ * deserializeAws_restJson1DeleteResourcePolicyCommand
125
+ */
126
+ export declare const de_DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourcePolicyCommandOutput>;
108
127
  /**
109
128
  * deserializeAws_restJson1DeleteRumMetricsDestinationCommand
110
129
  */
@@ -117,6 +136,10 @@ export declare const de_GetAppMonitorCommand: (output: __HttpResponse, context:
117
136
  * deserializeAws_restJson1GetAppMonitorDataCommand
118
137
  */
119
138
  export declare const de_GetAppMonitorDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAppMonitorDataCommandOutput>;
139
+ /**
140
+ * deserializeAws_restJson1GetResourcePolicyCommand
141
+ */
142
+ export declare const de_GetResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourcePolicyCommandOutput>;
120
143
  /**
121
144
  * deserializeAws_restJson1ListAppMonitorsCommand
122
145
  */
@@ -129,6 +152,10 @@ export declare const de_ListRumMetricsDestinationsCommand: (output: __HttpRespon
129
152
  * deserializeAws_restJson1ListTagsForResourceCommand
130
153
  */
131
154
  export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
155
+ /**
156
+ * deserializeAws_restJson1PutResourcePolicyCommand
157
+ */
158
+ export declare const de_PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
132
159
  /**
133
160
  * deserializeAws_restJson1PutRumEventsCommand
134
161
  */