@aws-sdk/client-cloudtrail 3.162.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 +27 -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 +204 -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 +239 -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
@@ -257,7 +257,7 @@ export interface AdvancedFieldSelector {
257
257
  * <b>
258
258
  * <code>readOnly</code>
259
259
  * </b> - Optional. Can be set to <code>Equals</code> a value of <code>true</code>
260
- * or <code>false</code>. If you do not add this field, CloudTrail logs both both <code>read</code> and
260
+ * or <code>false</code>. If you do not add this field, CloudTrail logs both <code>read</code> and
261
261
  * <code>write</code> events. A value of <code>true</code> logs only <code>read</code> events. A value of <code>false</code>
262
262
  * logs only <code>write</code> events.</p>
263
263
  * </li>
@@ -646,6 +646,60 @@ export declare class QueryIdNotFoundException extends __BaseException {
646
646
  */
647
647
  constructor(opts: __ExceptionOptionType<QueryIdNotFoundException, __BaseException>);
648
648
  }
649
+ /**
650
+ * <p>
651
+ * Contains information about a returned CloudTrail channel.
652
+ * </p>
653
+ */
654
+ export interface Channel {
655
+ /**
656
+ * <p>
657
+ * The Amazon Resource Name (ARN) of the channel.
658
+ * </p>
659
+ */
660
+ ChannelArn?: string;
661
+ /**
662
+ * <p>
663
+ * The name of the CloudTrail channel. For service-linked channels, the name is <code>aws-service-channel/service-name/custom-suffix</code> where <code>service-name</code> represents the name of the
664
+ * Amazon Web Services service that created the channel and <code>custom-suffix</code> represents the suffix created by the Amazon Web Services service.
665
+ * </p>
666
+ */
667
+ Name?: string;
668
+ }
669
+ /**
670
+ * <p>
671
+ * The specified channel ARN is not valid or does not map to a channel in your account.
672
+ * </p>
673
+ */
674
+ export declare class ChannelARNInvalidException extends __BaseException {
675
+ readonly name: "ChannelARNInvalidException";
676
+ readonly $fault: "client";
677
+ /**
678
+ * <p>Brief description of the exception returned by the request.</p>
679
+ */
680
+ Message?: string;
681
+ /**
682
+ * @internal
683
+ */
684
+ constructor(opts: __ExceptionOptionType<ChannelARNInvalidException, __BaseException>);
685
+ }
686
+ /**
687
+ * <p>
688
+ * The specified channel was not found.
689
+ * </p>
690
+ */
691
+ export declare class ChannelNotFoundException extends __BaseException {
692
+ readonly name: "ChannelNotFoundException";
693
+ readonly $fault: "client";
694
+ /**
695
+ * <p>Brief description of the exception returned by the request.</p>
696
+ */
697
+ Message?: string;
698
+ /**
699
+ * @internal
700
+ */
701
+ constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
702
+ }
649
703
  /**
650
704
  * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information,
651
705
  * see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling Trusted Access with Other Amazon Web Services Services</a>
@@ -684,7 +738,7 @@ export interface CreateEventDataStoreRequest {
684
738
  */
685
739
  OrganizationEnabled?: boolean;
686
740
  /**
687
- * <p>The retention period of the event data store, in days. You can set a retention period of up to 2555 days,
741
+ * <p>The retention period of the event data store, in days. You can set a retention period of up to 2557 days,
688
742
  * the equivalent of seven years.</p>
689
743
  */
690
744
  RetentionPeriod?: number;
@@ -1555,6 +1609,90 @@ export interface DescribeTrailsResponse {
1555
1609
  */
1556
1610
  trailList?: Trail[];
1557
1611
  }
1612
+ export interface GetChannelRequest {
1613
+ /**
1614
+ * <p>
1615
+ * The Amazon Resource Name (ARN) of the CloudTrail service-linked channel.
1616
+ * </p>
1617
+ */
1618
+ Channel: string | undefined;
1619
+ }
1620
+ export declare enum DestinationType {
1621
+ AWS_SERVICE = "AWS_SERVICE",
1622
+ EVENT_DATA_STORE = "EVENT_DATA_STORE"
1623
+ }
1624
+ /**
1625
+ * <p>
1626
+ * Contains information about the service where CloudTrail delivers events.
1627
+ * </p>
1628
+ */
1629
+ export interface Destination {
1630
+ /**
1631
+ * <p>
1632
+ * The type of service. For service-linked channels, the value is <code>AWS_SERVICE</code>.
1633
+ * </p>
1634
+ */
1635
+ Type: DestinationType | string | undefined;
1636
+ /**
1637
+ * <p>
1638
+ * The location of the service. For service-linked channels, this is the name of the Amazon Web Services service.
1639
+ * </p>
1640
+ */
1641
+ Location: string | undefined;
1642
+ }
1643
+ /**
1644
+ * <p>
1645
+ * Contains configuration information about the service-linked channel.
1646
+ * </p>
1647
+ */
1648
+ export interface SourceConfig {
1649
+ /**
1650
+ * <p>
1651
+ * Specifies whether the service-linked channel applies to one region or all regions.
1652
+ * </p>
1653
+ */
1654
+ ApplyToAllRegions?: boolean;
1655
+ /**
1656
+ * <p>
1657
+ * The advanced event selectors configured for the service-linked channel.
1658
+ * </p>
1659
+ */
1660
+ AdvancedEventSelectors?: AdvancedEventSelector[];
1661
+ }
1662
+ export interface GetChannelResponse {
1663
+ /**
1664
+ * <p>
1665
+ * The ARN of the CloudTrail service-linked channel.
1666
+ * </p>
1667
+ */
1668
+ ChannelArn?: string;
1669
+ /**
1670
+ * <p>
1671
+ * The name of the CloudTrail service-linked channel. For service-linked channels, the value is <code>aws-service-channel/service-name/custom-suffix</code>
1672
+ * where <code>service-name</code> represents the name of the
1673
+ * Amazon Web Services service that created the channel and <code>custom-suffix</code> represents the suffix generated by the Amazon Web Services service.
1674
+ * </p>
1675
+ */
1676
+ Name?: string;
1677
+ /**
1678
+ * <p>
1679
+ * The trail or event data store for the CloudTrail service-linked channel.
1680
+ * </p>
1681
+ */
1682
+ Source?: string;
1683
+ /**
1684
+ * <p>
1685
+ * Provides information about the advanced event selectors configured for the service-linked channel, and whether the service-linked channel applies to all regions or one region.
1686
+ * </p>
1687
+ */
1688
+ SourceConfig?: SourceConfig;
1689
+ /**
1690
+ * <p>
1691
+ * The Amazon Web Services service that created the CloudTrail service-linked channel.
1692
+ * </p>
1693
+ */
1694
+ Destinations?: Destination[];
1695
+ }
1558
1696
  export interface GetEventDataStoreRequest {
1559
1697
  /**
1560
1698
  * <p>The ARN (or ID suffix of the ARN) of the event data store about which you want information.</p>
@@ -2139,6 +2277,34 @@ export interface GetTrailStatusResponse {
2139
2277
  */
2140
2278
  TimeLoggingStopped?: string;
2141
2279
  }
2280
+ export interface ListChannelsRequest {
2281
+ /**
2282
+ * <p>
2283
+ * The maximum number of CloudTrail channels to display on a single page.
2284
+ * </p>
2285
+ */
2286
+ MaxResults?: number;
2287
+ /**
2288
+ * <p>
2289
+ * A token you can use to get the next page of results.
2290
+ * </p>
2291
+ */
2292
+ NextToken?: string;
2293
+ }
2294
+ export interface ListChannelsResponse {
2295
+ /**
2296
+ * <p>
2297
+ * The list of CloudTrail channels.
2298
+ * </p>
2299
+ */
2300
+ Channels?: Channel[];
2301
+ /**
2302
+ * <p>
2303
+ * A token used to get the next page of results.
2304
+ * </p>
2305
+ */
2306
+ NextToken?: string;
2307
+ }
2142
2308
  export interface ListEventDataStoresRequest {
2143
2309
  /**
2144
2310
  * <p>A token you can use to get the next page of event data store results.</p>
@@ -2151,7 +2317,7 @@ export interface ListEventDataStoresRequest {
2151
2317
  }
2152
2318
  /**
2153
2319
  * <p>A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events
2154
- * that you have logged on your account from the last 90 to 2555 days
2320
+ * that you have logged on your account from the last 90 to 2557 days
2155
2321
  * (about three months to up to seven years). To select events for an event data store,
2156
2322
  * use <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">advanced event selectors</a>.</p>
2157
2323
  */
@@ -2442,7 +2608,7 @@ export interface ListTagsResponse {
2442
2608
  export interface ListTrailsRequest {
2443
2609
  /**
2444
2610
  * <p>The token to use to get the next page of results after a previous API call. This token must be passed
2445
- * in with the same parameters that were specified in the the original call. For example, if the original
2611
+ * in with the same parameters that were specified in the original call. For example, if the original
2446
2612
  * call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should
2447
2613
  * include those same parameters.</p>
2448
2614
  */
@@ -2560,7 +2726,7 @@ export interface LookupEventsRequest {
2560
2726
  */
2561
2727
  MaxResults?: number;
2562
2728
  /**
2563
- * <p>The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call.
2729
+ * <p>The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call.
2564
2730
  * For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.</p>
2565
2731
  */
2566
2732
  NextToken?: string;
@@ -3224,6 +3390,10 @@ export declare const CancelQueryRequestFilterSensitiveLog: (obj: CancelQueryRequ
3224
3390
  * @internal
3225
3391
  */
3226
3392
  export declare const CancelQueryResponseFilterSensitiveLog: (obj: CancelQueryResponse) => any;
3393
+ /**
3394
+ * @internal
3395
+ */
3396
+ export declare const ChannelFilterSensitiveLog: (obj: Channel) => any;
3227
3397
  /**
3228
3398
  * @internal
3229
3399
  */
@@ -3280,6 +3450,22 @@ export declare const TrailFilterSensitiveLog: (obj: Trail) => any;
3280
3450
  * @internal
3281
3451
  */
3282
3452
  export declare const DescribeTrailsResponseFilterSensitiveLog: (obj: DescribeTrailsResponse) => any;
3453
+ /**
3454
+ * @internal
3455
+ */
3456
+ export declare const GetChannelRequestFilterSensitiveLog: (obj: GetChannelRequest) => any;
3457
+ /**
3458
+ * @internal
3459
+ */
3460
+ export declare const DestinationFilterSensitiveLog: (obj: Destination) => any;
3461
+ /**
3462
+ * @internal
3463
+ */
3464
+ export declare const SourceConfigFilterSensitiveLog: (obj: SourceConfig) => any;
3465
+ /**
3466
+ * @internal
3467
+ */
3468
+ export declare const GetChannelResponseFilterSensitiveLog: (obj: GetChannelResponse) => any;
3283
3469
  /**
3284
3470
  * @internal
3285
3471
  */
@@ -3344,6 +3530,14 @@ export declare const GetTrailStatusRequestFilterSensitiveLog: (obj: GetTrailStat
3344
3530
  * @internal
3345
3531
  */
3346
3532
  export declare const GetTrailStatusResponseFilterSensitiveLog: (obj: GetTrailStatusResponse) => any;
3533
+ /**
3534
+ * @internal
3535
+ */
3536
+ export declare const ListChannelsRequestFilterSensitiveLog: (obj: ListChannelsRequest) => any;
3537
+ /**
3538
+ * @internal
3539
+ */
3540
+ export declare const ListChannelsResponseFilterSensitiveLog: (obj: ListChannelsResponse) => any;
3347
3541
  /**
3348
3542
  * @internal
3349
3543
  */
@@ -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>;
@@ -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";
@@ -64,6 +66,10 @@ export declare class CloudTrail extends CloudTrailClient {
64
66
  describeTrails(args: DescribeTrailsCommandInput, cb: (err: any, data?: DescribeTrailsCommandOutput) => void): void;
65
67
  describeTrails(args: DescribeTrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTrailsCommandOutput) => void): void;
66
68
 
69
+ getChannel(args: GetChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetChannelCommandOutput>;
70
+ getChannel(args: GetChannelCommandInput, cb: (err: any, data?: GetChannelCommandOutput) => void): void;
71
+ getChannel(args: GetChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChannelCommandOutput) => void): void;
72
+
67
73
  getEventDataStore(args: GetEventDataStoreCommandInput, options?: __HttpHandlerOptions): Promise<GetEventDataStoreCommandOutput>;
68
74
  getEventDataStore(args: GetEventDataStoreCommandInput, cb: (err: any, data?: GetEventDataStoreCommandOutput) => void): void;
69
75
  getEventDataStore(args: GetEventDataStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventDataStoreCommandOutput) => void): void;
@@ -88,6 +94,10 @@ export declare class CloudTrail extends CloudTrailClient {
88
94
  getTrailStatus(args: GetTrailStatusCommandInput, cb: (err: any, data?: GetTrailStatusCommandOutput) => void): void;
89
95
  getTrailStatus(args: GetTrailStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrailStatusCommandOutput) => void): void;
90
96
 
97
+ listChannels(args: ListChannelsCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelsCommandOutput>;
98
+ listChannels(args: ListChannelsCommandInput, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
99
+ listChannels(args: ListChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
100
+
91
101
  listEventDataStores(args: ListEventDataStoresCommandInput, options?: __HttpHandlerOptions): Promise<ListEventDataStoresCommandOutput>;
92
102
  listEventDataStores(args: ListEventDataStoresCommandInput, cb: (err: any, data?: ListEventDataStoresCommandOutput) => void): void;
93
103
  listEventDataStores(args: ListEventDataStoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventDataStoresCommandOutput) => void): void;
@@ -14,12 +14,14 @@ import { DeleteEventDataStoreCommandInput, DeleteEventDataStoreCommandOutput } f
14
14
  import { DeleteTrailCommandInput, DeleteTrailCommandOutput } from "./commands/DeleteTrailCommand";
15
15
  import { DescribeQueryCommandInput, DescribeQueryCommandOutput } from "./commands/DescribeQueryCommand";
16
16
  import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./commands/DescribeTrailsCommand";
17
+ import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
17
18
  import { GetEventDataStoreCommandInput, GetEventDataStoreCommandOutput } from "./commands/GetEventDataStoreCommand";
18
19
  import { GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput } from "./commands/GetEventSelectorsCommand";
19
20
  import { GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput } from "./commands/GetInsightSelectorsCommand";
20
21
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
21
22
  import { GetTrailCommandInput, GetTrailCommandOutput } from "./commands/GetTrailCommand";
22
23
  import { GetTrailStatusCommandInput, GetTrailStatusCommandOutput } from "./commands/GetTrailStatusCommand";
24
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
23
25
  import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
24
26
  import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
25
27
  import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
@@ -35,8 +37,8 @@ import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/Star
35
37
  import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
36
38
  import { UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput } from "./commands/UpdateEventDataStoreCommand";
37
39
  import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
38
- export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListEventDataStoresCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
39
- export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListEventDataStoresCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
40
+ export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
41
+ export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
40
42
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
41
43
 
42
44
  requestHandler?: __HttpHandler;
@@ -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 { GetChannelRequest, GetChannelResponse } from "../models/models_0";
5
+ export interface GetChannelCommandInput extends GetChannelRequest {
6
+ }
7
+ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetChannelCommand extends $Command<GetChannelCommandInput, GetChannelCommandOutput, CloudTrailClientResolvedConfig> {
11
+ readonly input: GetChannelCommandInput;
12
+ constructor(input: GetChannelCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetChannelCommandInput, GetChannelCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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";