@aws-sdk/client-cloudtrail 3.927.0 → 3.929.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 (80) hide show
  1. package/dist-cjs/index.js +2898 -3312
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudTrailClient.js +2 -0
  4. package/dist-es/commands/AddTagsCommand.js +3 -9
  5. package/dist-es/commands/CancelQueryCommand.js +3 -9
  6. package/dist-es/commands/CreateChannelCommand.js +3 -9
  7. package/dist-es/commands/CreateDashboardCommand.js +3 -9
  8. package/dist-es/commands/CreateEventDataStoreCommand.js +3 -9
  9. package/dist-es/commands/CreateTrailCommand.js +3 -9
  10. package/dist-es/commands/DeleteChannelCommand.js +3 -9
  11. package/dist-es/commands/DeleteDashboardCommand.js +3 -9
  12. package/dist-es/commands/DeleteEventDataStoreCommand.js +3 -9
  13. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  14. package/dist-es/commands/DeleteTrailCommand.js +3 -9
  15. package/dist-es/commands/DeregisterOrganizationDelegatedAdminCommand.js +3 -9
  16. package/dist-es/commands/DescribeQueryCommand.js +3 -9
  17. package/dist-es/commands/DescribeTrailsCommand.js +3 -9
  18. package/dist-es/commands/DisableFederationCommand.js +3 -9
  19. package/dist-es/commands/EnableFederationCommand.js +3 -9
  20. package/dist-es/commands/GenerateQueryCommand.js +3 -9
  21. package/dist-es/commands/GetChannelCommand.js +3 -9
  22. package/dist-es/commands/GetDashboardCommand.js +3 -9
  23. package/dist-es/commands/GetEventConfigurationCommand.js +3 -9
  24. package/dist-es/commands/GetEventDataStoreCommand.js +3 -9
  25. package/dist-es/commands/GetEventSelectorsCommand.js +3 -9
  26. package/dist-es/commands/GetImportCommand.js +3 -9
  27. package/dist-es/commands/GetInsightSelectorsCommand.js +3 -9
  28. package/dist-es/commands/GetQueryResultsCommand.js +3 -9
  29. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  30. package/dist-es/commands/GetTrailCommand.js +3 -9
  31. package/dist-es/commands/GetTrailStatusCommand.js +3 -9
  32. package/dist-es/commands/ListChannelsCommand.js +3 -9
  33. package/dist-es/commands/ListDashboardsCommand.js +3 -9
  34. package/dist-es/commands/ListEventDataStoresCommand.js +3 -9
  35. package/dist-es/commands/ListImportFailuresCommand.js +3 -9
  36. package/dist-es/commands/ListImportsCommand.js +3 -9
  37. package/dist-es/commands/ListInsightsMetricDataCommand.js +3 -9
  38. package/dist-es/commands/ListPublicKeysCommand.js +3 -9
  39. package/dist-es/commands/ListQueriesCommand.js +3 -9
  40. package/dist-es/commands/ListTagsCommand.js +3 -9
  41. package/dist-es/commands/ListTrailsCommand.js +3 -9
  42. package/dist-es/commands/LookupEventsCommand.js +3 -9
  43. package/dist-es/commands/PutEventConfigurationCommand.js +3 -9
  44. package/dist-es/commands/PutEventSelectorsCommand.js +3 -9
  45. package/dist-es/commands/PutInsightSelectorsCommand.js +3 -9
  46. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  47. package/dist-es/commands/RegisterOrganizationDelegatedAdminCommand.js +3 -9
  48. package/dist-es/commands/RemoveTagsCommand.js +3 -9
  49. package/dist-es/commands/RestoreEventDataStoreCommand.js +3 -9
  50. package/dist-es/commands/SearchSampleQueriesCommand.js +3 -9
  51. package/dist-es/commands/StartDashboardRefreshCommand.js +3 -9
  52. package/dist-es/commands/StartEventDataStoreIngestionCommand.js +3 -9
  53. package/dist-es/commands/StartImportCommand.js +3 -9
  54. package/dist-es/commands/StartLoggingCommand.js +3 -9
  55. package/dist-es/commands/StartQueryCommand.js +3 -9
  56. package/dist-es/commands/StopEventDataStoreIngestionCommand.js +3 -9
  57. package/dist-es/commands/StopImportCommand.js +3 -9
  58. package/dist-es/commands/StopLoggingCommand.js +3 -9
  59. package/dist-es/commands/UpdateChannelCommand.js +3 -9
  60. package/dist-es/commands/UpdateDashboardCommand.js +3 -9
  61. package/dist-es/commands/UpdateEventDataStoreCommand.js +3 -9
  62. package/dist-es/commands/UpdateTrailCommand.js +3 -9
  63. package/dist-es/runtimeConfig.shared.js +7 -0
  64. package/dist-es/schemas/schemas_0.js +2537 -0
  65. package/dist-types/CloudTrailClient.d.ts +10 -1
  66. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  67. package/dist-types/runtimeConfig.d.ts +1 -0
  68. package/dist-types/runtimeConfig.native.d.ts +1 -0
  69. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  70. package/dist-types/schemas/schemas_0.d.ts +341 -0
  71. package/dist-types/ts3.4/CloudTrailClient.d.ts +4 -0
  72. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  73. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  74. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  75. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  76. package/dist-types/ts3.4/schemas/schemas_0.d.ts +346 -0
  77. package/package.json +5 -5
  78. package/dist-es/protocols/Aws_json1_1.js +0 -2645
  79. package/dist-types/protocols/Aws_json1_1.d.ts +0 -533
  80. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -713
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SearchSampleQueriesCommand, se_SearchSampleQueriesCommand } from "../protocols/Aws_json1_1";
4
+ import { SearchSampleQueries } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SearchSampleQueriesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "SearchSampleQueries", {})
17
13
  .n("CloudTrailClient", "SearchSampleQueriesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SearchSampleQueriesCommand)
20
- .de(de_SearchSampleQueriesCommand)
14
+ .sc(SearchSampleQueries)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartDashboardRefreshCommand, se_StartDashboardRefreshCommand } from "../protocols/Aws_json1_1";
4
+ import { StartDashboardRefresh } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartDashboardRefreshCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StartDashboardRefresh", {})
17
13
  .n("CloudTrailClient", "StartDashboardRefreshCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartDashboardRefreshCommand)
20
- .de(de_StartDashboardRefreshCommand)
14
+ .sc(StartDashboardRefresh)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartEventDataStoreIngestionCommand, se_StartEventDataStoreIngestionCommand, } from "../protocols/Aws_json1_1";
4
+ import { StartEventDataStoreIngestion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartEventDataStoreIngestionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StartEventDataStoreIngestion", {})
17
13
  .n("CloudTrailClient", "StartEventDataStoreIngestionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartEventDataStoreIngestionCommand)
20
- .de(de_StartEventDataStoreIngestionCommand)
14
+ .sc(StartEventDataStoreIngestion)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartImportCommand, se_StartImportCommand } from "../protocols/Aws_json1_1";
4
+ import { StartImport } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartImportCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StartImport", {})
17
13
  .n("CloudTrailClient", "StartImportCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartImportCommand)
20
- .de(de_StartImportCommand)
14
+ .sc(StartImport)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartLoggingCommand, se_StartLoggingCommand } from "../protocols/Aws_json1_1";
4
+ import { StartLogging } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartLoggingCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StartLogging", {})
17
13
  .n("CloudTrailClient", "StartLoggingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartLoggingCommand)
20
- .de(de_StartLoggingCommand)
14
+ .sc(StartLogging)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartQueryCommand, se_StartQueryCommand } from "../protocols/Aws_json1_1";
4
+ import { StartQuery } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartQueryCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StartQuery", {})
17
13
  .n("CloudTrailClient", "StartQueryCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartQueryCommand)
20
- .de(de_StartQueryCommand)
14
+ .sc(StartQuery)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopEventDataStoreIngestionCommand, se_StopEventDataStoreIngestionCommand } from "../protocols/Aws_json1_1";
4
+ import { StopEventDataStoreIngestion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopEventDataStoreIngestionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StopEventDataStoreIngestion", {})
17
13
  .n("CloudTrailClient", "StopEventDataStoreIngestionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopEventDataStoreIngestionCommand)
20
- .de(de_StopEventDataStoreIngestionCommand)
14
+ .sc(StopEventDataStoreIngestion)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopImportCommand, se_StopImportCommand } from "../protocols/Aws_json1_1";
4
+ import { StopImport } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopImportCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StopImport", {})
17
13
  .n("CloudTrailClient", "StopImportCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopImportCommand)
20
- .de(de_StopImportCommand)
14
+ .sc(StopImport)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopLoggingCommand, se_StopLoggingCommand } from "../protocols/Aws_json1_1";
4
+ import { StopLogging } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopLoggingCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "StopLogging", {})
17
13
  .n("CloudTrailClient", "StopLoggingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopLoggingCommand)
20
- .de(de_StopLoggingCommand)
14
+ .sc(StopLogging)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateChannelCommand, se_UpdateChannelCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateChannel } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateChannelCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "UpdateChannel", {})
17
13
  .n("CloudTrailClient", "UpdateChannelCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateChannelCommand)
20
- .de(de_UpdateChannelCommand)
14
+ .sc(UpdateChannel)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateDashboardCommand, se_UpdateDashboardCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateDashboard } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateDashboardCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "UpdateDashboard", {})
17
13
  .n("CloudTrailClient", "UpdateDashboardCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateDashboardCommand)
20
- .de(de_UpdateDashboardCommand)
14
+ .sc(UpdateDashboard)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateEventDataStoreCommand, se_UpdateEventDataStoreCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateEventDataStore } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateEventDataStoreCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "UpdateEventDataStore", {})
17
13
  .n("CloudTrailClient", "UpdateEventDataStoreCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateEventDataStoreCommand)
20
- .de(de_UpdateEventDataStoreCommand)
14
+ .sc(UpdateEventDataStore)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTrailCommand, se_UpdateTrailCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateTrail } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTrailCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudTrail_20131101", "UpdateTrail", {})
17
13
  .n("CloudTrailClient", "UpdateTrailCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTrailCommand)
20
- .de(de_UpdateTrailCommand)
14
+ .sc(UpdateTrail)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.cloudtrail",
29
+ serviceTarget: "CloudTrail_20131101",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "CloudTrail",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,