@aws-sdk/client-rum 3.758.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 +1 -1
|
@@ -1166,6 +1166,56 @@ export interface DeleteAppMonitorRequest {
|
|
|
1166
1166
|
*/
|
|
1167
1167
|
export interface DeleteAppMonitorResponse {
|
|
1168
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* @public
|
|
1171
|
+
*/
|
|
1172
|
+
export interface DeleteResourcePolicyRequest {
|
|
1173
|
+
/**
|
|
1174
|
+
* <p>The app monitor that you want to remove the resource policy from.</p>
|
|
1175
|
+
* @public
|
|
1176
|
+
*/
|
|
1177
|
+
Name: string | undefined;
|
|
1178
|
+
/**
|
|
1179
|
+
* <p>Specifies a specific policy revision to delete. Provide a <code>PolicyRevisionId</code> to ensure an atomic delete operation.
|
|
1180
|
+
* 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>
|
|
1181
|
+
* @public
|
|
1182
|
+
*/
|
|
1183
|
+
PolicyRevisionId?: string | undefined;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* @public
|
|
1187
|
+
*/
|
|
1188
|
+
export interface DeleteResourcePolicyResponse {
|
|
1189
|
+
/**
|
|
1190
|
+
* <p>The revision ID of the policy that was removed, if it had one.</p>
|
|
1191
|
+
* @public
|
|
1192
|
+
*/
|
|
1193
|
+
PolicyRevisionId?: string | undefined;
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* <p>The policy revision ID that you provided doeesn't match the latest policy revision ID.</p>
|
|
1197
|
+
* @public
|
|
1198
|
+
*/
|
|
1199
|
+
export declare class InvalidPolicyRevisionIdException extends __BaseException {
|
|
1200
|
+
readonly name: "InvalidPolicyRevisionIdException";
|
|
1201
|
+
readonly $fault: "client";
|
|
1202
|
+
/**
|
|
1203
|
+
* @internal
|
|
1204
|
+
*/
|
|
1205
|
+
constructor(opts: __ExceptionOptionType<InvalidPolicyRevisionIdException, __BaseException>);
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* <p>The resource-based policy doesn't exist on this app monitor.</p>
|
|
1209
|
+
* @public
|
|
1210
|
+
*/
|
|
1211
|
+
export declare class PolicyNotFoundException extends __BaseException {
|
|
1212
|
+
readonly name: "PolicyNotFoundException";
|
|
1213
|
+
readonly $fault: "client";
|
|
1214
|
+
/**
|
|
1215
|
+
* @internal
|
|
1216
|
+
*/
|
|
1217
|
+
constructor(opts: __ExceptionOptionType<PolicyNotFoundException, __BaseException>);
|
|
1218
|
+
}
|
|
1169
1219
|
/**
|
|
1170
1220
|
* @public
|
|
1171
1221
|
*/
|
|
@@ -1308,6 +1358,31 @@ export interface GetAppMonitorDataResponse {
|
|
|
1308
1358
|
*/
|
|
1309
1359
|
NextToken?: string | undefined;
|
|
1310
1360
|
}
|
|
1361
|
+
/**
|
|
1362
|
+
* @public
|
|
1363
|
+
*/
|
|
1364
|
+
export interface GetResourcePolicyRequest {
|
|
1365
|
+
/**
|
|
1366
|
+
* <p>The name of the app monitor that is associated with the resource-based policy that you want to view.</p>
|
|
1367
|
+
* @public
|
|
1368
|
+
*/
|
|
1369
|
+
Name: string | undefined;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* @public
|
|
1373
|
+
*/
|
|
1374
|
+
export interface GetResourcePolicyResponse {
|
|
1375
|
+
/**
|
|
1376
|
+
* <p>The JSON policy document that you requested.</p>
|
|
1377
|
+
* @public
|
|
1378
|
+
*/
|
|
1379
|
+
PolicyDocument?: string | undefined;
|
|
1380
|
+
/**
|
|
1381
|
+
* <p>The revision ID information for this version of the policy document that you requested.</p>
|
|
1382
|
+
* @public
|
|
1383
|
+
*/
|
|
1384
|
+
PolicyRevisionId?: string | undefined;
|
|
1385
|
+
}
|
|
1311
1386
|
/**
|
|
1312
1387
|
* @public
|
|
1313
1388
|
*/
|
|
@@ -1435,6 +1510,69 @@ export interface ListRumMetricsDestinationsResponse {
|
|
|
1435
1510
|
*/
|
|
1436
1511
|
NextToken?: string | undefined;
|
|
1437
1512
|
}
|
|
1513
|
+
/**
|
|
1514
|
+
* <p>The policy document that you specified is not formatted correctly.</p>
|
|
1515
|
+
* @public
|
|
1516
|
+
*/
|
|
1517
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
1518
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
1519
|
+
readonly $fault: "client";
|
|
1520
|
+
/**
|
|
1521
|
+
* @internal
|
|
1522
|
+
*/
|
|
1523
|
+
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* <p>The policy document is too large. The limit is 4 KB.</p>
|
|
1527
|
+
* @public
|
|
1528
|
+
*/
|
|
1529
|
+
export declare class PolicySizeLimitExceededException extends __BaseException {
|
|
1530
|
+
readonly name: "PolicySizeLimitExceededException";
|
|
1531
|
+
readonly $fault: "client";
|
|
1532
|
+
/**
|
|
1533
|
+
* @internal
|
|
1534
|
+
*/
|
|
1535
|
+
constructor(opts: __ExceptionOptionType<PolicySizeLimitExceededException, __BaseException>);
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* @public
|
|
1539
|
+
*/
|
|
1540
|
+
export interface PutResourcePolicyRequest {
|
|
1541
|
+
/**
|
|
1542
|
+
* <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
|
|
1543
|
+
* the <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_ListAppMonitors.html">ListAppMonitors</a> operation.</p>
|
|
1544
|
+
* @public
|
|
1545
|
+
*/
|
|
1546
|
+
Name: string | undefined;
|
|
1547
|
+
/**
|
|
1548
|
+
* <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
|
|
1549
|
+
* 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>
|
|
1550
|
+
* @public
|
|
1551
|
+
*/
|
|
1552
|
+
PolicyDocument: string | undefined;
|
|
1553
|
+
/**
|
|
1554
|
+
* <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>
|
|
1555
|
+
* <p>When you assign a policy revision ID, then later requests about that policy will be rejected with an <code>InvalidPolicyRevisionIdException</code> error
|
|
1556
|
+
* if they don't provide the correct current revision ID.</p>
|
|
1557
|
+
* @public
|
|
1558
|
+
*/
|
|
1559
|
+
PolicyRevisionId?: string | undefined;
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* @public
|
|
1563
|
+
*/
|
|
1564
|
+
export interface PutResourcePolicyResponse {
|
|
1565
|
+
/**
|
|
1566
|
+
* <p>The JSON policy document that you specified.</p>
|
|
1567
|
+
* @public
|
|
1568
|
+
*/
|
|
1569
|
+
PolicyDocument?: string | undefined;
|
|
1570
|
+
/**
|
|
1571
|
+
* <p>The policy revision ID information that you specified.</p>
|
|
1572
|
+
* @public
|
|
1573
|
+
*/
|
|
1574
|
+
PolicyRevisionId?: string | undefined;
|
|
1575
|
+
}
|
|
1438
1576
|
/**
|
|
1439
1577
|
* @public
|
|
1440
1578
|
*/
|
|
@@ -1670,6 +1808,12 @@ export interface PutRumEventsRequest {
|
|
|
1670
1808
|
* @public
|
|
1671
1809
|
*/
|
|
1672
1810
|
RumEvents: RumEvent[] | undefined;
|
|
1811
|
+
/**
|
|
1812
|
+
* <p>If the app monitor uses a resource-based policy that requires <code>PutRumEvents</code> requests to specify a certain alias,
|
|
1813
|
+
* 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>
|
|
1814
|
+
* @public
|
|
1815
|
+
*/
|
|
1816
|
+
Alias?: string | undefined;
|
|
1673
1817
|
}
|
|
1674
1818
|
/**
|
|
1675
1819
|
* @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
|
*/
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
DeleteAppMonitorCommandInput,
|
|
20
20
|
DeleteAppMonitorCommandOutput,
|
|
21
21
|
} from "./commands/DeleteAppMonitorCommand";
|
|
22
|
+
import {
|
|
23
|
+
DeleteResourcePolicyCommandInput,
|
|
24
|
+
DeleteResourcePolicyCommandOutput,
|
|
25
|
+
} from "./commands/DeleteResourcePolicyCommand";
|
|
22
26
|
import {
|
|
23
27
|
DeleteRumMetricsDestinationCommandInput,
|
|
24
28
|
DeleteRumMetricsDestinationCommandOutput,
|
|
@@ -31,6 +35,10 @@ import {
|
|
|
31
35
|
GetAppMonitorDataCommandInput,
|
|
32
36
|
GetAppMonitorDataCommandOutput,
|
|
33
37
|
} from "./commands/GetAppMonitorDataCommand";
|
|
38
|
+
import {
|
|
39
|
+
GetResourcePolicyCommandInput,
|
|
40
|
+
GetResourcePolicyCommandOutput,
|
|
41
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
34
42
|
import {
|
|
35
43
|
ListAppMonitorsCommandInput,
|
|
36
44
|
ListAppMonitorsCommandOutput,
|
|
@@ -43,6 +51,10 @@ import {
|
|
|
43
51
|
ListTagsForResourceCommandInput,
|
|
44
52
|
ListTagsForResourceCommandOutput,
|
|
45
53
|
} from "./commands/ListTagsForResourceCommand";
|
|
54
|
+
import {
|
|
55
|
+
PutResourcePolicyCommandInput,
|
|
56
|
+
PutResourcePolicyCommandOutput,
|
|
57
|
+
} from "./commands/PutResourcePolicyCommand";
|
|
46
58
|
import {
|
|
47
59
|
PutRumEventsCommandInput,
|
|
48
60
|
PutRumEventsCommandOutput,
|
|
@@ -134,6 +146,19 @@ export interface RUM {
|
|
|
134
146
|
options: __HttpHandlerOptions,
|
|
135
147
|
cb: (err: any, data?: DeleteAppMonitorCommandOutput) => void
|
|
136
148
|
): void;
|
|
149
|
+
deleteResourcePolicy(
|
|
150
|
+
args: DeleteResourcePolicyCommandInput,
|
|
151
|
+
options?: __HttpHandlerOptions
|
|
152
|
+
): Promise<DeleteResourcePolicyCommandOutput>;
|
|
153
|
+
deleteResourcePolicy(
|
|
154
|
+
args: DeleteResourcePolicyCommandInput,
|
|
155
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
|
|
156
|
+
): void;
|
|
157
|
+
deleteResourcePolicy(
|
|
158
|
+
args: DeleteResourcePolicyCommandInput,
|
|
159
|
+
options: __HttpHandlerOptions,
|
|
160
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
|
|
161
|
+
): void;
|
|
137
162
|
deleteRumMetricsDestination(
|
|
138
163
|
args: DeleteRumMetricsDestinationCommandInput,
|
|
139
164
|
options?: __HttpHandlerOptions
|
|
@@ -173,6 +198,19 @@ export interface RUM {
|
|
|
173
198
|
options: __HttpHandlerOptions,
|
|
174
199
|
cb: (err: any, data?: GetAppMonitorDataCommandOutput) => void
|
|
175
200
|
): void;
|
|
201
|
+
getResourcePolicy(
|
|
202
|
+
args: GetResourcePolicyCommandInput,
|
|
203
|
+
options?: __HttpHandlerOptions
|
|
204
|
+
): Promise<GetResourcePolicyCommandOutput>;
|
|
205
|
+
getResourcePolicy(
|
|
206
|
+
args: GetResourcePolicyCommandInput,
|
|
207
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
208
|
+
): void;
|
|
209
|
+
getResourcePolicy(
|
|
210
|
+
args: GetResourcePolicyCommandInput,
|
|
211
|
+
options: __HttpHandlerOptions,
|
|
212
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
213
|
+
): void;
|
|
176
214
|
listAppMonitors(): Promise<ListAppMonitorsCommandOutput>;
|
|
177
215
|
listAppMonitors(
|
|
178
216
|
args: ListAppMonitorsCommandInput,
|
|
@@ -213,6 +251,19 @@ export interface RUM {
|
|
|
213
251
|
options: __HttpHandlerOptions,
|
|
214
252
|
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
215
253
|
): void;
|
|
254
|
+
putResourcePolicy(
|
|
255
|
+
args: PutResourcePolicyCommandInput,
|
|
256
|
+
options?: __HttpHandlerOptions
|
|
257
|
+
): Promise<PutResourcePolicyCommandOutput>;
|
|
258
|
+
putResourcePolicy(
|
|
259
|
+
args: PutResourcePolicyCommandInput,
|
|
260
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
|
|
261
|
+
): void;
|
|
262
|
+
putResourcePolicy(
|
|
263
|
+
args: PutResourcePolicyCommandInput,
|
|
264
|
+
options: __HttpHandlerOptions,
|
|
265
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
|
|
266
|
+
): void;
|
|
216
267
|
putRumEvents(
|
|
217
268
|
args: PutRumEventsCommandInput,
|
|
218
269
|
options?: __HttpHandlerOptions
|
|
@@ -65,6 +65,10 @@ import {
|
|
|
65
65
|
DeleteAppMonitorCommandInput,
|
|
66
66
|
DeleteAppMonitorCommandOutput,
|
|
67
67
|
} from "./commands/DeleteAppMonitorCommand";
|
|
68
|
+
import {
|
|
69
|
+
DeleteResourcePolicyCommandInput,
|
|
70
|
+
DeleteResourcePolicyCommandOutput,
|
|
71
|
+
} from "./commands/DeleteResourcePolicyCommand";
|
|
68
72
|
import {
|
|
69
73
|
DeleteRumMetricsDestinationCommandInput,
|
|
70
74
|
DeleteRumMetricsDestinationCommandOutput,
|
|
@@ -77,6 +81,10 @@ import {
|
|
|
77
81
|
GetAppMonitorDataCommandInput,
|
|
78
82
|
GetAppMonitorDataCommandOutput,
|
|
79
83
|
} from "./commands/GetAppMonitorDataCommand";
|
|
84
|
+
import {
|
|
85
|
+
GetResourcePolicyCommandInput,
|
|
86
|
+
GetResourcePolicyCommandOutput,
|
|
87
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
80
88
|
import {
|
|
81
89
|
ListAppMonitorsCommandInput,
|
|
82
90
|
ListAppMonitorsCommandOutput,
|
|
@@ -89,6 +97,10 @@ import {
|
|
|
89
97
|
ListTagsForResourceCommandInput,
|
|
90
98
|
ListTagsForResourceCommandOutput,
|
|
91
99
|
} from "./commands/ListTagsForResourceCommand";
|
|
100
|
+
import {
|
|
101
|
+
PutResourcePolicyCommandInput,
|
|
102
|
+
PutResourcePolicyCommandOutput,
|
|
103
|
+
} from "./commands/PutResourcePolicyCommand";
|
|
92
104
|
import {
|
|
93
105
|
PutRumEventsCommandInput,
|
|
94
106
|
PutRumEventsCommandOutput,
|
|
@@ -126,12 +138,15 @@ export type ServiceInputTypes =
|
|
|
126
138
|
| BatchGetRumMetricDefinitionsCommandInput
|
|
127
139
|
| CreateAppMonitorCommandInput
|
|
128
140
|
| DeleteAppMonitorCommandInput
|
|
141
|
+
| DeleteResourcePolicyCommandInput
|
|
129
142
|
| DeleteRumMetricsDestinationCommandInput
|
|
130
143
|
| GetAppMonitorCommandInput
|
|
131
144
|
| GetAppMonitorDataCommandInput
|
|
145
|
+
| GetResourcePolicyCommandInput
|
|
132
146
|
| ListAppMonitorsCommandInput
|
|
133
147
|
| ListRumMetricsDestinationsCommandInput
|
|
134
148
|
| ListTagsForResourceCommandInput
|
|
149
|
+
| PutResourcePolicyCommandInput
|
|
135
150
|
| PutRumEventsCommandInput
|
|
136
151
|
| PutRumMetricsDestinationCommandInput
|
|
137
152
|
| TagResourceCommandInput
|
|
@@ -144,12 +159,15 @@ export type ServiceOutputTypes =
|
|
|
144
159
|
| BatchGetRumMetricDefinitionsCommandOutput
|
|
145
160
|
| CreateAppMonitorCommandOutput
|
|
146
161
|
| DeleteAppMonitorCommandOutput
|
|
162
|
+
| DeleteResourcePolicyCommandOutput
|
|
147
163
|
| DeleteRumMetricsDestinationCommandOutput
|
|
148
164
|
| GetAppMonitorCommandOutput
|
|
149
165
|
| GetAppMonitorDataCommandOutput
|
|
166
|
+
| GetResourcePolicyCommandOutput
|
|
150
167
|
| ListAppMonitorsCommandOutput
|
|
151
168
|
| ListRumMetricsDestinationsCommandOutput
|
|
152
169
|
| ListTagsForResourceCommandOutput
|
|
170
|
+
| PutResourcePolicyCommandOutput
|
|
153
171
|
| PutRumEventsCommandOutput
|
|
154
172
|
| PutRumMetricsDestinationCommandOutput
|
|
155
173
|
| TagResourceCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
DeleteResourcePolicyRequest,
|
|
5
|
+
DeleteResourcePolicyResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
RUMClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../RUMClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface DeleteResourcePolicyCommandInput
|
|
15
|
+
extends DeleteResourcePolicyRequest {}
|
|
16
|
+
export interface DeleteResourcePolicyCommandOutput
|
|
17
|
+
extends DeleteResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: DeleteResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
DeleteResourcePolicyCommandInput,
|
|
24
|
+
DeleteResourcePolicyCommandOutput,
|
|
25
|
+
RUMClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: DeleteResourcePolicyCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
DeleteResourcePolicyCommandInput,
|
|
33
|
+
DeleteResourcePolicyCommandOutput,
|
|
34
|
+
RUMClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: DeleteResourcePolicyRequest;
|
|
44
|
+
output: DeleteResourcePolicyResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: DeleteResourcePolicyCommandInput;
|
|
48
|
+
output: DeleteResourcePolicyCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
GetResourcePolicyRequest,
|
|
5
|
+
GetResourcePolicyResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
RUMClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../RUMClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetResourcePolicyCommandInput
|
|
15
|
+
extends GetResourcePolicyRequest {}
|
|
16
|
+
export interface GetResourcePolicyCommandOutput
|
|
17
|
+
extends GetResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetResourcePolicyCommandInput,
|
|
24
|
+
GetResourcePolicyCommandOutput,
|
|
25
|
+
RUMClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: GetResourcePolicyCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetResourcePolicyCommandInput,
|
|
33
|
+
GetResourcePolicyCommandOutput,
|
|
34
|
+
RUMClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: GetResourcePolicyRequest;
|
|
44
|
+
output: GetResourcePolicyResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetResourcePolicyCommandInput;
|
|
48
|
+
output: GetResourcePolicyCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
PutResourcePolicyRequest,
|
|
5
|
+
PutResourcePolicyResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
RUMClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../RUMClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface PutResourcePolicyCommandInput
|
|
15
|
+
extends PutResourcePolicyRequest {}
|
|
16
|
+
export interface PutResourcePolicyCommandOutput
|
|
17
|
+
extends PutResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const PutResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: PutResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
PutResourcePolicyCommandInput,
|
|
24
|
+
PutResourcePolicyCommandOutput,
|
|
25
|
+
RUMClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: PutResourcePolicyCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
PutResourcePolicyCommandInput,
|
|
33
|
+
PutResourcePolicyCommandOutput,
|
|
34
|
+
RUMClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: PutResourcePolicyRequest;
|
|
44
|
+
output: PutResourcePolicyResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: PutResourcePolicyCommandInput;
|
|
48
|
+
output: PutResourcePolicyCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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";
|
|
@@ -197,6 +197,30 @@ export interface DeleteAppMonitorRequest {
|
|
|
197
197
|
Name: string | undefined;
|
|
198
198
|
}
|
|
199
199
|
export interface DeleteAppMonitorResponse {}
|
|
200
|
+
export interface DeleteResourcePolicyRequest {
|
|
201
|
+
Name: string | undefined;
|
|
202
|
+
PolicyRevisionId?: string | undefined;
|
|
203
|
+
}
|
|
204
|
+
export interface DeleteResourcePolicyResponse {
|
|
205
|
+
PolicyRevisionId?: string | undefined;
|
|
206
|
+
}
|
|
207
|
+
export declare class InvalidPolicyRevisionIdException extends __BaseException {
|
|
208
|
+
readonly name: "InvalidPolicyRevisionIdException";
|
|
209
|
+
readonly $fault: "client";
|
|
210
|
+
constructor(
|
|
211
|
+
opts: __ExceptionOptionType<
|
|
212
|
+
InvalidPolicyRevisionIdException,
|
|
213
|
+
__BaseException
|
|
214
|
+
>
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
export declare class PolicyNotFoundException extends __BaseException {
|
|
218
|
+
readonly name: "PolicyNotFoundException";
|
|
219
|
+
readonly $fault: "client";
|
|
220
|
+
constructor(
|
|
221
|
+
opts: __ExceptionOptionType<PolicyNotFoundException, __BaseException>
|
|
222
|
+
);
|
|
223
|
+
}
|
|
200
224
|
export interface DeleteRumMetricsDestinationRequest {
|
|
201
225
|
AppMonitorName: string | undefined;
|
|
202
226
|
Destination: MetricDestination | undefined;
|
|
@@ -228,6 +252,13 @@ export interface GetAppMonitorDataResponse {
|
|
|
228
252
|
Events?: string[] | undefined;
|
|
229
253
|
NextToken?: string | undefined;
|
|
230
254
|
}
|
|
255
|
+
export interface GetResourcePolicyRequest {
|
|
256
|
+
Name: string | undefined;
|
|
257
|
+
}
|
|
258
|
+
export interface GetResourcePolicyResponse {
|
|
259
|
+
PolicyDocument?: string | undefined;
|
|
260
|
+
PolicyRevisionId?: string | undefined;
|
|
261
|
+
}
|
|
231
262
|
export interface ListAppMonitorsRequest {
|
|
232
263
|
MaxResults?: number | undefined;
|
|
233
264
|
NextToken?: string | undefined;
|
|
@@ -257,6 +288,35 @@ export interface ListRumMetricsDestinationsResponse {
|
|
|
257
288
|
Destinations?: MetricDestinationSummary[] | undefined;
|
|
258
289
|
NextToken?: string | undefined;
|
|
259
290
|
}
|
|
291
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
292
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
293
|
+
readonly $fault: "client";
|
|
294
|
+
constructor(
|
|
295
|
+
opts: __ExceptionOptionType<
|
|
296
|
+
MalformedPolicyDocumentException,
|
|
297
|
+
__BaseException
|
|
298
|
+
>
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
export declare class PolicySizeLimitExceededException extends __BaseException {
|
|
302
|
+
readonly name: "PolicySizeLimitExceededException";
|
|
303
|
+
readonly $fault: "client";
|
|
304
|
+
constructor(
|
|
305
|
+
opts: __ExceptionOptionType<
|
|
306
|
+
PolicySizeLimitExceededException,
|
|
307
|
+
__BaseException
|
|
308
|
+
>
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
export interface PutResourcePolicyRequest {
|
|
312
|
+
Name: string | undefined;
|
|
313
|
+
PolicyDocument: string | undefined;
|
|
314
|
+
PolicyRevisionId?: string | undefined;
|
|
315
|
+
}
|
|
316
|
+
export interface PutResourcePolicyResponse {
|
|
317
|
+
PolicyDocument?: string | undefined;
|
|
318
|
+
PolicyRevisionId?: string | undefined;
|
|
319
|
+
}
|
|
260
320
|
export interface PutRumMetricsDestinationRequest {
|
|
261
321
|
AppMonitorName: string | undefined;
|
|
262
322
|
Destination: MetricDestination | undefined;
|
|
@@ -304,6 +364,7 @@ export interface PutRumEventsRequest {
|
|
|
304
364
|
AppMonitorDetails: AppMonitorDetails | undefined;
|
|
305
365
|
UserDetails: UserDetails | undefined;
|
|
306
366
|
RumEvents: RumEvent[] | undefined;
|
|
367
|
+
Alias?: string | undefined;
|
|
307
368
|
}
|
|
308
369
|
export interface PutRumEventsResponse {}
|
|
309
370
|
export interface TagResourceRequest {
|