import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Channels in Oracle Cloud Infrastructure MySQL Database service. * * Lists all the Channels that match the specified filters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testChannels = oci.mysql.getChannels({ * compartmentId: compartmentId, * channelId: testChannel.id, * dbSystemId: testDbSystem.id, * displayName: channelDisplayName, * isEnabled: channelIsEnabled === "true", * state: channelState, * }); * ``` */ export declare function getChannels(args: GetChannelsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getChannels. */ export interface GetChannelsArgs { /** * The OCID of the Channel. */ channelId?: string; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; /** * The DB System [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ dbSystemId?: string; /** * A filter to return only the resource matching the given display name exactly. */ displayName?: string; filters?: inputs.Mysql.GetChannelsFilter[]; /** * If true, returns only Channels that are enabled. If false, returns only Channels that are disabled. */ isEnabled?: boolean; /** * The LifecycleState of the Channel. */ state?: string; } /** * A collection of values returned by getChannels. */ export interface GetChannelsResult { readonly channelId?: string; /** * The list of channels. */ readonly channels: outputs.Mysql.GetChannelsChannel[]; /** * The OCID of the compartment. */ readonly compartmentId: string; /** * The OCID of the source DB System. */ readonly dbSystemId?: string; /** * The user-friendly name for the Channel. It does not have to be unique. */ readonly displayName?: string; readonly filters?: outputs.Mysql.GetChannelsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Whether the Channel has been enabled by the user. */ readonly isEnabled?: boolean; /** * The state of the Channel. */ readonly state?: string; } /** * This data source provides the list of Channels in Oracle Cloud Infrastructure MySQL Database service. * * Lists all the Channels that match the specified filters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testChannels = oci.mysql.getChannels({ * compartmentId: compartmentId, * channelId: testChannel.id, * dbSystemId: testDbSystem.id, * displayName: channelDisplayName, * isEnabled: channelIsEnabled === "true", * state: channelState, * }); * ``` */ export declare function getChannelsOutput(args: GetChannelsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getChannels. */ export interface GetChannelsOutputArgs { /** * The OCID of the Channel. */ channelId?: pulumi.Input; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * The DB System [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ dbSystemId?: pulumi.Input; /** * A filter to return only the resource matching the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * If true, returns only Channels that are enabled. If false, returns only Channels that are disabled. */ isEnabled?: pulumi.Input; /** * The LifecycleState of the Channel. */ state?: pulumi.Input; } //# sourceMappingURL=getChannels.d.ts.map