@aws-sdk/client-cloudtrail 3.817.0 → 3.820.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 +16 -0
- package/dist-cjs/index.js +148 -24
- package/dist-es/CloudTrail.js +4 -0
- package/dist-es/commands/GetEventConfigurationCommand.js +22 -0
- package/dist-es/commands/PutEventConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +36 -14
- package/dist-es/protocols/Aws_json1_1.js +54 -4
- package/dist-types/CloudTrail.d.ts +15 -0
- package/dist-types/CloudTrailClient.d.ts +4 -2
- package/dist-types/commands/GetEventConfigurationCommand.d.ts +126 -0
- package/dist-types/commands/PutEventConfigurationCommand.d.ts +161 -0
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +3 -0
- package/dist-types/commands/StartEventDataStoreIngestionCommand.d.ts +6 -0
- package/dist-types/commands/StopEventDataStoreIngestionCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +144 -17
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +35 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetEventConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutEventConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +54 -11
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -370,6 +370,14 @@ GetDashboard
|
|
|
370
370
|
|
|
371
371
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/GetDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetDashboardCommandOutput/)
|
|
372
372
|
|
|
373
|
+
</details>
|
|
374
|
+
<details>
|
|
375
|
+
<summary>
|
|
376
|
+
GetEventConfiguration
|
|
377
|
+
</summary>
|
|
378
|
+
|
|
379
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/GetEventConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetEventConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetEventConfigurationCommandOutput/)
|
|
380
|
+
|
|
373
381
|
</details>
|
|
374
382
|
<details>
|
|
375
383
|
<summary>
|
|
@@ -522,6 +530,14 @@ LookupEvents
|
|
|
522
530
|
|
|
523
531
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/LookupEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/LookupEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/LookupEventsCommandOutput/)
|
|
524
532
|
|
|
533
|
+
</details>
|
|
534
|
+
<details>
|
|
535
|
+
<summary>
|
|
536
|
+
PutEventConfiguration
|
|
537
|
+
</summary>
|
|
538
|
+
|
|
539
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/PutEventConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/PutEventConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/PutEventConfigurationCommandOutput/)
|
|
540
|
+
|
|
525
541
|
</details>
|
|
526
542
|
<details>
|
|
527
543
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -77,6 +77,7 @@ __export(index_exports, {
|
|
|
77
77
|
GenerateResponseException: () => GenerateResponseException,
|
|
78
78
|
GetChannelCommand: () => GetChannelCommand,
|
|
79
79
|
GetDashboardCommand: () => GetDashboardCommand,
|
|
80
|
+
GetEventConfigurationCommand: () => GetEventConfigurationCommand,
|
|
80
81
|
GetEventDataStoreCommand: () => GetEventDataStoreCommand,
|
|
81
82
|
GetEventSelectorsCommand: () => GetEventSelectorsCommand,
|
|
82
83
|
GetImportCommand: () => GetImportCommand,
|
|
@@ -95,6 +96,7 @@ __export(index_exports, {
|
|
|
95
96
|
InsightsMetricDataType: () => InsightsMetricDataType,
|
|
96
97
|
InsufficientDependencyServiceAccessPermissionException: () => InsufficientDependencyServiceAccessPermissionException,
|
|
97
98
|
InsufficientEncryptionPolicyException: () => InsufficientEncryptionPolicyException,
|
|
99
|
+
InsufficientIAMAccessPermissionException: () => InsufficientIAMAccessPermissionException,
|
|
98
100
|
InsufficientS3BucketPolicyException: () => InsufficientS3BucketPolicyException,
|
|
99
101
|
InsufficientSnsTopicPolicyException: () => InsufficientSnsTopicPolicyException,
|
|
100
102
|
InvalidCloudWatchLogsLogGroupArnException: () => InvalidCloudWatchLogsLogGroupArnException,
|
|
@@ -139,6 +141,7 @@ __export(index_exports, {
|
|
|
139
141
|
LookupAttributeKey: () => LookupAttributeKey,
|
|
140
142
|
LookupEventsCommand: () => LookupEventsCommand,
|
|
141
143
|
MaxConcurrentQueriesException: () => MaxConcurrentQueriesException,
|
|
144
|
+
MaxEventSize: () => MaxEventSize,
|
|
142
145
|
MaximumNumberOfTrailsExceededException: () => MaximumNumberOfTrailsExceededException,
|
|
143
146
|
NoManagementAccountSLRExistsException: () => NoManagementAccountSLRExistsException,
|
|
144
147
|
NotOrganizationManagementAccountException: () => NotOrganizationManagementAccountException,
|
|
@@ -146,6 +149,7 @@ __export(index_exports, {
|
|
|
146
149
|
OperationNotPermittedException: () => OperationNotPermittedException,
|
|
147
150
|
OrganizationNotInAllFeaturesModeException: () => OrganizationNotInAllFeaturesModeException,
|
|
148
151
|
OrganizationsNotInUseException: () => OrganizationsNotInUseException,
|
|
152
|
+
PutEventConfigurationCommand: () => PutEventConfigurationCommand,
|
|
149
153
|
PutEventSelectorsCommand: () => PutEventSelectorsCommand,
|
|
150
154
|
PutInsightSelectorsCommand: () => PutInsightSelectorsCommand,
|
|
151
155
|
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
@@ -178,6 +182,7 @@ __export(index_exports, {
|
|
|
178
182
|
TrailAlreadyExistsException: () => TrailAlreadyExistsException,
|
|
179
183
|
TrailNotFoundException: () => TrailNotFoundException,
|
|
180
184
|
TrailNotProvidedException: () => TrailNotProvidedException,
|
|
185
|
+
Type: () => Type,
|
|
181
186
|
UnsupportedOperationException: () => UnsupportedOperationException,
|
|
182
187
|
UpdateChannelCommand: () => UpdateChannelCommand,
|
|
183
188
|
UpdateDashboardCommand: () => UpdateDashboardCommand,
|
|
@@ -2084,6 +2089,38 @@ var DashboardStatus = {
|
|
|
2084
2089
|
UPDATED: "UPDATED",
|
|
2085
2090
|
UPDATING: "UPDATING"
|
|
2086
2091
|
};
|
|
2092
|
+
var Type = {
|
|
2093
|
+
RequestContext: "RequestContext",
|
|
2094
|
+
TagContext: "TagContext"
|
|
2095
|
+
};
|
|
2096
|
+
var MaxEventSize = {
|
|
2097
|
+
Large: "Large",
|
|
2098
|
+
Standard: "Standard"
|
|
2099
|
+
};
|
|
2100
|
+
var InvalidEventDataStoreStatusException = class _InvalidEventDataStoreStatusException extends CloudTrailServiceException {
|
|
2101
|
+
static {
|
|
2102
|
+
__name(this, "InvalidEventDataStoreStatusException");
|
|
2103
|
+
}
|
|
2104
|
+
name = "InvalidEventDataStoreStatusException";
|
|
2105
|
+
$fault = "client";
|
|
2106
|
+
/**
|
|
2107
|
+
* <p>Brief description of the exception returned by the request.</p>
|
|
2108
|
+
* @public
|
|
2109
|
+
*/
|
|
2110
|
+
Message;
|
|
2111
|
+
/**
|
|
2112
|
+
* @internal
|
|
2113
|
+
*/
|
|
2114
|
+
constructor(opts) {
|
|
2115
|
+
super({
|
|
2116
|
+
name: "InvalidEventDataStoreStatusException",
|
|
2117
|
+
$fault: "client",
|
|
2118
|
+
...opts
|
|
2119
|
+
});
|
|
2120
|
+
Object.setPrototypeOf(this, _InvalidEventDataStoreStatusException.prototype);
|
|
2121
|
+
this.Message = opts.Message;
|
|
2122
|
+
}
|
|
2123
|
+
};
|
|
2087
2124
|
var ReadWriteType = {
|
|
2088
2125
|
All: "All",
|
|
2089
2126
|
ReadOnly: "ReadOnly",
|
|
@@ -2362,11 +2399,11 @@ var LookupAttributeKey = {
|
|
|
2362
2399
|
RESOURCE_TYPE: "ResourceType",
|
|
2363
2400
|
USERNAME: "Username"
|
|
2364
2401
|
};
|
|
2365
|
-
var
|
|
2402
|
+
var InsufficientIAMAccessPermissionException = class _InsufficientIAMAccessPermissionException extends CloudTrailServiceException {
|
|
2366
2403
|
static {
|
|
2367
|
-
__name(this, "
|
|
2404
|
+
__name(this, "InsufficientIAMAccessPermissionException");
|
|
2368
2405
|
}
|
|
2369
|
-
name = "
|
|
2406
|
+
name = "InsufficientIAMAccessPermissionException";
|
|
2370
2407
|
$fault = "client";
|
|
2371
2408
|
/**
|
|
2372
2409
|
* <p>Brief description of the exception returned by the request.</p>
|
|
@@ -2378,19 +2415,19 @@ var InvalidInsightSelectorsException = class _InvalidInsightSelectorsException e
|
|
|
2378
2415
|
*/
|
|
2379
2416
|
constructor(opts) {
|
|
2380
2417
|
super({
|
|
2381
|
-
name: "
|
|
2418
|
+
name: "InsufficientIAMAccessPermissionException",
|
|
2382
2419
|
$fault: "client",
|
|
2383
2420
|
...opts
|
|
2384
2421
|
});
|
|
2385
|
-
Object.setPrototypeOf(this,
|
|
2422
|
+
Object.setPrototypeOf(this, _InsufficientIAMAccessPermissionException.prototype);
|
|
2386
2423
|
this.Message = opts.Message;
|
|
2387
2424
|
}
|
|
2388
2425
|
};
|
|
2389
|
-
var
|
|
2426
|
+
var InvalidInsightSelectorsException = class _InvalidInsightSelectorsException extends CloudTrailServiceException {
|
|
2390
2427
|
static {
|
|
2391
|
-
__name(this, "
|
|
2428
|
+
__name(this, "InvalidInsightSelectorsException");
|
|
2392
2429
|
}
|
|
2393
|
-
name = "
|
|
2430
|
+
name = "InvalidInsightSelectorsException";
|
|
2394
2431
|
$fault = "client";
|
|
2395
2432
|
/**
|
|
2396
2433
|
* <p>Brief description of the exception returned by the request.</p>
|
|
@@ -2402,19 +2439,19 @@ var ResourcePolicyNotValidException = class _ResourcePolicyNotValidException ext
|
|
|
2402
2439
|
*/
|
|
2403
2440
|
constructor(opts) {
|
|
2404
2441
|
super({
|
|
2405
|
-
name: "
|
|
2442
|
+
name: "InvalidInsightSelectorsException",
|
|
2406
2443
|
$fault: "client",
|
|
2407
2444
|
...opts
|
|
2408
2445
|
});
|
|
2409
|
-
Object.setPrototypeOf(this,
|
|
2446
|
+
Object.setPrototypeOf(this, _InvalidInsightSelectorsException.prototype);
|
|
2410
2447
|
this.Message = opts.Message;
|
|
2411
2448
|
}
|
|
2412
2449
|
};
|
|
2413
|
-
var
|
|
2450
|
+
var ResourcePolicyNotValidException = class _ResourcePolicyNotValidException extends CloudTrailServiceException {
|
|
2414
2451
|
static {
|
|
2415
|
-
__name(this, "
|
|
2452
|
+
__name(this, "ResourcePolicyNotValidException");
|
|
2416
2453
|
}
|
|
2417
|
-
name = "
|
|
2454
|
+
name = "ResourcePolicyNotValidException";
|
|
2418
2455
|
$fault = "client";
|
|
2419
2456
|
/**
|
|
2420
2457
|
* <p>Brief description of the exception returned by the request.</p>
|
|
@@ -2426,19 +2463,19 @@ var DelegatedAdminAccountLimitExceededException = class _DelegatedAdminAccountLi
|
|
|
2426
2463
|
*/
|
|
2427
2464
|
constructor(opts) {
|
|
2428
2465
|
super({
|
|
2429
|
-
name: "
|
|
2466
|
+
name: "ResourcePolicyNotValidException",
|
|
2430
2467
|
$fault: "client",
|
|
2431
2468
|
...opts
|
|
2432
2469
|
});
|
|
2433
|
-
Object.setPrototypeOf(this,
|
|
2470
|
+
Object.setPrototypeOf(this, _ResourcePolicyNotValidException.prototype);
|
|
2434
2471
|
this.Message = opts.Message;
|
|
2435
2472
|
}
|
|
2436
2473
|
};
|
|
2437
|
-
var
|
|
2474
|
+
var DelegatedAdminAccountLimitExceededException = class _DelegatedAdminAccountLimitExceededException extends CloudTrailServiceException {
|
|
2438
2475
|
static {
|
|
2439
|
-
__name(this, "
|
|
2476
|
+
__name(this, "DelegatedAdminAccountLimitExceededException");
|
|
2440
2477
|
}
|
|
2441
|
-
name = "
|
|
2478
|
+
name = "DelegatedAdminAccountLimitExceededException";
|
|
2442
2479
|
$fault = "client";
|
|
2443
2480
|
/**
|
|
2444
2481
|
* <p>Brief description of the exception returned by the request.</p>
|
|
@@ -2450,11 +2487,11 @@ var InvalidEventDataStoreStatusException = class _InvalidEventDataStoreStatusExc
|
|
|
2450
2487
|
*/
|
|
2451
2488
|
constructor(opts) {
|
|
2452
2489
|
super({
|
|
2453
|
-
name: "
|
|
2490
|
+
name: "DelegatedAdminAccountLimitExceededException",
|
|
2454
2491
|
$fault: "client",
|
|
2455
2492
|
...opts
|
|
2456
2493
|
});
|
|
2457
|
-
Object.setPrototypeOf(this,
|
|
2494
|
+
Object.setPrototypeOf(this, _DelegatedAdminAccountLimitExceededException.prototype);
|
|
2458
2495
|
this.Message = opts.Message;
|
|
2459
2496
|
}
|
|
2460
2497
|
};
|
|
@@ -2622,6 +2659,12 @@ var se_GetDashboardCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2622
2659
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2623
2660
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2624
2661
|
}, "se_GetDashboardCommand");
|
|
2662
|
+
var se_GetEventConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2663
|
+
const headers = sharedHeaders("GetEventConfiguration");
|
|
2664
|
+
let body;
|
|
2665
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2666
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2667
|
+
}, "se_GetEventConfigurationCommand");
|
|
2625
2668
|
var se_GetEventDataStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2626
2669
|
const headers = sharedHeaders("GetEventDataStore");
|
|
2627
2670
|
let body;
|
|
@@ -2736,6 +2779,12 @@ var se_LookupEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2736
2779
|
body = JSON.stringify(se_LookupEventsRequest(input, context));
|
|
2737
2780
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2738
2781
|
}, "se_LookupEventsCommand");
|
|
2782
|
+
var se_PutEventConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2783
|
+
const headers = sharedHeaders("PutEventConfiguration");
|
|
2784
|
+
let body;
|
|
2785
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2786
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2787
|
+
}, "se_PutEventConfigurationCommand");
|
|
2739
2788
|
var se_PutEventSelectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2740
2789
|
const headers = sharedHeaders("PutEventSelectors");
|
|
2741
2790
|
let body;
|
|
@@ -3097,6 +3146,19 @@ var de_GetDashboardCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3097
3146
|
};
|
|
3098
3147
|
return response;
|
|
3099
3148
|
}, "de_GetDashboardCommand");
|
|
3149
|
+
var de_GetEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3150
|
+
if (output.statusCode >= 300) {
|
|
3151
|
+
return de_CommandError(output, context);
|
|
3152
|
+
}
|
|
3153
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3154
|
+
let contents = {};
|
|
3155
|
+
contents = (0, import_smithy_client._json)(data);
|
|
3156
|
+
const response = {
|
|
3157
|
+
$metadata: deserializeMetadata(output),
|
|
3158
|
+
...contents
|
|
3159
|
+
};
|
|
3160
|
+
return response;
|
|
3161
|
+
}, "de_GetEventConfigurationCommand");
|
|
3100
3162
|
var de_GetEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3101
3163
|
if (output.statusCode >= 300) {
|
|
3102
3164
|
return de_CommandError(output, context);
|
|
@@ -3344,6 +3406,19 @@ var de_LookupEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3344
3406
|
};
|
|
3345
3407
|
return response;
|
|
3346
3408
|
}, "de_LookupEventsCommand");
|
|
3409
|
+
var de_PutEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3410
|
+
if (output.statusCode >= 300) {
|
|
3411
|
+
return de_CommandError(output, context);
|
|
3412
|
+
}
|
|
3413
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3414
|
+
let contents = {};
|
|
3415
|
+
contents = (0, import_smithy_client._json)(data);
|
|
3416
|
+
const response = {
|
|
3417
|
+
$metadata: deserializeMetadata(output),
|
|
3418
|
+
...contents
|
|
3419
|
+
};
|
|
3420
|
+
return response;
|
|
3421
|
+
}, "de_PutEventConfigurationCommand");
|
|
3347
3422
|
var de_PutEventSelectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3348
3423
|
if (output.statusCode >= 300) {
|
|
3349
3424
|
return de_CommandError(output, context);
|
|
@@ -3796,6 +3871,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3796
3871
|
case "GenerateResponseException":
|
|
3797
3872
|
case "com.amazonaws.cloudtrail#GenerateResponseException":
|
|
3798
3873
|
throw await de_GenerateResponseExceptionRes(parsedOutput, context);
|
|
3874
|
+
case "InvalidEventDataStoreStatusException":
|
|
3875
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
3876
|
+
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
3799
3877
|
case "ImportNotFoundException":
|
|
3800
3878
|
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
3801
3879
|
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -3826,6 +3904,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3826
3904
|
case "InvalidLookupAttributesException":
|
|
3827
3905
|
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
3828
3906
|
throw await de_InvalidLookupAttributesExceptionRes(parsedOutput, context);
|
|
3907
|
+
case "InsufficientIAMAccessPermissionException":
|
|
3908
|
+
case "com.amazonaws.cloudtrail#InsufficientIAMAccessPermissionException":
|
|
3909
|
+
throw await de_InsufficientIAMAccessPermissionExceptionRes(parsedOutput, context);
|
|
3829
3910
|
case "InvalidInsightSelectorsException":
|
|
3830
3911
|
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
3831
3912
|
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
@@ -3841,9 +3922,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3841
3922
|
case "DelegatedAdminAccountLimitExceededException":
|
|
3842
3923
|
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
3843
3924
|
throw await de_DelegatedAdminAccountLimitExceededExceptionRes(parsedOutput, context);
|
|
3844
|
-
case "InvalidEventDataStoreStatusException":
|
|
3845
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
3846
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
3847
3925
|
case "AccountHasOngoingImportException":
|
|
3848
3926
|
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
3849
3927
|
throw await de_AccountHasOngoingImportExceptionRes(parsedOutput, context);
|
|
@@ -4150,6 +4228,15 @@ var de_InsufficientEncryptionPolicyExceptionRes = /* @__PURE__ */ __name(async (
|
|
|
4150
4228
|
});
|
|
4151
4229
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4152
4230
|
}, "de_InsufficientEncryptionPolicyExceptionRes");
|
|
4231
|
+
var de_InsufficientIAMAccessPermissionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4232
|
+
const body = parsedOutput.body;
|
|
4233
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
4234
|
+
const exception = new InsufficientIAMAccessPermissionException({
|
|
4235
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4236
|
+
...deserialized
|
|
4237
|
+
});
|
|
4238
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4239
|
+
}, "de_InsufficientIAMAccessPermissionExceptionRes");
|
|
4153
4240
|
var de_InsufficientS3BucketPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4154
4241
|
const body = parsedOutput.body;
|
|
4155
4242
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -5363,6 +5450,21 @@ var GetDashboardCommand = class extends import_smithy_client.Command.classBuilde
|
|
|
5363
5450
|
}
|
|
5364
5451
|
};
|
|
5365
5452
|
|
|
5453
|
+
// src/commands/GetEventConfigurationCommand.ts
|
|
5454
|
+
|
|
5455
|
+
|
|
5456
|
+
|
|
5457
|
+
var GetEventConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5458
|
+
return [
|
|
5459
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5460
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5461
|
+
];
|
|
5462
|
+
}).s("CloudTrail_20131101", "GetEventConfiguration", {}).n("CloudTrailClient", "GetEventConfigurationCommand").f(void 0, void 0).ser(se_GetEventConfigurationCommand).de(de_GetEventConfigurationCommand).build() {
|
|
5463
|
+
static {
|
|
5464
|
+
__name(this, "GetEventConfigurationCommand");
|
|
5465
|
+
}
|
|
5466
|
+
};
|
|
5467
|
+
|
|
5366
5468
|
// src/commands/GetEventDataStoreCommand.ts
|
|
5367
5469
|
|
|
5368
5470
|
|
|
@@ -5648,6 +5750,21 @@ var LookupEventsCommand = class extends import_smithy_client.Command.classBuilde
|
|
|
5648
5750
|
}
|
|
5649
5751
|
};
|
|
5650
5752
|
|
|
5753
|
+
// src/commands/PutEventConfigurationCommand.ts
|
|
5754
|
+
|
|
5755
|
+
|
|
5756
|
+
|
|
5757
|
+
var PutEventConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5758
|
+
return [
|
|
5759
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5760
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5761
|
+
];
|
|
5762
|
+
}).s("CloudTrail_20131101", "PutEventConfiguration", {}).n("CloudTrailClient", "PutEventConfigurationCommand").f(void 0, void 0).ser(se_PutEventConfigurationCommand).de(de_PutEventConfigurationCommand).build() {
|
|
5763
|
+
static {
|
|
5764
|
+
__name(this, "PutEventConfigurationCommand");
|
|
5765
|
+
}
|
|
5766
|
+
};
|
|
5767
|
+
|
|
5651
5768
|
// src/commands/PutEventSelectorsCommand.ts
|
|
5652
5769
|
|
|
5653
5770
|
|
|
@@ -5954,6 +6071,7 @@ var commands = {
|
|
|
5954
6071
|
GenerateQueryCommand,
|
|
5955
6072
|
GetChannelCommand,
|
|
5956
6073
|
GetDashboardCommand,
|
|
6074
|
+
GetEventConfigurationCommand,
|
|
5957
6075
|
GetEventDataStoreCommand,
|
|
5958
6076
|
GetEventSelectorsCommand,
|
|
5959
6077
|
GetImportCommand,
|
|
@@ -5973,6 +6091,7 @@ var commands = {
|
|
|
5973
6091
|
ListTagsCommand,
|
|
5974
6092
|
ListTrailsCommand,
|
|
5975
6093
|
LookupEventsCommand,
|
|
6094
|
+
PutEventConfigurationCommand,
|
|
5976
6095
|
PutEventSelectorsCommand,
|
|
5977
6096
|
PutInsightSelectorsCommand,
|
|
5978
6097
|
PutResourcePolicyCommand,
|
|
@@ -6070,6 +6189,7 @@ var paginateLookupEvents = (0, import_core.createPaginator)(CloudTrailClient, Lo
|
|
|
6070
6189
|
GenerateQueryCommand,
|
|
6071
6190
|
GetChannelCommand,
|
|
6072
6191
|
GetDashboardCommand,
|
|
6192
|
+
GetEventConfigurationCommand,
|
|
6073
6193
|
GetEventDataStoreCommand,
|
|
6074
6194
|
GetEventSelectorsCommand,
|
|
6075
6195
|
GetImportCommand,
|
|
@@ -6089,6 +6209,7 @@ var paginateLookupEvents = (0, import_core.createPaginator)(CloudTrailClient, Lo
|
|
|
6089
6209
|
ListTagsCommand,
|
|
6090
6210
|
ListTrailsCommand,
|
|
6091
6211
|
LookupEventsCommand,
|
|
6212
|
+
PutEventConfigurationCommand,
|
|
6092
6213
|
PutEventSelectorsCommand,
|
|
6093
6214
|
PutInsightSelectorsCommand,
|
|
6094
6215
|
PutResourcePolicyCommand,
|
|
@@ -6198,6 +6319,9 @@ var paginateLookupEvents = (0, import_core.createPaginator)(CloudTrailClient, Lo
|
|
|
6198
6319
|
FederationStatus,
|
|
6199
6320
|
GenerateResponseException,
|
|
6200
6321
|
DashboardStatus,
|
|
6322
|
+
Type,
|
|
6323
|
+
MaxEventSize,
|
|
6324
|
+
InvalidEventDataStoreStatusException,
|
|
6201
6325
|
ReadWriteType,
|
|
6202
6326
|
ImportStatus,
|
|
6203
6327
|
ImportNotFoundException,
|
|
@@ -6215,10 +6339,10 @@ var paginateLookupEvents = (0, import_core.createPaginator)(CloudTrailClient, Lo
|
|
|
6215
6339
|
InvalidLookupAttributesException,
|
|
6216
6340
|
EventCategory,
|
|
6217
6341
|
LookupAttributeKey,
|
|
6342
|
+
InsufficientIAMAccessPermissionException,
|
|
6218
6343
|
InvalidInsightSelectorsException,
|
|
6219
6344
|
ResourcePolicyNotValidException,
|
|
6220
6345
|
DelegatedAdminAccountLimitExceededException,
|
|
6221
|
-
InvalidEventDataStoreStatusException,
|
|
6222
6346
|
InvalidImportSourceException,
|
|
6223
6347
|
MaxConcurrentQueriesException
|
|
6224
6348
|
});
|
package/dist-es/CloudTrail.js
CHANGED
|
@@ -19,6 +19,7 @@ import { EnableFederationCommand, } from "./commands/EnableFederationCommand";
|
|
|
19
19
|
import { GenerateQueryCommand, } from "./commands/GenerateQueryCommand";
|
|
20
20
|
import { GetChannelCommand } from "./commands/GetChannelCommand";
|
|
21
21
|
import { GetDashboardCommand, } from "./commands/GetDashboardCommand";
|
|
22
|
+
import { GetEventConfigurationCommand, } from "./commands/GetEventConfigurationCommand";
|
|
22
23
|
import { GetEventDataStoreCommand, } from "./commands/GetEventDataStoreCommand";
|
|
23
24
|
import { GetEventSelectorsCommand, } from "./commands/GetEventSelectorsCommand";
|
|
24
25
|
import { GetImportCommand } from "./commands/GetImportCommand";
|
|
@@ -38,6 +39,7 @@ import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
|
38
39
|
import { ListTagsCommand } from "./commands/ListTagsCommand";
|
|
39
40
|
import { ListTrailsCommand } from "./commands/ListTrailsCommand";
|
|
40
41
|
import { LookupEventsCommand, } from "./commands/LookupEventsCommand";
|
|
42
|
+
import { PutEventConfigurationCommand, } from "./commands/PutEventConfigurationCommand";
|
|
41
43
|
import { PutEventSelectorsCommand, } from "./commands/PutEventSelectorsCommand";
|
|
42
44
|
import { PutInsightSelectorsCommand, } from "./commands/PutInsightSelectorsCommand";
|
|
43
45
|
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
@@ -77,6 +79,7 @@ const commands = {
|
|
|
77
79
|
GenerateQueryCommand,
|
|
78
80
|
GetChannelCommand,
|
|
79
81
|
GetDashboardCommand,
|
|
82
|
+
GetEventConfigurationCommand,
|
|
80
83
|
GetEventDataStoreCommand,
|
|
81
84
|
GetEventSelectorsCommand,
|
|
82
85
|
GetImportCommand,
|
|
@@ -96,6 +99,7 @@ const commands = {
|
|
|
96
99
|
ListTagsCommand,
|
|
97
100
|
ListTrailsCommand,
|
|
98
101
|
LookupEventsCommand,
|
|
102
|
+
PutEventConfigurationCommand,
|
|
99
103
|
PutEventSelectorsCommand,
|
|
100
104
|
PutInsightSelectorsCommand,
|
|
101
105
|
PutResourcePolicyCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetEventConfigurationCommand, se_GetEventConfigurationCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetEventConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("CloudTrail_20131101", "GetEventConfiguration", {})
|
|
17
|
+
.n("CloudTrailClient", "GetEventConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetEventConfigurationCommand)
|
|
20
|
+
.de(de_GetEventConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutEventConfigurationCommand, se_PutEventConfigurationCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutEventConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("CloudTrail_20131101", "PutEventConfiguration", {})
|
|
17
|
+
.n("CloudTrailClient", "PutEventConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutEventConfigurationCommand)
|
|
20
|
+
.de(de_PutEventConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./EnableFederationCommand";
|
|
|
17
17
|
export * from "./GenerateQueryCommand";
|
|
18
18
|
export * from "./GetChannelCommand";
|
|
19
19
|
export * from "./GetDashboardCommand";
|
|
20
|
+
export * from "./GetEventConfigurationCommand";
|
|
20
21
|
export * from "./GetEventDataStoreCommand";
|
|
21
22
|
export * from "./GetEventSelectorsCommand";
|
|
22
23
|
export * from "./GetImportCommand";
|
|
@@ -36,6 +37,7 @@ export * from "./ListQueriesCommand";
|
|
|
36
37
|
export * from "./ListTagsCommand";
|
|
37
38
|
export * from "./ListTrailsCommand";
|
|
38
39
|
export * from "./LookupEventsCommand";
|
|
40
|
+
export * from "./PutEventConfigurationCommand";
|
|
39
41
|
export * from "./PutEventSelectorsCommand";
|
|
40
42
|
export * from "./PutInsightSelectorsCommand";
|
|
41
43
|
export * from "./PutResourcePolicyCommand";
|
|
@@ -1025,6 +1025,28 @@ export const DashboardStatus = {
|
|
|
1025
1025
|
UPDATED: "UPDATED",
|
|
1026
1026
|
UPDATING: "UPDATING",
|
|
1027
1027
|
};
|
|
1028
|
+
export const Type = {
|
|
1029
|
+
RequestContext: "RequestContext",
|
|
1030
|
+
TagContext: "TagContext",
|
|
1031
|
+
};
|
|
1032
|
+
export const MaxEventSize = {
|
|
1033
|
+
Large: "Large",
|
|
1034
|
+
Standard: "Standard",
|
|
1035
|
+
};
|
|
1036
|
+
export class InvalidEventDataStoreStatusException extends __BaseException {
|
|
1037
|
+
name = "InvalidEventDataStoreStatusException";
|
|
1038
|
+
$fault = "client";
|
|
1039
|
+
Message;
|
|
1040
|
+
constructor(opts) {
|
|
1041
|
+
super({
|
|
1042
|
+
name: "InvalidEventDataStoreStatusException",
|
|
1043
|
+
$fault: "client",
|
|
1044
|
+
...opts,
|
|
1045
|
+
});
|
|
1046
|
+
Object.setPrototypeOf(this, InvalidEventDataStoreStatusException.prototype);
|
|
1047
|
+
this.Message = opts.Message;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1028
1050
|
export const ReadWriteType = {
|
|
1029
1051
|
All: "All",
|
|
1030
1052
|
ReadOnly: "ReadOnly",
|
|
@@ -1203,6 +1225,20 @@ export const LookupAttributeKey = {
|
|
|
1203
1225
|
RESOURCE_TYPE: "ResourceType",
|
|
1204
1226
|
USERNAME: "Username",
|
|
1205
1227
|
};
|
|
1228
|
+
export class InsufficientIAMAccessPermissionException extends __BaseException {
|
|
1229
|
+
name = "InsufficientIAMAccessPermissionException";
|
|
1230
|
+
$fault = "client";
|
|
1231
|
+
Message;
|
|
1232
|
+
constructor(opts) {
|
|
1233
|
+
super({
|
|
1234
|
+
name: "InsufficientIAMAccessPermissionException",
|
|
1235
|
+
$fault: "client",
|
|
1236
|
+
...opts,
|
|
1237
|
+
});
|
|
1238
|
+
Object.setPrototypeOf(this, InsufficientIAMAccessPermissionException.prototype);
|
|
1239
|
+
this.Message = opts.Message;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1206
1242
|
export class InvalidInsightSelectorsException extends __BaseException {
|
|
1207
1243
|
name = "InvalidInsightSelectorsException";
|
|
1208
1244
|
$fault = "client";
|
|
@@ -1245,20 +1281,6 @@ export class DelegatedAdminAccountLimitExceededException extends __BaseException
|
|
|
1245
1281
|
this.Message = opts.Message;
|
|
1246
1282
|
}
|
|
1247
1283
|
}
|
|
1248
|
-
export class InvalidEventDataStoreStatusException extends __BaseException {
|
|
1249
|
-
name = "InvalidEventDataStoreStatusException";
|
|
1250
|
-
$fault = "client";
|
|
1251
|
-
Message;
|
|
1252
|
-
constructor(opts) {
|
|
1253
|
-
super({
|
|
1254
|
-
name: "InvalidEventDataStoreStatusException",
|
|
1255
|
-
$fault: "client",
|
|
1256
|
-
...opts,
|
|
1257
|
-
});
|
|
1258
|
-
Object.setPrototypeOf(this, InvalidEventDataStoreStatusException.prototype);
|
|
1259
|
-
this.Message = opts.Message;
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
1284
|
export class InvalidImportSourceException extends __BaseException {
|
|
1263
1285
|
name = "InvalidImportSourceException";
|
|
1264
1286
|
$fault = "client";
|