@aws-sdk/client-cloudtrail 3.478.0 → 3.481.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 (197) hide show
  1. package/dist-cjs/commands/AddTagsCommand.js +18 -41
  2. package/dist-cjs/commands/CancelQueryCommand.js +18 -41
  3. package/dist-cjs/commands/CreateChannelCommand.js +18 -41
  4. package/dist-cjs/commands/CreateEventDataStoreCommand.js +18 -41
  5. package/dist-cjs/commands/CreateTrailCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteChannelCommand.js +18 -41
  7. package/dist-cjs/commands/DeleteEventDataStoreCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteTrailCommand.js +18 -41
  10. package/dist-cjs/commands/DeregisterOrganizationDelegatedAdminCommand.js +18 -41
  11. package/dist-cjs/commands/DescribeQueryCommand.js +18 -41
  12. package/dist-cjs/commands/DescribeTrailsCommand.js +18 -41
  13. package/dist-cjs/commands/DisableFederationCommand.js +18 -41
  14. package/dist-cjs/commands/EnableFederationCommand.js +18 -41
  15. package/dist-cjs/commands/GetChannelCommand.js +18 -41
  16. package/dist-cjs/commands/GetEventDataStoreCommand.js +18 -41
  17. package/dist-cjs/commands/GetEventSelectorsCommand.js +18 -41
  18. package/dist-cjs/commands/GetImportCommand.js +18 -41
  19. package/dist-cjs/commands/GetInsightSelectorsCommand.js +18 -41
  20. package/dist-cjs/commands/GetQueryResultsCommand.js +18 -41
  21. package/dist-cjs/commands/GetResourcePolicyCommand.js +18 -41
  22. package/dist-cjs/commands/GetTrailCommand.js +18 -41
  23. package/dist-cjs/commands/GetTrailStatusCommand.js +18 -41
  24. package/dist-cjs/commands/ListChannelsCommand.js +18 -41
  25. package/dist-cjs/commands/ListEventDataStoresCommand.js +18 -41
  26. package/dist-cjs/commands/ListImportFailuresCommand.js +18 -41
  27. package/dist-cjs/commands/ListImportsCommand.js +18 -41
  28. package/dist-cjs/commands/ListPublicKeysCommand.js +18 -41
  29. package/dist-cjs/commands/ListQueriesCommand.js +18 -41
  30. package/dist-cjs/commands/ListTagsCommand.js +18 -41
  31. package/dist-cjs/commands/ListTrailsCommand.js +18 -41
  32. package/dist-cjs/commands/LookupEventsCommand.js +18 -41
  33. package/dist-cjs/commands/PutEventSelectorsCommand.js +18 -41
  34. package/dist-cjs/commands/PutInsightSelectorsCommand.js +18 -41
  35. package/dist-cjs/commands/PutResourcePolicyCommand.js +18 -41
  36. package/dist-cjs/commands/RegisterOrganizationDelegatedAdminCommand.js +18 -41
  37. package/dist-cjs/commands/RemoveTagsCommand.js +18 -41
  38. package/dist-cjs/commands/RestoreEventDataStoreCommand.js +18 -41
  39. package/dist-cjs/commands/StartEventDataStoreIngestionCommand.js +18 -41
  40. package/dist-cjs/commands/StartImportCommand.js +18 -41
  41. package/dist-cjs/commands/StartLoggingCommand.js +18 -41
  42. package/dist-cjs/commands/StartQueryCommand.js +18 -41
  43. package/dist-cjs/commands/StopEventDataStoreIngestionCommand.js +18 -41
  44. package/dist-cjs/commands/StopImportCommand.js +18 -41
  45. package/dist-cjs/commands/StopLoggingCommand.js +18 -41
  46. package/dist-cjs/commands/UpdateChannelCommand.js +18 -41
  47. package/dist-cjs/commands/UpdateEventDataStoreCommand.js +18 -41
  48. package/dist-cjs/commands/UpdateTrailCommand.js +18 -41
  49. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  50. package/dist-es/commands/AddTagsCommand.js +18 -41
  51. package/dist-es/commands/CancelQueryCommand.js +18 -41
  52. package/dist-es/commands/CreateChannelCommand.js +18 -41
  53. package/dist-es/commands/CreateEventDataStoreCommand.js +18 -41
  54. package/dist-es/commands/CreateTrailCommand.js +18 -41
  55. package/dist-es/commands/DeleteChannelCommand.js +18 -41
  56. package/dist-es/commands/DeleteEventDataStoreCommand.js +18 -41
  57. package/dist-es/commands/DeleteResourcePolicyCommand.js +18 -41
  58. package/dist-es/commands/DeleteTrailCommand.js +18 -41
  59. package/dist-es/commands/DeregisterOrganizationDelegatedAdminCommand.js +18 -41
  60. package/dist-es/commands/DescribeQueryCommand.js +18 -41
  61. package/dist-es/commands/DescribeTrailsCommand.js +18 -41
  62. package/dist-es/commands/DisableFederationCommand.js +18 -41
  63. package/dist-es/commands/EnableFederationCommand.js +18 -41
  64. package/dist-es/commands/GetChannelCommand.js +18 -41
  65. package/dist-es/commands/GetEventDataStoreCommand.js +18 -41
  66. package/dist-es/commands/GetEventSelectorsCommand.js +18 -41
  67. package/dist-es/commands/GetImportCommand.js +18 -41
  68. package/dist-es/commands/GetInsightSelectorsCommand.js +18 -41
  69. package/dist-es/commands/GetQueryResultsCommand.js +18 -41
  70. package/dist-es/commands/GetResourcePolicyCommand.js +18 -41
  71. package/dist-es/commands/GetTrailCommand.js +18 -41
  72. package/dist-es/commands/GetTrailStatusCommand.js +18 -41
  73. package/dist-es/commands/ListChannelsCommand.js +18 -41
  74. package/dist-es/commands/ListEventDataStoresCommand.js +18 -41
  75. package/dist-es/commands/ListImportFailuresCommand.js +18 -41
  76. package/dist-es/commands/ListImportsCommand.js +18 -41
  77. package/dist-es/commands/ListPublicKeysCommand.js +18 -41
  78. package/dist-es/commands/ListQueriesCommand.js +18 -41
  79. package/dist-es/commands/ListTagsCommand.js +18 -41
  80. package/dist-es/commands/ListTrailsCommand.js +18 -41
  81. package/dist-es/commands/LookupEventsCommand.js +18 -41
  82. package/dist-es/commands/PutEventSelectorsCommand.js +18 -41
  83. package/dist-es/commands/PutInsightSelectorsCommand.js +18 -41
  84. package/dist-es/commands/PutResourcePolicyCommand.js +18 -41
  85. package/dist-es/commands/RegisterOrganizationDelegatedAdminCommand.js +18 -41
  86. package/dist-es/commands/RemoveTagsCommand.js +18 -41
  87. package/dist-es/commands/RestoreEventDataStoreCommand.js +18 -41
  88. package/dist-es/commands/StartEventDataStoreIngestionCommand.js +18 -41
  89. package/dist-es/commands/StartImportCommand.js +18 -41
  90. package/dist-es/commands/StartLoggingCommand.js +18 -41
  91. package/dist-es/commands/StartQueryCommand.js +18 -41
  92. package/dist-es/commands/StopEventDataStoreIngestionCommand.js +18 -41
  93. package/dist-es/commands/StopImportCommand.js +18 -41
  94. package/dist-es/commands/StopLoggingCommand.js +18 -41
  95. package/dist-es/commands/UpdateChannelCommand.js +18 -41
  96. package/dist-es/commands/UpdateEventDataStoreCommand.js +18 -41
  97. package/dist-es/commands/UpdateTrailCommand.js +18 -41
  98. package/dist-es/endpoint/EndpointParameters.js +6 -0
  99. package/dist-types/commands/AddTagsCommand.d.ts +6 -21
  100. package/dist-types/commands/CancelQueryCommand.d.ts +6 -21
  101. package/dist-types/commands/CreateChannelCommand.d.ts +6 -21
  102. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +6 -21
  103. package/dist-types/commands/CreateTrailCommand.d.ts +6 -21
  104. package/dist-types/commands/DeleteChannelCommand.d.ts +6 -21
  105. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +6 -21
  106. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -21
  107. package/dist-types/commands/DeleteTrailCommand.d.ts +6 -21
  108. package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +6 -21
  109. package/dist-types/commands/DescribeQueryCommand.d.ts +6 -21
  110. package/dist-types/commands/DescribeTrailsCommand.d.ts +6 -21
  111. package/dist-types/commands/DisableFederationCommand.d.ts +6 -21
  112. package/dist-types/commands/EnableFederationCommand.d.ts +6 -21
  113. package/dist-types/commands/GetChannelCommand.d.ts +6 -21
  114. package/dist-types/commands/GetEventDataStoreCommand.d.ts +6 -21
  115. package/dist-types/commands/GetEventSelectorsCommand.d.ts +6 -21
  116. package/dist-types/commands/GetImportCommand.d.ts +6 -21
  117. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +6 -21
  118. package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -21
  119. package/dist-types/commands/GetResourcePolicyCommand.d.ts +6 -21
  120. package/dist-types/commands/GetTrailCommand.d.ts +6 -21
  121. package/dist-types/commands/GetTrailStatusCommand.d.ts +6 -21
  122. package/dist-types/commands/ListChannelsCommand.d.ts +6 -21
  123. package/dist-types/commands/ListEventDataStoresCommand.d.ts +6 -21
  124. package/dist-types/commands/ListImportFailuresCommand.d.ts +6 -21
  125. package/dist-types/commands/ListImportsCommand.d.ts +6 -21
  126. package/dist-types/commands/ListPublicKeysCommand.d.ts +6 -21
  127. package/dist-types/commands/ListQueriesCommand.d.ts +6 -21
  128. package/dist-types/commands/ListTagsCommand.d.ts +6 -21
  129. package/dist-types/commands/ListTrailsCommand.d.ts +6 -21
  130. package/dist-types/commands/LookupEventsCommand.d.ts +6 -21
  131. package/dist-types/commands/PutEventSelectorsCommand.d.ts +6 -21
  132. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +6 -21
  133. package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -21
  134. package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +6 -21
  135. package/dist-types/commands/RemoveTagsCommand.d.ts +6 -21
  136. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +6 -21
  137. package/dist-types/commands/StartEventDataStoreIngestionCommand.d.ts +6 -21
  138. package/dist-types/commands/StartImportCommand.d.ts +6 -21
  139. package/dist-types/commands/StartLoggingCommand.d.ts +6 -21
  140. package/dist-types/commands/StartQueryCommand.d.ts +6 -21
  141. package/dist-types/commands/StopEventDataStoreIngestionCommand.d.ts +6 -21
  142. package/dist-types/commands/StopImportCommand.d.ts +6 -21
  143. package/dist-types/commands/StopLoggingCommand.d.ts +6 -21
  144. package/dist-types/commands/UpdateChannelCommand.d.ts +6 -21
  145. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +6 -21
  146. package/dist-types/commands/UpdateTrailCommand.d.ts +6 -21
  147. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  148. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +12 -23
  149. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +14 -23
  150. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +14 -23
  151. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +12 -24
  152. package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +14 -23
  153. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +14 -23
  154. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +12 -24
  156. package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +14 -23
  157. package/dist-types/ts3.4/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +12 -24
  158. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +14 -23
  159. package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +14 -23
  160. package/dist-types/ts3.4/commands/DisableFederationCommand.d.ts +14 -23
  161. package/dist-types/ts3.4/commands/EnableFederationCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +14 -23
  164. package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +14 -23
  165. package/dist-types/ts3.4/commands/GetImportCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +14 -23
  169. package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +14 -23
  170. package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +14 -23
  171. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +14 -23
  173. package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +14 -23
  175. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +14 -23
  177. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +14 -23
  178. package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +14 -23
  179. package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +14 -23
  180. package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +14 -23
  181. package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +14 -23
  182. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +12 -24
  184. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +12 -24
  186. package/dist-types/ts3.4/commands/StartEventDataStoreIngestionCommand.d.ts +12 -24
  187. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +14 -23
  188. package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +14 -23
  189. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/StopEventDataStoreIngestionCommand.d.ts +12 -24
  191. package/dist-types/ts3.4/commands/StopImportCommand.d.ts +14 -23
  192. package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +14 -23
  194. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +12 -24
  195. package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +14 -23
  196. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  197. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopEventDataStoreIngestionCommand, se_StopEventDataStoreIngestionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StopEventDataStoreIngestionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopEventDataStoreIngestionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "StopEventDataStoreIngestionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "StopEventDataStoreIngestion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopEventDataStoreIngestionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopEventDataStoreIngestionCommand(output, context);
46
- }
7
+ export class StopEventDataStoreIngestionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "StopEventDataStoreIngestion", {})
19
+ .n("CloudTrailClient", "StopEventDataStoreIngestionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopEventDataStoreIngestionCommand)
22
+ .de(de_StopEventDataStoreIngestionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopImportCommand, se_StopImportCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StopImportCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopImportCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "StopImportCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "StopImport",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopImportCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopImportCommand(output, context);
46
- }
7
+ export class StopImportCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "StopImport", {})
19
+ .n("CloudTrailClient", "StopImportCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopImportCommand)
22
+ .de(de_StopImportCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopLoggingCommand, se_StopLoggingCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StopLoggingCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopLoggingCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "StopLoggingCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "StopLogging",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopLoggingCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopLoggingCommand(output, context);
46
- }
7
+ export class StopLoggingCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "StopLogging", {})
19
+ .n("CloudTrailClient", "StopLoggingCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopLoggingCommand)
22
+ .de(de_StopLoggingCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateChannelCommand, se_UpdateChannelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateChannelCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateChannelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "UpdateChannelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "UpdateChannel",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateChannelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateChannelCommand(output, context);
46
- }
7
+ export class UpdateChannelCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "UpdateChannel", {})
19
+ .n("CloudTrailClient", "UpdateChannelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateChannelCommand)
22
+ .de(de_UpdateChannelCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateEventDataStoreCommand, se_UpdateEventDataStoreCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateEventDataStoreCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateEventDataStoreCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "UpdateEventDataStoreCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "UpdateEventDataStore",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateEventDataStoreCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateEventDataStoreCommand(output, context);
46
- }
7
+ export class UpdateEventDataStoreCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "UpdateEventDataStore", {})
19
+ .n("CloudTrailClient", "UpdateEventDataStoreCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateEventDataStoreCommand)
22
+ .de(de_UpdateEventDataStoreCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateTrailCommand, se_UpdateTrailCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateTrailCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTrailCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudTrailClient";
26
- const commandName = "UpdateTrailCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudTrail_20131101",
35
- operation: "UpdateTrail",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateTrailCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateTrailCommand(output, context);
46
- }
7
+ export class UpdateTrailCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CloudTrail_20131101", "UpdateTrail", {})
19
+ .n("CloudTrailClient", "UpdateTrailCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateTrailCommand)
22
+ .de(de_UpdateTrailCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "cloudtrail",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
5
4
  import { AddTagsRequest, AddTagsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddTagsCommandInput extends AddTagsRequest {
21
20
  */
22
21
  export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddTagsCommand_base: {
24
+ new (input: AddTagsCommandInput): import("@smithy/smithy-client").CommandImpl<AddTagsCommandInput, AddTagsCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds one or more tags to a trail, event data store, or channel, up to a limit of 50. Overwrites an
@@ -147,23 +150,5 @@ export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer
147
150
  * <p>Base exception class for all service exceptions from CloudTrail service.</p>
148
151
  *
149
152
  */
150
- export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, CloudTrailClientResolvedConfig> {
151
- readonly input: AddTagsCommandInput;
152
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
153
- /**
154
- * @public
155
- */
156
- constructor(input: AddTagsCommandInput);
157
- /**
158
- * @internal
159
- */
160
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddTagsCommandInput, AddTagsCommandOutput>;
161
- /**
162
- * @internal
163
- */
164
- private serialize;
165
- /**
166
- * @internal
167
- */
168
- private deserialize;
153
+ export declare class AddTagsCommand extends AddTagsCommand_base {
169
154
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
5
4
  import { CancelQueryRequest, CancelQueryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelQueryCommandInput extends CancelQueryRequest {
21
20
  */
22
21
  export interface CancelQueryCommandOutput extends CancelQueryResponse, __MetadataBearer {
23
22
  }
23
+ declare const CancelQueryCommand_base: {
24
+ new (input: CancelQueryCommandInput): import("@smithy/smithy-client").CommandImpl<CancelQueryCommandInput, CancelQueryCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancels a query if the query is not in a terminated state, such as
@@ -94,23 +97,5 @@ export interface CancelQueryCommandOutput extends CancelQueryResponse, __Metadat
94
97
  * <p>Base exception class for all service exceptions from CloudTrail service.</p>
95
98
  *
96
99
  */
97
- export declare class CancelQueryCommand extends $Command<CancelQueryCommandInput, CancelQueryCommandOutput, CloudTrailClientResolvedConfig> {
98
- readonly input: CancelQueryCommandInput;
99
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
100
- /**
101
- * @public
102
- */
103
- constructor(input: CancelQueryCommandInput);
104
- /**
105
- * @internal
106
- */
107
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelQueryCommandInput, CancelQueryCommandOutput>;
108
- /**
109
- * @internal
110
- */
111
- private serialize;
112
- /**
113
- * @internal
114
- */
115
- private deserialize;
100
+ export declare class CancelQueryCommand extends CancelQueryCommand_base {
116
101
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
5
4
  import { CreateChannelRequest, CreateChannelResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateChannelCommandInput extends CreateChannelRequest {
21
20
  */
22
21
  export interface CreateChannelCommandOutput extends CreateChannelResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateChannelCommand_base: {
24
+ new (input: CreateChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateChannelCommandInput, CreateChannelCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a channel for CloudTrail to ingest events from a partner or external source.
@@ -124,23 +127,5 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
124
127
  * <p>Base exception class for all service exceptions from CloudTrail service.</p>
125
128
  *
126
129
  */
127
- export declare class CreateChannelCommand extends $Command<CreateChannelCommandInput, CreateChannelCommandOutput, CloudTrailClientResolvedConfig> {
128
- readonly input: CreateChannelCommandInput;
129
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
130
- /**
131
- * @public
132
- */
133
- constructor(input: CreateChannelCommandInput);
134
- /**
135
- * @internal
136
- */
137
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateChannelCommandInput, CreateChannelCommandOutput>;
138
- /**
139
- * @internal
140
- */
141
- private serialize;
142
- /**
143
- * @internal
144
- */
145
- private deserialize;
130
+ export declare class CreateChannelCommand extends CreateChannelCommand_base {
146
131
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
5
4
  import { CreateEventDataStoreRequest, CreateEventDataStoreResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateEventDataStoreCommandInput extends CreateEventDataStoreRe
21
20
  */
22
21
  export interface CreateEventDataStoreCommandOutput extends CreateEventDataStoreResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateEventDataStoreCommand_base: {
24
+ new (input: CreateEventDataStoreCommandInput): import("@smithy/smithy-client").CommandImpl<CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a new event data store.</p>
@@ -230,23 +233,5 @@ export interface CreateEventDataStoreCommandOutput extends CreateEventDataStoreR
230
233
  * <p>Base exception class for all service exceptions from CloudTrail service.</p>
231
234
  *
232
235
  */
233
- export declare class CreateEventDataStoreCommand extends $Command<CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
234
- readonly input: CreateEventDataStoreCommandInput;
235
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
236
- /**
237
- * @public
238
- */
239
- constructor(input: CreateEventDataStoreCommandInput);
240
- /**
241
- * @internal
242
- */
243
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput>;
244
- /**
245
- * @internal
246
- */
247
- private serialize;
248
- /**
249
- * @internal
250
- */
251
- private deserialize;
236
+ export declare class CreateEventDataStoreCommand extends CreateEventDataStoreCommand_base {
252
237
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
5
4
  import { CreateTrailRequest, CreateTrailResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateTrailCommandInput extends CreateTrailRequest {
21
20
  */
22
21
  export interface CreateTrailCommandOutput extends CreateTrailResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateTrailCommand_base: {
24
+ new (input: CreateTrailCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTrailCommandInput, CreateTrailCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
@@ -221,23 +224,5 @@ export interface CreateTrailCommandOutput extends CreateTrailResponse, __Metadat
221
224
  * <p>Base exception class for all service exceptions from CloudTrail service.</p>
222
225
  *
223
226
  */
224
- export declare class CreateTrailCommand extends $Command<CreateTrailCommandInput, CreateTrailCommandOutput, CloudTrailClientResolvedConfig> {
225
- readonly input: CreateTrailCommandInput;
226
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
227
- /**
228
- * @public
229
- */
230
- constructor(input: CreateTrailCommandInput);
231
- /**
232
- * @internal
233
- */
234
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTrailCommandInput, CreateTrailCommandOutput>;
235
- /**
236
- * @internal
237
- */
238
- private serialize;
239
- /**
240
- * @internal
241
- */
242
- private deserialize;
227
+ export declare class CreateTrailCommand extends CreateTrailCommand_base {
243
228
  }