@aws-sdk/client-rum 3.44.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 (108) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +211 -0
  4. package/dist-cjs/RUM.js +157 -0
  5. package/dist-cjs/RUMClient.js +35 -0
  6. package/dist-cjs/commands/CreateAppMonitorCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteAppMonitorCommand.js +36 -0
  8. package/dist-cjs/commands/GetAppMonitorCommand.js +36 -0
  9. package/dist-cjs/commands/GetAppMonitorDataCommand.js +36 -0
  10. package/dist-cjs/commands/ListAppMonitorsCommand.js +36 -0
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  12. package/dist-cjs/commands/PutRumEventsCommand.js +36 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  15. package/dist-cjs/commands/UpdateAppMonitorCommand.js +36 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/endpoints.js +130 -0
  18. package/dist-cjs/index.js +8 -0
  19. package/dist-cjs/models/index.js +4 -0
  20. package/dist-cjs/models/models_0.js +237 -0
  21. package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +35 -0
  22. package/dist-cjs/pagination/Interfaces.js +2 -0
  23. package/dist-cjs/pagination/ListAppMonitorsPaginator.js +35 -0
  24. package/dist-cjs/pagination/index.js +6 -0
  25. package/dist-cjs/protocols/Aws_restJson1.js +1502 -0
  26. package/dist-cjs/runtimeConfig.browser.js +40 -0
  27. package/dist-cjs/runtimeConfig.js +44 -0
  28. package/dist-cjs/runtimeConfig.native.js +16 -0
  29. package/dist-cjs/runtimeConfig.shared.js +17 -0
  30. package/dist-es/RUM.js +160 -0
  31. package/dist-es/RUMClient.js +37 -0
  32. package/dist-es/commands/CreateAppMonitorCommand.js +39 -0
  33. package/dist-es/commands/DeleteAppMonitorCommand.js +39 -0
  34. package/dist-es/commands/GetAppMonitorCommand.js +39 -0
  35. package/dist-es/commands/GetAppMonitorDataCommand.js +39 -0
  36. package/dist-es/commands/ListAppMonitorsCommand.js +39 -0
  37. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  38. package/dist-es/commands/PutRumEventsCommand.js +39 -0
  39. package/dist-es/commands/TagResourceCommand.js +39 -0
  40. package/dist-es/commands/UntagResourceCommand.js +39 -0
  41. package/dist-es/commands/UpdateAppMonitorCommand.js +39 -0
  42. package/dist-es/commands/index.js +10 -0
  43. package/dist-es/endpoints.js +126 -0
  44. package/dist-es/index.js +5 -0
  45. package/dist-es/models/index.js +1 -0
  46. package/dist-es/models/models_0.js +161 -0
  47. package/dist-es/pagination/GetAppMonitorDataPaginator.js +74 -0
  48. package/dist-es/pagination/Interfaces.js +1 -0
  49. package/dist-es/pagination/ListAppMonitorsPaginator.js +74 -0
  50. package/dist-es/pagination/index.js +3 -0
  51. package/dist-es/protocols/Aws_restJson1.js +1652 -0
  52. package/dist-es/runtimeConfig.browser.js +17 -0
  53. package/dist-es/runtimeConfig.js +21 -0
  54. package/dist-es/runtimeConfig.native.js +8 -0
  55. package/dist-es/runtimeConfig.shared.js +13 -0
  56. package/dist-types/RUM.d.ts +120 -0
  57. package/dist-types/RUMClient.d.ts +158 -0
  58. package/dist-types/commands/CreateAppMonitorCommand.d.ts +43 -0
  59. package/dist-types/commands/DeleteAppMonitorCommand.d.ts +35 -0
  60. package/dist-types/commands/GetAppMonitorCommand.d.ts +35 -0
  61. package/dist-types/commands/GetAppMonitorDataCommand.d.ts +36 -0
  62. package/dist-types/commands/ListAppMonitorsCommand.d.ts +35 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  64. package/dist-types/commands/PutRumEventsCommand.d.ts +38 -0
  65. package/dist-types/commands/TagResourceCommand.d.ts +48 -0
  66. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  67. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +45 -0
  68. package/dist-types/commands/index.d.ts +10 -0
  69. package/dist-types/endpoints.d.ts +2 -0
  70. package/dist-types/index.d.ts +5 -0
  71. package/dist-types/models/index.d.ts +1 -0
  72. package/dist-types/models/models_0.d.ts +824 -0
  73. package/dist-types/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
  74. package/dist-types/pagination/Interfaces.d.ts +6 -0
  75. package/dist-types/pagination/ListAppMonitorsPaginator.d.ts +4 -0
  76. package/dist-types/pagination/index.d.ts +3 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
  78. package/dist-types/runtimeConfig.browser.d.ts +39 -0
  79. package/dist-types/runtimeConfig.d.ts +39 -0
  80. package/dist-types/runtimeConfig.native.d.ts +38 -0
  81. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  82. package/dist-types/ts3.4/RUM.d.ts +55 -0
  83. package/dist-types/ts3.4/RUMClient.d.ts +81 -0
  84. package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  95. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  96. package/dist-types/ts3.4/index.d.ts +5 -0
  97. package/dist-types/ts3.4/models/index.d.ts +1 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +455 -0
  99. package/dist-types/ts3.4/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
  100. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  101. package/dist-types/ts3.4/pagination/ListAppMonitorsPaginator.d.ts +4 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  103. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -0
  104. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  105. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  106. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  107. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  108. package/package.json +94 -0
@@ -0,0 +1,48 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently,
11
+ * the only resources that
12
+ * can be tagged app monitors.</p>
13
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
14
+ * permissions by granting a user
15
+ * permission to access or change only resources with certain tag values.</p>
16
+ * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
17
+ * <p>You can use the <code>TagResource</code> action with a resource that already has tags.
18
+ * If you specify a new tag key for the resource,
19
+ * this tag is appended to the list of tags associated
20
+ * with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces
21
+ * the previous value for that tag.</p>
22
+ * <p>You can associate as many as 50 tags with a resource.</p>
23
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
24
+ * @example
25
+ * Use a bare-bones client and the command you need to make an API call.
26
+ * ```javascript
27
+ * import { RUMClient, TagResourceCommand } from "@aws-sdk/client-rum"; // ES Modules import
28
+ * // const { RUMClient, TagResourceCommand } = require("@aws-sdk/client-rum"); // CommonJS import
29
+ * const client = new RUMClient(config);
30
+ * const command = new TagResourceCommand(input);
31
+ * const response = await client.send(command);
32
+ * ```
33
+ *
34
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
35
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
36
+ * @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
37
+ *
38
+ */
39
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, RUMClientResolvedConfig> {
40
+ readonly input: TagResourceCommandInput;
41
+ constructor(input: TagResourceCommandInput);
42
+ /**
43
+ * @internal
44
+ */
45
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
46
+ private serialize;
47
+ private deserialize;
48
+ }
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Removes one or more tags from the specified resource.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { RUMClient, UntagResourceCommand } from "@aws-sdk/client-rum"; // ES Modules import
15
+ * // const { RUMClient, UntagResourceCommand } = require("@aws-sdk/client-rum"); // CommonJS import
16
+ * const client = new RUMClient(config);
17
+ * const command = new UntagResourceCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
22
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
23
+ * @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, RUMClientResolvedConfig> {
27
+ readonly input: UntagResourceCommandInput;
28
+ constructor(input: UntagResourceCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,45 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UpdateAppMonitorRequest, UpdateAppMonitorResponse } from "../models/models_0";
4
+ import { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient";
5
+ export interface UpdateAppMonitorCommandInput extends UpdateAppMonitorRequest {
6
+ }
7
+ export interface UpdateAppMonitorCommandOutput extends UpdateAppMonitorResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor
11
+ * configuration that you specify in this operation are changed. For any parameters that you omit, the existing
12
+ * values are kept.</p>
13
+ * <p>You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use
14
+ * <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
15
+ * <p>To create a new app monitor, use <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_CreateAppMonitor.html">CreateAppMonitor</a>.</p>
16
+ * <p>After you update an app monitor, sign in to the CloudWatch RUM console to get
17
+ * the updated JavaScript code snippet to add to your web application. For more information, see
18
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html">How do I find a code snippet
19
+ * that I've already generated?</a>
20
+ * </p>
21
+ * @example
22
+ * Use a bare-bones client and the command you need to make an API call.
23
+ * ```javascript
24
+ * import { RUMClient, UpdateAppMonitorCommand } from "@aws-sdk/client-rum"; // ES Modules import
25
+ * // const { RUMClient, UpdateAppMonitorCommand } = require("@aws-sdk/client-rum"); // CommonJS import
26
+ * const client = new RUMClient(config);
27
+ * const command = new UpdateAppMonitorCommand(input);
28
+ * const response = await client.send(command);
29
+ * ```
30
+ *
31
+ * @see {@link UpdateAppMonitorCommandInput} for command's `input` shape.
32
+ * @see {@link UpdateAppMonitorCommandOutput} for command's `response` shape.
33
+ * @see {@link RUMClientResolvedConfig | config} for RUMClient's `config` shape.
34
+ *
35
+ */
36
+ export declare class UpdateAppMonitorCommand extends $Command<UpdateAppMonitorCommandInput, UpdateAppMonitorCommandOutput, RUMClientResolvedConfig> {
37
+ readonly input: UpdateAppMonitorCommandInput;
38
+ constructor(input: UpdateAppMonitorCommandInput);
39
+ /**
40
+ * @internal
41
+ */
42
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RUMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAppMonitorCommandInput, UpdateAppMonitorCommandOutput>;
43
+ private serialize;
44
+ private deserialize;
45
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./CreateAppMonitorCommand";
2
+ export * from "./DeleteAppMonitorCommand";
3
+ export * from "./GetAppMonitorCommand";
4
+ export * from "./GetAppMonitorDataCommand";
5
+ export * from "./ListAppMonitorsCommand";
6
+ export * from "./ListTagsForResourceCommand";
7
+ export * from "./PutRumEventsCommand";
8
+ export * from "./TagResourceCommand";
9
+ export * from "./UntagResourceCommand";
10
+ export * from "./UpdateAppMonitorCommand";
@@ -0,0 +1,2 @@
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -0,0 +1,5 @@
1
+ export * from "./RUM";
2
+ export * from "./RUMClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1 @@
1
+ export * from "./models_0";