import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import type { GetChannelRequest, GetChannelResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetChannelCommand}. */ export interface GetChannelCommandInput extends GetChannelRequest { } /** * @public * * The output of {@link GetChannelCommand}. */ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataBearer { } declare const GetChannelCommand_base: { new (input: GetChannelCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetChannelCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns information about a specific channel. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, GetChannelCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, GetChannelCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; * const config = {}; // type is CloudTrailClientConfig * const client = new CloudTrailClient(config); * const input = { // GetChannelRequest * Channel: "STRING_VALUE", // required * }; * const command = new GetChannelCommand(input); * const response = await client.send(command); * // { // GetChannelResponse * // ChannelArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Source: "STRING_VALUE", * // SourceConfig: { // SourceConfig * // ApplyToAllRegions: true || false, * // AdvancedEventSelectors: [ // AdvancedEventSelectors * // { // AdvancedEventSelector * // Name: "STRING_VALUE", * // FieldSelectors: [ // AdvancedFieldSelectors // required * // { // AdvancedFieldSelector * // Field: "STRING_VALUE", // required * // Equals: [ // Operator * // "STRING_VALUE", * // ], * // StartsWith: [ * // "STRING_VALUE", * // ], * // EndsWith: [ * // "STRING_VALUE", * // ], * // NotEquals: [ * // "STRING_VALUE", * // ], * // NotStartsWith: [ * // "STRING_VALUE", * // ], * // NotEndsWith: "", * // }, * // ], * // }, * // ], * // }, * // Destinations: [ // Destinations * // { // Destination * // Type: "EVENT_DATA_STORE" || "AWS_SERVICE", // required * // Location: "STRING_VALUE", // required * // }, * // ], * // IngestionStatus: { // IngestionStatus * // LatestIngestionSuccessTime: new Date("TIMESTAMP"), * // LatestIngestionSuccessEventID: "STRING_VALUE", * // LatestIngestionErrorCode: "STRING_VALUE", * // LatestIngestionAttemptTime: new Date("TIMESTAMP"), * // LatestIngestionAttemptEventID: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetChannelCommandInput - {@link GetChannelCommandInput} * @returns {@link GetChannelCommandOutput} * @see {@link GetChannelCommandInput} for command's `input` shape. * @see {@link GetChannelCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link ChannelARNInvalidException} (client fault) *

This exception is thrown when the specified value of ChannelARN is not * valid.

* * @throws {@link ChannelNotFoundException} (client fault) *

This exception is thrown when CloudTrail cannot find the specified channel.

* * @throws {@link OperationNotPermittedException} (client fault) *

This exception is thrown when the requested operation is not permitted.

* * @throws {@link UnsupportedOperationException} (client fault) *

This exception is thrown when the requested operation is not supported.

* * @throws {@link CloudTrailServiceException} *

Base exception class for all service exceptions from CloudTrail service.

* * * @public */ export declare class GetChannelCommand extends GetChannelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetChannelRequest; output: GetChannelResponse; }; sdk: { input: GetChannelCommandInput; output: GetChannelCommandOutput; }; }; }