@aws-sdk/client-rum 3.190.0 → 3.193.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 (129) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/RUM.js +105 -0
  4. package/dist-cjs/RUMClient.js +11 -8
  5. package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +46 -0
  6. package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +46 -0
  7. package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +46 -0
  8. package/dist-cjs/commands/CreateAppMonitorCommand.js +10 -0
  9. package/dist-cjs/commands/DeleteAppMonitorCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +46 -0
  11. package/dist-cjs/commands/GetAppMonitorCommand.js +10 -0
  12. package/dist-cjs/commands/GetAppMonitorDataCommand.js +10 -0
  13. package/dist-cjs/commands/ListAppMonitorsCommand.js +10 -0
  14. package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  16. package/dist-cjs/commands/PutRumEventsCommand.js +10 -0
  17. package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +46 -0
  18. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  19. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  20. package/dist-cjs/commands/UpdateAppMonitorCommand.js +10 -0
  21. package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +46 -0
  22. package/dist-cjs/commands/index.js +7 -0
  23. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  24. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  25. package/dist-cjs/endpoint/ruleset.js +318 -0
  26. package/dist-cjs/models/models_0.js +98 -16
  27. package/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +36 -0
  28. package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +36 -0
  29. package/dist-cjs/pagination/index.js +2 -0
  30. package/dist-cjs/protocols/Aws_restJson1.js +675 -17
  31. package/dist-cjs/runtimeConfig.shared.js +3 -3
  32. package/dist-es/RUM.js +105 -0
  33. package/dist-es/RUMClient.js +12 -9
  34. package/dist-es/commands/BatchCreateRumMetricDefinitionsCommand.js +42 -0
  35. package/dist-es/commands/BatchDeleteRumMetricDefinitionsCommand.js +42 -0
  36. package/dist-es/commands/BatchGetRumMetricDefinitionsCommand.js +42 -0
  37. package/dist-es/commands/CreateAppMonitorCommand.js +10 -0
  38. package/dist-es/commands/DeleteAppMonitorCommand.js +10 -0
  39. package/dist-es/commands/DeleteRumMetricsDestinationCommand.js +42 -0
  40. package/dist-es/commands/GetAppMonitorCommand.js +10 -0
  41. package/dist-es/commands/GetAppMonitorDataCommand.js +10 -0
  42. package/dist-es/commands/ListAppMonitorsCommand.js +10 -0
  43. package/dist-es/commands/ListRumMetricsDestinationsCommand.js +42 -0
  44. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  45. package/dist-es/commands/PutRumEventsCommand.js +10 -0
  46. package/dist-es/commands/PutRumMetricsDestinationCommand.js +42 -0
  47. package/dist-es/commands/TagResourceCommand.js +10 -0
  48. package/dist-es/commands/UntagResourceCommand.js +10 -0
  49. package/dist-es/commands/UpdateAppMonitorCommand.js +10 -0
  50. package/dist-es/commands/UpdateRumMetricDefinitionCommand.js +42 -0
  51. package/dist-es/commands/index.js +7 -0
  52. package/dist-es/endpoint/EndpointParameters.js +8 -0
  53. package/dist-es/endpoint/endpointResolver.js +8 -0
  54. package/dist-es/endpoint/ruleset.js +315 -0
  55. package/dist-es/models/models_0.js +76 -14
  56. package/dist-es/pagination/BatchGetRumMetricDefinitionsPaginator.js +32 -0
  57. package/dist-es/pagination/ListRumMetricsDestinationsPaginator.js +32 -0
  58. package/dist-es/pagination/index.js +2 -0
  59. package/dist-es/protocols/Aws_restJson1.js +657 -13
  60. package/dist-es/runtimeConfig.shared.js +2 -2
  61. package/dist-types/RUM.d.ts +83 -0
  62. package/dist-types/RUMClient.d.ts +15 -11
  63. package/dist-types/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +60 -0
  64. package/dist-types/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +42 -0
  65. package/dist-types/commands/BatchGetRumMetricDefinitionsCommand.d.ts +37 -0
  66. package/dist-types/commands/CreateAppMonitorCommand.d.ts +2 -0
  67. package/dist-types/commands/DeleteAppMonitorCommand.d.ts +2 -0
  68. package/dist-types/commands/DeleteRumMetricsDestinationCommand.d.ts +38 -0
  69. package/dist-types/commands/GetAppMonitorCommand.d.ts +2 -0
  70. package/dist-types/commands/GetAppMonitorDataCommand.d.ts +2 -0
  71. package/dist-types/commands/ListAppMonitorsCommand.d.ts +2 -0
  72. package/dist-types/commands/ListRumMetricsDestinationsCommand.d.ts +39 -0
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  74. package/dist-types/commands/PutRumEventsCommand.d.ts +2 -0
  75. package/dist-types/commands/PutRumMetricsDestinationCommand.d.ts +39 -0
  76. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  77. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  78. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +2 -0
  79. package/dist-types/commands/UpdateRumMetricDefinitionCommand.d.ts +38 -0
  80. package/dist-types/commands/index.d.ts +7 -0
  81. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  82. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  83. package/dist-types/endpoint/ruleset.d.ts +2 -0
  84. package/dist-types/models/models_0.d.ts +719 -57
  85. package/dist-types/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +4 -0
  86. package/dist-types/pagination/ListRumMetricsDestinationsPaginator.d.ts +4 -0
  87. package/dist-types/pagination/index.d.ts +2 -0
  88. package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
  89. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  90. package/dist-types/runtimeConfig.d.ts +4 -2
  91. package/dist-types/runtimeConfig.native.d.ts +4 -2
  92. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  93. package/dist-types/ts3.4/RUM.d.ts +119 -0
  94. package/dist-types/ts3.4/RUMClient.d.ts +59 -10
  95. package/dist-types/ts3.4/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +41 -0
  96. package/dist-types/ts3.4/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +41 -0
  97. package/dist-types/ts3.4/commands/BatchGetRumMetricDefinitionsCommand.d.ts +41 -0
  98. package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +2 -0
  99. package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +2 -0
  100. package/dist-types/ts3.4/commands/DeleteRumMetricsDestinationCommand.d.ts +41 -0
  101. package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +2 -0
  102. package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +2 -0
  103. package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +2 -0
  104. package/dist-types/ts3.4/commands/ListRumMetricsDestinationsCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  106. package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +2 -0
  107. package/dist-types/ts3.4/commands/PutRumMetricsDestinationCommand.d.ts +41 -0
  108. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  109. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  110. package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +2 -0
  111. package/dist-types/ts3.4/commands/UpdateRumMetricDefinitionCommand.d.ts +41 -0
  112. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  113. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  114. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  115. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  116. package/dist-types/ts3.4/models/models_0.d.ts +170 -18
  117. package/dist-types/ts3.4/pagination/BatchGetRumMetricDefinitionsPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/ListRumMetricsDestinationsPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  120. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  121. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  122. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  123. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  124. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  125. package/package.json +28 -26
  126. package/dist-cjs/endpoints.js +0 -132
  127. package/dist-es/endpoints.js +0 -128
  128. package/dist-types/endpoints.d.ts +0 -2
  129. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -3,6 +3,18 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@aws-sdk/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
6
+ import {
7
+ BatchCreateRumMetricDefinitionsCommandInput,
8
+ BatchCreateRumMetricDefinitionsCommandOutput,
9
+ } from "../commands/BatchCreateRumMetricDefinitionsCommand";
10
+ import {
11
+ BatchDeleteRumMetricDefinitionsCommandInput,
12
+ BatchDeleteRumMetricDefinitionsCommandOutput,
13
+ } from "../commands/BatchDeleteRumMetricDefinitionsCommand";
14
+ import {
15
+ BatchGetRumMetricDefinitionsCommandInput,
16
+ BatchGetRumMetricDefinitionsCommandOutput,
17
+ } from "../commands/BatchGetRumMetricDefinitionsCommand";
6
18
  import {
7
19
  CreateAppMonitorCommandInput,
8
20
  CreateAppMonitorCommandOutput,
@@ -11,6 +23,10 @@ import {
11
23
  DeleteAppMonitorCommandInput,
12
24
  DeleteAppMonitorCommandOutput,
13
25
  } from "../commands/DeleteAppMonitorCommand";
26
+ import {
27
+ DeleteRumMetricsDestinationCommandInput,
28
+ DeleteRumMetricsDestinationCommandOutput,
29
+ } from "../commands/DeleteRumMetricsDestinationCommand";
14
30
  import {
15
31
  GetAppMonitorCommandInput,
16
32
  GetAppMonitorCommandOutput,
@@ -23,6 +39,10 @@ import {
23
39
  ListAppMonitorsCommandInput,
24
40
  ListAppMonitorsCommandOutput,
25
41
  } from "../commands/ListAppMonitorsCommand";
42
+ import {
43
+ ListRumMetricsDestinationsCommandInput,
44
+ ListRumMetricsDestinationsCommandOutput,
45
+ } from "../commands/ListRumMetricsDestinationsCommand";
26
46
  import {
27
47
  ListTagsForResourceCommandInput,
28
48
  ListTagsForResourceCommandOutput,
@@ -31,6 +51,10 @@ import {
31
51
  PutRumEventsCommandInput,
32
52
  PutRumEventsCommandOutput,
33
53
  } from "../commands/PutRumEventsCommand";
54
+ import {
55
+ PutRumMetricsDestinationCommandInput,
56
+ PutRumMetricsDestinationCommandOutput,
57
+ } from "../commands/PutRumMetricsDestinationCommand";
34
58
  import {
35
59
  TagResourceCommandInput,
36
60
  TagResourceCommandOutput,
@@ -43,6 +67,22 @@ import {
43
67
  UpdateAppMonitorCommandInput,
44
68
  UpdateAppMonitorCommandOutput,
45
69
  } from "../commands/UpdateAppMonitorCommand";
70
+ import {
71
+ UpdateRumMetricDefinitionCommandInput,
72
+ UpdateRumMetricDefinitionCommandOutput,
73
+ } from "../commands/UpdateRumMetricDefinitionCommand";
74
+ export declare const serializeAws_restJson1BatchCreateRumMetricDefinitionsCommand: (
75
+ input: BatchCreateRumMetricDefinitionsCommandInput,
76
+ context: __SerdeContext
77
+ ) => Promise<__HttpRequest>;
78
+ export declare const serializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand: (
79
+ input: BatchDeleteRumMetricDefinitionsCommandInput,
80
+ context: __SerdeContext
81
+ ) => Promise<__HttpRequest>;
82
+ export declare const serializeAws_restJson1BatchGetRumMetricDefinitionsCommand: (
83
+ input: BatchGetRumMetricDefinitionsCommandInput,
84
+ context: __SerdeContext
85
+ ) => Promise<__HttpRequest>;
46
86
  export declare const serializeAws_restJson1CreateAppMonitorCommand: (
47
87
  input: CreateAppMonitorCommandInput,
48
88
  context: __SerdeContext
@@ -51,6 +91,10 @@ export declare const serializeAws_restJson1DeleteAppMonitorCommand: (
51
91
  input: DeleteAppMonitorCommandInput,
52
92
  context: __SerdeContext
53
93
  ) => Promise<__HttpRequest>;
94
+ export declare const serializeAws_restJson1DeleteRumMetricsDestinationCommand: (
95
+ input: DeleteRumMetricsDestinationCommandInput,
96
+ context: __SerdeContext
97
+ ) => Promise<__HttpRequest>;
54
98
  export declare const serializeAws_restJson1GetAppMonitorCommand: (
55
99
  input: GetAppMonitorCommandInput,
56
100
  context: __SerdeContext
@@ -63,6 +107,10 @@ export declare const serializeAws_restJson1ListAppMonitorsCommand: (
63
107
  input: ListAppMonitorsCommandInput,
64
108
  context: __SerdeContext
65
109
  ) => Promise<__HttpRequest>;
110
+ export declare const serializeAws_restJson1ListRumMetricsDestinationsCommand: (
111
+ input: ListRumMetricsDestinationsCommandInput,
112
+ context: __SerdeContext
113
+ ) => Promise<__HttpRequest>;
66
114
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (
67
115
  input: ListTagsForResourceCommandInput,
68
116
  context: __SerdeContext
@@ -71,6 +119,10 @@ export declare const serializeAws_restJson1PutRumEventsCommand: (
71
119
  input: PutRumEventsCommandInput,
72
120
  context: __SerdeContext
73
121
  ) => Promise<__HttpRequest>;
122
+ export declare const serializeAws_restJson1PutRumMetricsDestinationCommand: (
123
+ input: PutRumMetricsDestinationCommandInput,
124
+ context: __SerdeContext
125
+ ) => Promise<__HttpRequest>;
74
126
  export declare const serializeAws_restJson1TagResourceCommand: (
75
127
  input: TagResourceCommandInput,
76
128
  context: __SerdeContext
@@ -83,6 +135,22 @@ export declare const serializeAws_restJson1UpdateAppMonitorCommand: (
83
135
  input: UpdateAppMonitorCommandInput,
84
136
  context: __SerdeContext
85
137
  ) => Promise<__HttpRequest>;
138
+ export declare const serializeAws_restJson1UpdateRumMetricDefinitionCommand: (
139
+ input: UpdateRumMetricDefinitionCommandInput,
140
+ context: __SerdeContext
141
+ ) => Promise<__HttpRequest>;
142
+ export declare const deserializeAws_restJson1BatchCreateRumMetricDefinitionsCommand: (
143
+ output: __HttpResponse,
144
+ context: __SerdeContext
145
+ ) => Promise<BatchCreateRumMetricDefinitionsCommandOutput>;
146
+ export declare const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsCommand: (
147
+ output: __HttpResponse,
148
+ context: __SerdeContext
149
+ ) => Promise<BatchDeleteRumMetricDefinitionsCommandOutput>;
150
+ export declare const deserializeAws_restJson1BatchGetRumMetricDefinitionsCommand: (
151
+ output: __HttpResponse,
152
+ context: __SerdeContext
153
+ ) => Promise<BatchGetRumMetricDefinitionsCommandOutput>;
86
154
  export declare const deserializeAws_restJson1CreateAppMonitorCommand: (
87
155
  output: __HttpResponse,
88
156
  context: __SerdeContext
@@ -91,6 +159,10 @@ export declare const deserializeAws_restJson1DeleteAppMonitorCommand: (
91
159
  output: __HttpResponse,
92
160
  context: __SerdeContext
93
161
  ) => Promise<DeleteAppMonitorCommandOutput>;
162
+ export declare const deserializeAws_restJson1DeleteRumMetricsDestinationCommand: (
163
+ output: __HttpResponse,
164
+ context: __SerdeContext
165
+ ) => Promise<DeleteRumMetricsDestinationCommandOutput>;
94
166
  export declare const deserializeAws_restJson1GetAppMonitorCommand: (
95
167
  output: __HttpResponse,
96
168
  context: __SerdeContext
@@ -103,6 +175,10 @@ export declare const deserializeAws_restJson1ListAppMonitorsCommand: (
103
175
  output: __HttpResponse,
104
176
  context: __SerdeContext
105
177
  ) => Promise<ListAppMonitorsCommandOutput>;
178
+ export declare const deserializeAws_restJson1ListRumMetricsDestinationsCommand: (
179
+ output: __HttpResponse,
180
+ context: __SerdeContext
181
+ ) => Promise<ListRumMetricsDestinationsCommandOutput>;
106
182
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (
107
183
  output: __HttpResponse,
108
184
  context: __SerdeContext
@@ -111,6 +187,10 @@ export declare const deserializeAws_restJson1PutRumEventsCommand: (
111
187
  output: __HttpResponse,
112
188
  context: __SerdeContext
113
189
  ) => Promise<PutRumEventsCommandOutput>;
190
+ export declare const deserializeAws_restJson1PutRumMetricsDestinationCommand: (
191
+ output: __HttpResponse,
192
+ context: __SerdeContext
193
+ ) => Promise<PutRumMetricsDestinationCommandOutput>;
114
194
  export declare const deserializeAws_restJson1TagResourceCommand: (
115
195
  output: __HttpResponse,
116
196
  context: __SerdeContext
@@ -123,3 +203,7 @@ export declare const deserializeAws_restJson1UpdateAppMonitorCommand: (
123
203
  output: __HttpResponse,
124
204
  context: __SerdeContext
125
205
  ) => Promise<UpdateAppMonitorCommandOutput>;
206
+ export declare const deserializeAws_restJson1UpdateRumMetricDefinitionCommand: (
207
+ output: __HttpResponse,
208
+ context: __SerdeContext
209
+ ) => Promise<UpdateRumMetricDefinitionCommandOutput>;
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: RUMClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: RUMClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: RUMClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: RUMClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?:
@@ -3,8 +3,13 @@ import { RUMClientConfig } from "./RUMClient";
3
3
  export declare const getRuntimeConfig: (config: RUMClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rum",
3
3
  "description": "AWS SDK for JavaScript Rum Client for Node.js, Browser and React Native",
4
- "version": "3.190.0",
4
+ "version": "3.193.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,35 +19,37 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.190.0",
23
- "@aws-sdk/config-resolver": "3.190.0",
24
- "@aws-sdk/credential-provider-node": "3.190.0",
25
- "@aws-sdk/fetch-http-handler": "3.190.0",
26
- "@aws-sdk/hash-node": "3.190.0",
27
- "@aws-sdk/invalid-dependency": "3.190.0",
28
- "@aws-sdk/middleware-content-length": "3.190.0",
29
- "@aws-sdk/middleware-host-header": "3.190.0",
30
- "@aws-sdk/middleware-logger": "3.190.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.190.0",
32
- "@aws-sdk/middleware-retry": "3.190.0",
33
- "@aws-sdk/middleware-serde": "3.190.0",
34
- "@aws-sdk/middleware-signing": "3.190.0",
35
- "@aws-sdk/middleware-stack": "3.190.0",
36
- "@aws-sdk/middleware-user-agent": "3.190.0",
37
- "@aws-sdk/node-config-provider": "3.190.0",
38
- "@aws-sdk/node-http-handler": "3.190.0",
39
- "@aws-sdk/protocol-http": "3.190.0",
40
- "@aws-sdk/smithy-client": "3.190.0",
41
- "@aws-sdk/types": "3.190.0",
42
- "@aws-sdk/url-parser": "3.190.0",
22
+ "@aws-sdk/client-sts": "3.193.0",
23
+ "@aws-sdk/config-resolver": "3.193.0",
24
+ "@aws-sdk/credential-provider-node": "3.193.0",
25
+ "@aws-sdk/fetch-http-handler": "3.193.0",
26
+ "@aws-sdk/hash-node": "3.193.0",
27
+ "@aws-sdk/invalid-dependency": "3.193.0",
28
+ "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
30
+ "@aws-sdk/middleware-host-header": "3.193.0",
31
+ "@aws-sdk/middleware-logger": "3.193.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.193.0",
33
+ "@aws-sdk/middleware-retry": "3.193.0",
34
+ "@aws-sdk/middleware-serde": "3.193.0",
35
+ "@aws-sdk/middleware-signing": "3.193.0",
36
+ "@aws-sdk/middleware-stack": "3.193.0",
37
+ "@aws-sdk/middleware-user-agent": "3.193.0",
38
+ "@aws-sdk/node-config-provider": "3.193.0",
39
+ "@aws-sdk/node-http-handler": "3.193.0",
40
+ "@aws-sdk/protocol-http": "3.193.0",
41
+ "@aws-sdk/smithy-client": "3.193.0",
42
+ "@aws-sdk/types": "3.193.0",
43
+ "@aws-sdk/url-parser": "3.193.0",
43
44
  "@aws-sdk/util-base64-browser": "3.188.0",
44
45
  "@aws-sdk/util-base64-node": "3.188.0",
45
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.190.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.190.0",
49
- "@aws-sdk/util-user-agent-browser": "3.190.0",
50
- "@aws-sdk/util-user-agent-node": "3.190.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.193.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.193.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.193.0",
52
+ "@aws-sdk/util-user-agent-node": "3.193.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
52
54
  "@aws-sdk/util-utf8-node": "3.188.0",
53
55
  "tslib": "^2.3.1"
@@ -1,132 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {};
6
- const partitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ap-southeast-3",
18
- "ca-central-1",
19
- "eu-central-1",
20
- "eu-north-1",
21
- "eu-south-1",
22
- "eu-west-1",
23
- "eu-west-2",
24
- "eu-west-3",
25
- "me-central-1",
26
- "me-south-1",
27
- "sa-east-1",
28
- "us-east-1",
29
- "us-east-2",
30
- "us-west-1",
31
- "us-west-2",
32
- ],
33
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
34
- variants: [
35
- {
36
- hostname: "rum.{region}.amazonaws.com",
37
- tags: [],
38
- },
39
- {
40
- hostname: "rum-fips.{region}.amazonaws.com",
41
- tags: ["fips"],
42
- },
43
- {
44
- hostname: "rum-fips.{region}.api.aws",
45
- tags: ["dualstack", "fips"],
46
- },
47
- {
48
- hostname: "rum.{region}.api.aws",
49
- tags: ["dualstack"],
50
- },
51
- ],
52
- },
53
- "aws-cn": {
54
- regions: ["cn-north-1", "cn-northwest-1"],
55
- regionRegex: "^cn\\-\\w+\\-\\d+$",
56
- variants: [
57
- {
58
- hostname: "rum.{region}.amazonaws.com.cn",
59
- tags: [],
60
- },
61
- {
62
- hostname: "rum-fips.{region}.amazonaws.com.cn",
63
- tags: ["fips"],
64
- },
65
- {
66
- hostname: "rum-fips.{region}.api.amazonwebservices.com.cn",
67
- tags: ["dualstack", "fips"],
68
- },
69
- {
70
- hostname: "rum.{region}.api.amazonwebservices.com.cn",
71
- tags: ["dualstack"],
72
- },
73
- ],
74
- },
75
- "aws-iso": {
76
- regions: ["us-iso-east-1", "us-iso-west-1"],
77
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
78
- variants: [
79
- {
80
- hostname: "rum.{region}.c2s.ic.gov",
81
- tags: [],
82
- },
83
- {
84
- hostname: "rum-fips.{region}.c2s.ic.gov",
85
- tags: ["fips"],
86
- },
87
- ],
88
- },
89
- "aws-iso-b": {
90
- regions: ["us-isob-east-1"],
91
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
92
- variants: [
93
- {
94
- hostname: "rum.{region}.sc2s.sgov.gov",
95
- tags: [],
96
- },
97
- {
98
- hostname: "rum-fips.{region}.sc2s.sgov.gov",
99
- tags: ["fips"],
100
- },
101
- ],
102
- },
103
- "aws-us-gov": {
104
- regions: ["us-gov-east-1", "us-gov-west-1"],
105
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
106
- variants: [
107
- {
108
- hostname: "rum.{region}.amazonaws.com",
109
- tags: [],
110
- },
111
- {
112
- hostname: "rum-fips.{region}.amazonaws.com",
113
- tags: ["fips"],
114
- },
115
- {
116
- hostname: "rum-fips.{region}.api.aws",
117
- tags: ["dualstack", "fips"],
118
- },
119
- {
120
- hostname: "rum.{region}.api.aws",
121
- tags: ["dualstack"],
122
- },
123
- ],
124
- },
125
- };
126
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
127
- ...options,
128
- signingService: "rum",
129
- regionHash,
130
- partitionHash,
131
- });
132
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -1,128 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
4
- aws: {
5
- regions: [
6
- "af-south-1",
7
- "ap-east-1",
8
- "ap-northeast-1",
9
- "ap-northeast-2",
10
- "ap-northeast-3",
11
- "ap-south-1",
12
- "ap-southeast-1",
13
- "ap-southeast-2",
14
- "ap-southeast-3",
15
- "ca-central-1",
16
- "eu-central-1",
17
- "eu-north-1",
18
- "eu-south-1",
19
- "eu-west-1",
20
- "eu-west-2",
21
- "eu-west-3",
22
- "me-central-1",
23
- "me-south-1",
24
- "sa-east-1",
25
- "us-east-1",
26
- "us-east-2",
27
- "us-west-1",
28
- "us-west-2",
29
- ],
30
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
31
- variants: [
32
- {
33
- hostname: "rum.{region}.amazonaws.com",
34
- tags: [],
35
- },
36
- {
37
- hostname: "rum-fips.{region}.amazonaws.com",
38
- tags: ["fips"],
39
- },
40
- {
41
- hostname: "rum-fips.{region}.api.aws",
42
- tags: ["dualstack", "fips"],
43
- },
44
- {
45
- hostname: "rum.{region}.api.aws",
46
- tags: ["dualstack"],
47
- },
48
- ],
49
- },
50
- "aws-cn": {
51
- regions: ["cn-north-1", "cn-northwest-1"],
52
- regionRegex: "^cn\\-\\w+\\-\\d+$",
53
- variants: [
54
- {
55
- hostname: "rum.{region}.amazonaws.com.cn",
56
- tags: [],
57
- },
58
- {
59
- hostname: "rum-fips.{region}.amazonaws.com.cn",
60
- tags: ["fips"],
61
- },
62
- {
63
- hostname: "rum-fips.{region}.api.amazonwebservices.com.cn",
64
- tags: ["dualstack", "fips"],
65
- },
66
- {
67
- hostname: "rum.{region}.api.amazonwebservices.com.cn",
68
- tags: ["dualstack"],
69
- },
70
- ],
71
- },
72
- "aws-iso": {
73
- regions: ["us-iso-east-1", "us-iso-west-1"],
74
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
75
- variants: [
76
- {
77
- hostname: "rum.{region}.c2s.ic.gov",
78
- tags: [],
79
- },
80
- {
81
- hostname: "rum-fips.{region}.c2s.ic.gov",
82
- tags: ["fips"],
83
- },
84
- ],
85
- },
86
- "aws-iso-b": {
87
- regions: ["us-isob-east-1"],
88
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
89
- variants: [
90
- {
91
- hostname: "rum.{region}.sc2s.sgov.gov",
92
- tags: [],
93
- },
94
- {
95
- hostname: "rum-fips.{region}.sc2s.sgov.gov",
96
- tags: ["fips"],
97
- },
98
- ],
99
- },
100
- "aws-us-gov": {
101
- regions: ["us-gov-east-1", "us-gov-west-1"],
102
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
103
- variants: [
104
- {
105
- hostname: "rum.{region}.amazonaws.com",
106
- tags: [],
107
- },
108
- {
109
- hostname: "rum-fips.{region}.amazonaws.com",
110
- tags: ["fips"],
111
- },
112
- {
113
- hostname: "rum-fips.{region}.api.aws",
114
- tags: ["dualstack", "fips"],
115
- },
116
- {
117
- hostname: "rum.{region}.api.aws",
118
- tags: ["dualstack"],
119
- },
120
- ],
121
- },
122
- };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "rum",
126
- regionHash,
127
- partitionHash,
128
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;