@aws-sdk/client-cloudtrail 3.261.0 → 3.264.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 (79) hide show
  1. package/README.md +13 -12
  2. package/dist-cjs/CloudTrail.js +90 -0
  3. package/dist-cjs/commands/CreateChannelCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteChannelCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
  6. package/dist-cjs/commands/GetResourcePolicyCommand.js +46 -0
  7. package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateChannelCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +1 -1
  11. package/dist-cjs/models/models_0.js +181 -30
  12. package/dist-cjs/protocols/Aws_json1_1.js +602 -2
  13. package/dist-es/CloudTrail.js +90 -0
  14. package/dist-es/commands/CreateChannelCommand.js +42 -0
  15. package/dist-es/commands/DeleteChannelCommand.js +42 -0
  16. package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
  17. package/dist-es/commands/GetResourcePolicyCommand.js +42 -0
  18. package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
  19. package/dist-es/commands/UpdateChannelCommand.js +42 -0
  20. package/dist-es/commands/index.js +6 -0
  21. package/dist-es/endpoint/ruleset.js +1 -1
  22. package/dist-es/models/models_0.js +152 -22
  23. package/dist-es/protocols/Aws_json1_1.js +589 -1
  24. package/dist-types/CloudTrail.d.ts +238 -164
  25. package/dist-types/CloudTrailClient.d.ts +21 -14
  26. package/dist-types/commands/AddTagsCommand.d.ts +7 -9
  27. package/dist-types/commands/CancelQueryCommand.d.ts +6 -3
  28. package/dist-types/commands/CreateChannelCommand.d.ts +39 -0
  29. package/dist-types/commands/DeleteChannelCommand.d.ts +37 -0
  30. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +10 -7
  31. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +39 -0
  32. package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +2 -1
  33. package/dist-types/commands/DescribeQueryCommand.d.ts +3 -2
  34. package/dist-types/commands/DescribeTrailsCommand.d.ts +2 -1
  35. package/dist-types/commands/GetChannelCommand.d.ts +1 -3
  36. package/dist-types/commands/GetEventDataStoreCommand.d.ts +2 -1
  37. package/dist-types/commands/GetEventSelectorsCommand.d.ts +10 -11
  38. package/dist-types/commands/GetImportCommand.d.ts +1 -3
  39. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +6 -6
  40. package/dist-types/commands/GetQueryResultsCommand.d.ts +3 -2
  41. package/dist-types/commands/GetResourcePolicyCommand.d.ts +39 -0
  42. package/dist-types/commands/GetTrailStatusCommand.d.ts +5 -1
  43. package/dist-types/commands/ListChannelsCommand.d.ts +1 -3
  44. package/dist-types/commands/ListEventDataStoresCommand.d.ts +2 -1
  45. package/dist-types/commands/ListImportFailuresCommand.d.ts +1 -3
  46. package/dist-types/commands/ListImportsCommand.d.ts +2 -3
  47. package/dist-types/commands/ListPublicKeysCommand.d.ts +7 -4
  48. package/dist-types/commands/ListQueriesCommand.d.ts +7 -5
  49. package/dist-types/commands/ListTagsCommand.d.ts +1 -1
  50. package/dist-types/commands/LookupEventsCommand.d.ts +5 -5
  51. package/dist-types/commands/PutEventSelectorsCommand.d.ts +28 -31
  52. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +5 -4
  53. package/dist-types/commands/PutResourcePolicyCommand.d.ts +41 -0
  54. package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +2 -1
  55. package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
  56. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +4 -3
  57. package/dist-types/commands/StartImportCommand.d.ts +17 -13
  58. package/dist-types/commands/StartLoggingCommand.d.ts +4 -1
  59. package/dist-types/commands/StartQueryCommand.d.ts +3 -1
  60. package/dist-types/commands/StopImportCommand.d.ts +1 -3
  61. package/dist-types/commands/StopLoggingCommand.d.ts +7 -7
  62. package/dist-types/commands/UpdateChannelCommand.d.ts +37 -0
  63. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +11 -6
  64. package/dist-types/commands/UpdateTrailCommand.d.ts +6 -6
  65. package/dist-types/commands/index.d.ts +6 -0
  66. package/dist-types/models/models_0.d.ts +1428 -835
  67. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  68. package/dist-types/ts3.4/CloudTrail.d.ts +102 -0
  69. package/dist-types/ts3.4/CloudTrailClient.d.ts +36 -0
  70. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +37 -0
  71. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +37 -0
  72. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
  74. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  75. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +37 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +181 -22
  78. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
  79. package/package.json +4 -4
@@ -1,9 +1,12 @@
1
1
  import { CloudTrailClient } from "./CloudTrailClient";
2
2
  import { AddTagsCommand } from "./commands/AddTagsCommand";
3
3
  import { CancelQueryCommand } from "./commands/CancelQueryCommand";
4
+ import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
4
5
  import { CreateEventDataStoreCommand, } from "./commands/CreateEventDataStoreCommand";
5
6
  import { CreateTrailCommand } from "./commands/CreateTrailCommand";
7
+ import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
6
8
  import { DeleteEventDataStoreCommand, } from "./commands/DeleteEventDataStoreCommand";
9
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
7
10
  import { DeleteTrailCommand } from "./commands/DeleteTrailCommand";
8
11
  import { DeregisterOrganizationDelegatedAdminCommand, } from "./commands/DeregisterOrganizationDelegatedAdminCommand";
9
12
  import { DescribeQueryCommand, } from "./commands/DescribeQueryCommand";
@@ -14,6 +17,7 @@ import { GetEventSelectorsCommand, } from "./commands/GetEventSelectorsCommand";
14
17
  import { GetImportCommand } from "./commands/GetImportCommand";
15
18
  import { GetInsightSelectorsCommand, } from "./commands/GetInsightSelectorsCommand";
16
19
  import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
20
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
17
21
  import { GetTrailCommand } from "./commands/GetTrailCommand";
18
22
  import { GetTrailStatusCommand, } from "./commands/GetTrailStatusCommand";
19
23
  import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
@@ -27,6 +31,7 @@ import { ListTrailsCommand } from "./commands/ListTrailsCommand";
27
31
  import { LookupEventsCommand, } from "./commands/LookupEventsCommand";
28
32
  import { PutEventSelectorsCommand, } from "./commands/PutEventSelectorsCommand";
29
33
  import { PutInsightSelectorsCommand, } from "./commands/PutInsightSelectorsCommand";
34
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
30
35
  import { RegisterOrganizationDelegatedAdminCommand, } from "./commands/RegisterOrganizationDelegatedAdminCommand";
31
36
  import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
32
37
  import { RestoreEventDataStoreCommand, } from "./commands/RestoreEventDataStoreCommand";
@@ -35,6 +40,7 @@ import { StartLoggingCommand, } from "./commands/StartLoggingCommand";
35
40
  import { StartQueryCommand } from "./commands/StartQueryCommand";
36
41
  import { StopImportCommand } from "./commands/StopImportCommand";
37
42
  import { StopLoggingCommand } from "./commands/StopLoggingCommand";
43
+ import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
38
44
  import { UpdateEventDataStoreCommand, } from "./commands/UpdateEventDataStoreCommand";
39
45
  import { UpdateTrailCommand } from "./commands/UpdateTrailCommand";
40
46
  export class CloudTrail extends CloudTrailClient {
@@ -66,6 +72,20 @@ export class CloudTrail extends CloudTrailClient {
66
72
  return this.send(command, optionsOrCb);
67
73
  }
68
74
  }
75
+ createChannel(args, optionsOrCb, cb) {
76
+ const command = new CreateChannelCommand(args);
77
+ if (typeof optionsOrCb === "function") {
78
+ this.send(command, optionsOrCb);
79
+ }
80
+ else if (typeof cb === "function") {
81
+ if (typeof optionsOrCb !== "object")
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ this.send(command, optionsOrCb || {}, cb);
84
+ }
85
+ else {
86
+ return this.send(command, optionsOrCb);
87
+ }
88
+ }
69
89
  createEventDataStore(args, optionsOrCb, cb) {
70
90
  const command = new CreateEventDataStoreCommand(args);
71
91
  if (typeof optionsOrCb === "function") {
@@ -94,6 +114,20 @@ export class CloudTrail extends CloudTrailClient {
94
114
  return this.send(command, optionsOrCb);
95
115
  }
96
116
  }
117
+ deleteChannel(args, optionsOrCb, cb) {
118
+ const command = new DeleteChannelCommand(args);
119
+ if (typeof optionsOrCb === "function") {
120
+ this.send(command, optionsOrCb);
121
+ }
122
+ else if (typeof cb === "function") {
123
+ if (typeof optionsOrCb !== "object")
124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ this.send(command, optionsOrCb || {}, cb);
126
+ }
127
+ else {
128
+ return this.send(command, optionsOrCb);
129
+ }
130
+ }
97
131
  deleteEventDataStore(args, optionsOrCb, cb) {
98
132
  const command = new DeleteEventDataStoreCommand(args);
99
133
  if (typeof optionsOrCb === "function") {
@@ -108,6 +142,20 @@ export class CloudTrail extends CloudTrailClient {
108
142
  return this.send(command, optionsOrCb);
109
143
  }
110
144
  }
145
+ deleteResourcePolicy(args, optionsOrCb, cb) {
146
+ const command = new DeleteResourcePolicyCommand(args);
147
+ if (typeof optionsOrCb === "function") {
148
+ this.send(command, optionsOrCb);
149
+ }
150
+ else if (typeof cb === "function") {
151
+ if (typeof optionsOrCb !== "object")
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ this.send(command, optionsOrCb || {}, cb);
154
+ }
155
+ else {
156
+ return this.send(command, optionsOrCb);
157
+ }
158
+ }
111
159
  deleteTrail(args, optionsOrCb, cb) {
112
160
  const command = new DeleteTrailCommand(args);
113
161
  if (typeof optionsOrCb === "function") {
@@ -248,6 +296,20 @@ export class CloudTrail extends CloudTrailClient {
248
296
  return this.send(command, optionsOrCb);
249
297
  }
250
298
  }
299
+ getResourcePolicy(args, optionsOrCb, cb) {
300
+ const command = new GetResourcePolicyCommand(args);
301
+ if (typeof optionsOrCb === "function") {
302
+ this.send(command, optionsOrCb);
303
+ }
304
+ else if (typeof cb === "function") {
305
+ if (typeof optionsOrCb !== "object")
306
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
+ this.send(command, optionsOrCb || {}, cb);
308
+ }
309
+ else {
310
+ return this.send(command, optionsOrCb);
311
+ }
312
+ }
251
313
  getTrail(args, optionsOrCb, cb) {
252
314
  const command = new GetTrailCommand(args);
253
315
  if (typeof optionsOrCb === "function") {
@@ -430,6 +492,20 @@ export class CloudTrail extends CloudTrailClient {
430
492
  return this.send(command, optionsOrCb);
431
493
  }
432
494
  }
495
+ putResourcePolicy(args, optionsOrCb, cb) {
496
+ const command = new PutResourcePolicyCommand(args);
497
+ if (typeof optionsOrCb === "function") {
498
+ this.send(command, optionsOrCb);
499
+ }
500
+ else if (typeof cb === "function") {
501
+ if (typeof optionsOrCb !== "object")
502
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
503
+ this.send(command, optionsOrCb || {}, cb);
504
+ }
505
+ else {
506
+ return this.send(command, optionsOrCb);
507
+ }
508
+ }
433
509
  registerOrganizationDelegatedAdmin(args, optionsOrCb, cb) {
434
510
  const command = new RegisterOrganizationDelegatedAdminCommand(args);
435
511
  if (typeof optionsOrCb === "function") {
@@ -542,6 +618,20 @@ export class CloudTrail extends CloudTrailClient {
542
618
  return this.send(command, optionsOrCb);
543
619
  }
544
620
  }
621
+ updateChannel(args, optionsOrCb, cb) {
622
+ const command = new UpdateChannelCommand(args);
623
+ if (typeof optionsOrCb === "function") {
624
+ this.send(command, optionsOrCb);
625
+ }
626
+ else if (typeof cb === "function") {
627
+ if (typeof optionsOrCb !== "object")
628
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
629
+ this.send(command, optionsOrCb || {}, cb);
630
+ }
631
+ else {
632
+ return this.send(command, optionsOrCb);
633
+ }
634
+ }
545
635
  updateEventDataStore(args, optionsOrCb, cb) {
546
636
  const command = new UpdateEventDataStoreCommand(args);
547
637
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateChannelRequestFilterSensitiveLog, CreateChannelResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateChannelCommand, serializeAws_json1_1CreateChannelCommand, } from "../protocols/Aws_json1_1";
6
+ export class CreateChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateChannelCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "CreateChannelCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateChannelRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateChannelResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1CreateChannelCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1CreateChannelCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteChannelRequestFilterSensitiveLog, DeleteChannelResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteChannelCommand, serializeAws_json1_1DeleteChannelCommand, } from "../protocols/Aws_json1_1";
6
+ export class DeleteChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteChannelCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "DeleteChannelCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteChannelRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteChannelResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1DeleteChannelCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1DeleteChannelCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteResourcePolicyRequestFilterSensitiveLog, DeleteResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteResourcePolicyCommand, serializeAws_json1_1DeleteResourcePolicyCommand, } from "../protocols/Aws_json1_1";
6
+ export class DeleteResourcePolicyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "DeleteResourcePolicyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteResourcePolicyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteResourcePolicyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1DeleteResourcePolicyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1DeleteResourcePolicyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetResourcePolicyRequestFilterSensitiveLog, GetResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetResourcePolicyCommand, serializeAws_json1_1GetResourcePolicyCommand, } from "../protocols/Aws_json1_1";
6
+ export class GetResourcePolicyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetResourcePolicyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "GetResourcePolicyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetResourcePolicyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetResourcePolicyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1GetResourcePolicyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1GetResourcePolicyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutResourcePolicyRequestFilterSensitiveLog, PutResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1PutResourcePolicyCommand, serializeAws_json1_1PutResourcePolicyCommand, } from "../protocols/Aws_json1_1";
6
+ export class PutResourcePolicyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "PutResourcePolicyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: PutResourcePolicyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: PutResourcePolicyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1PutResourcePolicyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1PutResourcePolicyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateChannelRequestFilterSensitiveLog, UpdateChannelResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateChannelCommand, serializeAws_json1_1UpdateChannelCommand, } from "../protocols/Aws_json1_1";
6
+ export class UpdateChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateChannelCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudTrailClient";
25
+ const commandName = "UpdateChannelCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateChannelRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateChannelResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1UpdateChannelCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1UpdateChannelCommand(output, context);
41
+ }
42
+ }
@@ -1,8 +1,11 @@
1
1
  export * from "./AddTagsCommand";
2
2
  export * from "./CancelQueryCommand";
3
+ export * from "./CreateChannelCommand";
3
4
  export * from "./CreateEventDataStoreCommand";
4
5
  export * from "./CreateTrailCommand";
6
+ export * from "./DeleteChannelCommand";
5
7
  export * from "./DeleteEventDataStoreCommand";
8
+ export * from "./DeleteResourcePolicyCommand";
6
9
  export * from "./DeleteTrailCommand";
7
10
  export * from "./DeregisterOrganizationDelegatedAdminCommand";
8
11
  export * from "./DescribeQueryCommand";
@@ -13,6 +16,7 @@ export * from "./GetEventSelectorsCommand";
13
16
  export * from "./GetImportCommand";
14
17
  export * from "./GetInsightSelectorsCommand";
15
18
  export * from "./GetQueryResultsCommand";
19
+ export * from "./GetResourcePolicyCommand";
16
20
  export * from "./GetTrailCommand";
17
21
  export * from "./GetTrailStatusCommand";
18
22
  export * from "./ListChannelsCommand";
@@ -26,6 +30,7 @@ export * from "./ListTrailsCommand";
26
30
  export * from "./LookupEventsCommand";
27
31
  export * from "./PutEventSelectorsCommand";
28
32
  export * from "./PutInsightSelectorsCommand";
33
+ export * from "./PutResourcePolicyCommand";
29
34
  export * from "./RegisterOrganizationDelegatedAdminCommand";
30
35
  export * from "./RemoveTagsCommand";
31
36
  export * from "./RestoreEventDataStoreCommand";
@@ -34,5 +39,6 @@ export * from "./StartLoggingCommand";
34
39
  export * from "./StartQueryCommand";
35
40
  export * from "./StopImportCommand";
36
41
  export * from "./StopLoggingCommand";
42
+ export * from "./UpdateChannelCommand";
37
43
  export * from "./UpdateEventDataStoreCommand";
38
44
  export * from "./UpdateTrailCommand";
@@ -1,4 +1,4 @@
1
1
  const s = "fn", t = "argv", u = "ref";
2
2
  const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "stringEquals", i = { "required": true, "default": false, "type": "Boolean" }, j = { [u]: "Region" }, k = { [u]: "Endpoint" }, l = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, m = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, n = {}, o = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsFIPS"] }] }, p = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsDualStack"] }] }, q = [l], r = [m];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [j], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: [k] }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: k, properties: n, headers: n }, type: g }] }] }, { conditions: [l, m], type: e, rules: [{ conditions: [o, p], type: e, rules: [{ endpoint: { url: "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [o], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: h, [t]: [j, "us-gov-east-1"] }], endpoint: { url: "https://cloudtrail.us-gov-east-1.amazonaws.com", properties: n, headers: n }, type: g }, { conditions: [{ [s]: h, [t]: [j, "us-gov-west-1"] }], endpoint: { url: "https://cloudtrail.us-gov-west-1.amazonaws.com", properties: n, headers: n }, type: g }, { endpoint: { url: "https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [p], type: e, rules: [{ endpoint: { url: "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [j], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: [k] }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: k, properties: n, headers: n }, type: g }] }] }, { conditions: [l, m], type: e, rules: [{ conditions: [o, p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [o], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: h, [t]: [j, "us-gov-east-1"] }], endpoint: { url: "https://cloudtrail.us-gov-east-1.amazonaws.com", properties: n, headers: n }, type: g }, { conditions: [{ [s]: h, [t]: [j, "us-gov-west-1"] }], endpoint: { url: "https://cloudtrail.us-gov-west-1.amazonaws.com", properties: n, headers: n }, type: g }, { endpoint: { url: "https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: g }] }] }] };
4
4
  export const ruleSet = _data;