@aws-sdk/client-cloudtrail 3.165.0 → 3.168.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 (37) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/CloudTrail.js +30 -0
  3. package/dist-cjs/commands/GetChannelCommand.js +36 -0
  4. package/dist-cjs/commands/ListChannelsCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +64 -3
  7. package/dist-cjs/pagination/ListChannelsPaginator.js +36 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_json1_1.js +201 -2
  10. package/dist-es/CloudTrail.js +30 -0
  11. package/dist-es/commands/GetChannelCommand.js +39 -0
  12. package/dist-es/commands/ListChannelsCommand.js +39 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +38 -0
  15. package/dist-es/pagination/ListChannelsPaginator.js +75 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_json1_1.js +236 -1
  18. package/dist-types/CloudTrail.d.ts +19 -1
  19. package/dist-types/CloudTrailClient.d.ts +4 -2
  20. package/dist-types/commands/GetChannelCommand.d.ts +37 -0
  21. package/dist-types/commands/ListChannelsCommand.d.ts +37 -0
  22. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +199 -5
  25. package/dist-types/pagination/ListChannelsPaginator.d.ts +4 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  28. package/dist-types/ts3.4/CloudTrail.d.ts +10 -0
  29. package/dist-types/ts3.4/CloudTrailClient.d.ts +4 -2
  30. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +85 -0
  34. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +4 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  37. package/package.json +34 -33
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
4
+ import { ListChannelsRequest, ListChannelsResponse } from "../models/models_0";
5
+ export interface ListChannelsCommandInput extends ListChannelsRequest {
6
+ }
7
+ export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListChannelsCommand extends $Command<ListChannelsCommandInput, ListChannelsCommandOutput, CloudTrailClientResolvedConfig> {
11
+ readonly input: ListChannelsCommandInput;
12
+ constructor(input: ListChannelsCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChannelsCommandInput, ListChannelsCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -6,12 +6,14 @@ export * from "./DeleteEventDataStoreCommand";
6
6
  export * from "./DeleteTrailCommand";
7
7
  export * from "./DescribeQueryCommand";
8
8
  export * from "./DescribeTrailsCommand";
9
+ export * from "./GetChannelCommand";
9
10
  export * from "./GetEventDataStoreCommand";
10
11
  export * from "./GetEventSelectorsCommand";
11
12
  export * from "./GetInsightSelectorsCommand";
12
13
  export * from "./GetQueryResultsCommand";
13
14
  export * from "./GetTrailCommand";
14
15
  export * from "./GetTrailStatusCommand";
16
+ export * from "./ListChannelsCommand";
15
17
  export * from "./ListEventDataStoresCommand";
16
18
  export * from "./ListPublicKeysCommand";
17
19
  export * from "./ListQueriesCommand";
@@ -206,6 +206,31 @@ export declare class QueryIdNotFoundException extends __BaseException {
206
206
  constructor(opts: __ExceptionOptionType<QueryIdNotFoundException, __BaseException>);
207
207
  }
208
208
 
209
+ export interface Channel {
210
+
211
+ ChannelArn?: string;
212
+
213
+ Name?: string;
214
+ }
215
+
216
+ export declare class ChannelARNInvalidException extends __BaseException {
217
+ readonly name: "ChannelARNInvalidException";
218
+ readonly $fault: "client";
219
+
220
+ Message?: string;
221
+
222
+ constructor(opts: __ExceptionOptionType<ChannelARNInvalidException, __BaseException>);
223
+ }
224
+
225
+ export declare class ChannelNotFoundException extends __BaseException {
226
+ readonly name: "ChannelNotFoundException";
227
+ readonly $fault: "client";
228
+
229
+ Message?: string;
230
+
231
+ constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
232
+ }
233
+
209
234
  export declare class CloudTrailAccessNotEnabledException extends __BaseException {
210
235
  readonly name: "CloudTrailAccessNotEnabledException";
211
236
  readonly $fault: "client";
@@ -650,6 +675,40 @@ export interface DescribeTrailsResponse {
650
675
 
651
676
  trailList?: Trail[];
652
677
  }
678
+ export interface GetChannelRequest {
679
+
680
+ Channel: string | undefined;
681
+ }
682
+ export declare enum DestinationType {
683
+ AWS_SERVICE = "AWS_SERVICE",
684
+ EVENT_DATA_STORE = "EVENT_DATA_STORE"
685
+ }
686
+
687
+ export interface Destination {
688
+
689
+ Type: DestinationType | string | undefined;
690
+
691
+ Location: string | undefined;
692
+ }
693
+
694
+ export interface SourceConfig {
695
+
696
+ ApplyToAllRegions?: boolean;
697
+
698
+ AdvancedEventSelectors?: AdvancedEventSelector[];
699
+ }
700
+ export interface GetChannelResponse {
701
+
702
+ ChannelArn?: string;
703
+
704
+ Name?: string;
705
+
706
+ Source?: string;
707
+
708
+ SourceConfig?: SourceConfig;
709
+
710
+ Destinations?: Destination[];
711
+ }
653
712
  export interface GetEventDataStoreRequest {
654
713
 
655
714
  EventDataStore: string | undefined;
@@ -838,6 +897,18 @@ export interface GetTrailStatusResponse {
838
897
 
839
898
  TimeLoggingStopped?: string;
840
899
  }
900
+ export interface ListChannelsRequest {
901
+
902
+ MaxResults?: number;
903
+
904
+ NextToken?: string;
905
+ }
906
+ export interface ListChannelsResponse {
907
+
908
+ Channels?: Channel[];
909
+
910
+ NextToken?: string;
911
+ }
841
912
  export interface ListEventDataStoresRequest {
842
913
 
843
914
  NextToken?: string;
@@ -1333,6 +1404,8 @@ export declare const CancelQueryRequestFilterSensitiveLog: (obj: CancelQueryRequ
1333
1404
 
1334
1405
  export declare const CancelQueryResponseFilterSensitiveLog: (obj: CancelQueryResponse) => any;
1335
1406
 
1407
+ export declare const ChannelFilterSensitiveLog: (obj: Channel) => any;
1408
+
1336
1409
  export declare const CreateEventDataStoreRequestFilterSensitiveLog: (obj: CreateEventDataStoreRequest) => any;
1337
1410
 
1338
1411
  export declare const CreateEventDataStoreResponseFilterSensitiveLog: (obj: CreateEventDataStoreResponse) => any;
@@ -1361,6 +1434,14 @@ export declare const TrailFilterSensitiveLog: (obj: Trail) => any;
1361
1434
 
1362
1435
  export declare const DescribeTrailsResponseFilterSensitiveLog: (obj: DescribeTrailsResponse) => any;
1363
1436
 
1437
+ export declare const GetChannelRequestFilterSensitiveLog: (obj: GetChannelRequest) => any;
1438
+
1439
+ export declare const DestinationFilterSensitiveLog: (obj: Destination) => any;
1440
+
1441
+ export declare const SourceConfigFilterSensitiveLog: (obj: SourceConfig) => any;
1442
+
1443
+ export declare const GetChannelResponseFilterSensitiveLog: (obj: GetChannelResponse) => any;
1444
+
1364
1445
  export declare const GetEventDataStoreRequestFilterSensitiveLog: (obj: GetEventDataStoreRequest) => any;
1365
1446
 
1366
1447
  export declare const GetEventDataStoreResponseFilterSensitiveLog: (obj: GetEventDataStoreResponse) => any;
@@ -1393,6 +1474,10 @@ export declare const GetTrailStatusRequestFilterSensitiveLog: (obj: GetTrailStat
1393
1474
 
1394
1475
  export declare const GetTrailStatusResponseFilterSensitiveLog: (obj: GetTrailStatusResponse) => any;
1395
1476
 
1477
+ export declare const ListChannelsRequestFilterSensitiveLog: (obj: ListChannelsRequest) => any;
1478
+
1479
+ export declare const ListChannelsResponseFilterSensitiveLog: (obj: ListChannelsResponse) => any;
1480
+
1396
1481
  export declare const ListEventDataStoresRequestFilterSensitiveLog: (obj: ListEventDataStoresRequest) => any;
1397
1482
 
1398
1483
  export declare const EventDataStoreFilterSensitiveLog: (obj: EventDataStore) => any;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
3
+ import { CloudTrailPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListChannels(config: CloudTrailPaginationConfiguration, input: ListChannelsCommandInput, ...additionalArguments: any): Paginator<ListChannelsCommandOutput>;
@@ -1,5 +1,6 @@
1
1
  export * from "./GetQueryResultsPaginator";
2
2
  export * from "./Interfaces";
3
+ export * from "./ListChannelsPaginator";
3
4
  export * from "./ListEventDataStoresPaginator";
4
5
  export * from "./ListPublicKeysPaginator";
5
6
  export * from "./ListQueriesPaginator";
@@ -8,12 +8,14 @@ import { DeleteEventDataStoreCommandInput, DeleteEventDataStoreCommandOutput } f
8
8
  import { DeleteTrailCommandInput, DeleteTrailCommandOutput } from "../commands/DeleteTrailCommand";
9
9
  import { DescribeQueryCommandInput, DescribeQueryCommandOutput } from "../commands/DescribeQueryCommand";
10
10
  import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "../commands/DescribeTrailsCommand";
11
+ import { GetChannelCommandInput, GetChannelCommandOutput } from "../commands/GetChannelCommand";
11
12
  import { GetEventDataStoreCommandInput, GetEventDataStoreCommandOutput } from "../commands/GetEventDataStoreCommand";
12
13
  import { GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput } from "../commands/GetEventSelectorsCommand";
13
14
  import { GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput } from "../commands/GetInsightSelectorsCommand";
14
15
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand";
15
16
  import { GetTrailCommandInput, GetTrailCommandOutput } from "../commands/GetTrailCommand";
16
17
  import { GetTrailStatusCommandInput, GetTrailStatusCommandOutput } from "../commands/GetTrailStatusCommand";
18
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
17
19
  import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "../commands/ListEventDataStoresCommand";
18
20
  import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "../commands/ListPublicKeysCommand";
19
21
  import { ListQueriesCommandInput, ListQueriesCommandOutput } from "../commands/ListQueriesCommand";
@@ -37,12 +39,14 @@ export declare const serializeAws_json1_1DeleteEventDataStoreCommand: (input: De
37
39
  export declare const serializeAws_json1_1DeleteTrailCommand: (input: DeleteTrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
40
  export declare const serializeAws_json1_1DescribeQueryCommand: (input: DescribeQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
41
  export declare const serializeAws_json1_1DescribeTrailsCommand: (input: DescribeTrailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
+ export declare const serializeAws_json1_1GetChannelCommand: (input: GetChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
43
  export declare const serializeAws_json1_1GetEventDataStoreCommand: (input: GetEventDataStoreCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
41
44
  export declare const serializeAws_json1_1GetEventSelectorsCommand: (input: GetEventSelectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
45
  export declare const serializeAws_json1_1GetInsightSelectorsCommand: (input: GetInsightSelectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
46
  export declare const serializeAws_json1_1GetQueryResultsCommand: (input: GetQueryResultsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
47
  export declare const serializeAws_json1_1GetTrailCommand: (input: GetTrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
45
48
  export declare const serializeAws_json1_1GetTrailStatusCommand: (input: GetTrailStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
49
+ export declare const serializeAws_json1_1ListChannelsCommand: (input: ListChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
46
50
  export declare const serializeAws_json1_1ListEventDataStoresCommand: (input: ListEventDataStoresCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
47
51
  export declare const serializeAws_json1_1ListPublicKeysCommand: (input: ListPublicKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
52
  export declare const serializeAws_json1_1ListQueriesCommand: (input: ListQueriesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -66,12 +70,14 @@ export declare const deserializeAws_json1_1DeleteEventDataStoreCommand: (output:
66
70
  export declare const deserializeAws_json1_1DeleteTrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteTrailCommandOutput>;
67
71
  export declare const deserializeAws_json1_1DescribeQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeQueryCommandOutput>;
68
72
  export declare const deserializeAws_json1_1DescribeTrailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTrailsCommandOutput>;
73
+ export declare const deserializeAws_json1_1GetChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChannelCommandOutput>;
69
74
  export declare const deserializeAws_json1_1GetEventDataStoreCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEventDataStoreCommandOutput>;
70
75
  export declare const deserializeAws_json1_1GetEventSelectorsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEventSelectorsCommandOutput>;
71
76
  export declare const deserializeAws_json1_1GetInsightSelectorsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetInsightSelectorsCommandOutput>;
72
77
  export declare const deserializeAws_json1_1GetQueryResultsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetQueryResultsCommandOutput>;
73
78
  export declare const deserializeAws_json1_1GetTrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTrailCommandOutput>;
74
79
  export declare const deserializeAws_json1_1GetTrailStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTrailStatusCommandOutput>;
80
+ export declare const deserializeAws_json1_1ListChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelsCommandOutput>;
75
81
  export declare const deserializeAws_json1_1ListEventDataStoresCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEventDataStoresCommandOutput>;
76
82
  export declare const deserializeAws_json1_1ListPublicKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPublicKeysCommandOutput>;
77
83
  export declare const deserializeAws_json1_1ListQueriesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListQueriesCommandOutput>;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail",
3
3
  "description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
4
- "version": "3.165.0",
4
+ "version": "3.168.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
11
  "build:types": "tsc -p tsconfig.types.json",
11
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
@@ -18,41 +19,41 @@
18
19
  "dependencies": {
19
20
  "@aws-crypto/sha256-browser": "2.0.0",
20
21
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.165.0",
22
- "@aws-sdk/config-resolver": "3.163.0",
23
- "@aws-sdk/credential-provider-node": "3.165.0",
24
- "@aws-sdk/fetch-http-handler": "3.162.0",
25
- "@aws-sdk/hash-node": "3.162.0",
26
- "@aws-sdk/invalid-dependency": "3.162.0",
27
- "@aws-sdk/middleware-content-length": "3.162.0",
28
- "@aws-sdk/middleware-host-header": "3.162.0",
29
- "@aws-sdk/middleware-logger": "3.162.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.162.0",
31
- "@aws-sdk/middleware-retry": "3.162.0",
32
- "@aws-sdk/middleware-serde": "3.162.0",
33
- "@aws-sdk/middleware-signing": "3.163.0",
34
- "@aws-sdk/middleware-stack": "3.162.0",
35
- "@aws-sdk/middleware-user-agent": "3.162.0",
36
- "@aws-sdk/node-config-provider": "3.162.0",
37
- "@aws-sdk/node-http-handler": "3.162.0",
38
- "@aws-sdk/protocol-http": "3.162.0",
39
- "@aws-sdk/smithy-client": "3.162.0",
40
- "@aws-sdk/types": "3.162.0",
41
- "@aws-sdk/url-parser": "3.162.0",
42
- "@aws-sdk/util-base64-browser": "3.109.0",
43
- "@aws-sdk/util-base64-node": "3.55.0",
44
- "@aws-sdk/util-body-length-browser": "3.154.0",
45
- "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.162.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.163.0",
48
- "@aws-sdk/util-user-agent-browser": "3.162.0",
49
- "@aws-sdk/util-user-agent-node": "3.162.0",
50
- "@aws-sdk/util-utf8-browser": "3.109.0",
51
- "@aws-sdk/util-utf8-node": "3.109.0",
22
+ "@aws-sdk/client-sts": "3.168.0",
23
+ "@aws-sdk/config-resolver": "3.168.0",
24
+ "@aws-sdk/credential-provider-node": "3.168.0",
25
+ "@aws-sdk/fetch-http-handler": "3.168.0",
26
+ "@aws-sdk/hash-node": "3.168.0",
27
+ "@aws-sdk/invalid-dependency": "3.168.0",
28
+ "@aws-sdk/middleware-content-length": "3.168.0",
29
+ "@aws-sdk/middleware-host-header": "3.168.0",
30
+ "@aws-sdk/middleware-logger": "3.168.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.168.0",
32
+ "@aws-sdk/middleware-retry": "3.168.0",
33
+ "@aws-sdk/middleware-serde": "3.168.0",
34
+ "@aws-sdk/middleware-signing": "3.168.0",
35
+ "@aws-sdk/middleware-stack": "3.168.0",
36
+ "@aws-sdk/middleware-user-agent": "3.168.0",
37
+ "@aws-sdk/node-config-provider": "3.168.0",
38
+ "@aws-sdk/node-http-handler": "3.168.0",
39
+ "@aws-sdk/protocol-http": "3.168.0",
40
+ "@aws-sdk/smithy-client": "3.168.0",
41
+ "@aws-sdk/types": "3.168.0",
42
+ "@aws-sdk/url-parser": "3.168.0",
43
+ "@aws-sdk/util-base64-browser": "3.168.0",
44
+ "@aws-sdk/util-base64-node": "3.168.0",
45
+ "@aws-sdk/util-body-length-browser": "3.168.0",
46
+ "@aws-sdk/util-body-length-node": "3.168.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.168.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.168.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.168.0",
50
+ "@aws-sdk/util-user-agent-node": "3.168.0",
51
+ "@aws-sdk/util-utf8-browser": "3.168.0",
52
+ "@aws-sdk/util-utf8-node": "3.168.0",
52
53
  "tslib": "^2.3.1"
53
54
  },
54
55
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.58.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.168.0",
56
57
  "@tsconfig/recommended": "1.0.1",
57
58
  "@types/node": "^12.7.5",
58
59
  "concurrently": "7.0.0",