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 Subscriptions in Oracle Cloud Infrastructure Notifications service. * * Lists the subscriptions in the specified compartment or topic. * * Transactions Per Minute (TPM) per-tenancy limit for this operation: 60. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubscriptions = oci.ons.getSubscriptions({ * compartmentId: compartmentId, * topicId: testNotificationTopic.id, * }); * ``` */ export declare function getSubscriptions(args: GetSubscriptionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSubscriptions. */ export interface GetSubscriptionsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; filters?: inputs.Ons.GetSubscriptionsFilter[]; /** * Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set. */ topicId?: string; } /** * A collection of values returned by getSubscriptions. */ export interface GetSubscriptionsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription. */ readonly compartmentId: string; readonly filters?: outputs.Ons.GetSubscriptionsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of subscriptions. */ readonly subscriptions: outputs.Ons.GetSubscriptionsSubscription[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic. */ readonly topicId?: string; } /** * This data source provides the list of Subscriptions in Oracle Cloud Infrastructure Notifications service. * * Lists the subscriptions in the specified compartment or topic. * * Transactions Per Minute (TPM) per-tenancy limit for this operation: 60. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubscriptions = oci.ons.getSubscriptions({ * compartmentId: compartmentId, * topicId: testNotificationTopic.id, * }); * ``` */ export declare function getSubscriptionsOutput(args: GetSubscriptionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSubscriptions. */ export interface GetSubscriptionsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set. */ topicId?: pulumi.Input; } //# sourceMappingURL=getSubscriptions.d.ts.map