import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Managed Database User Role resource in Oracle Cloud Infrastructure Database Management service. * * Gets the list of roles granted to a specific user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseUserRole = oci.databasemanagement.getManagedDatabaseUserRole({ * managedDatabaseId: testManagedDatabase.id, * userName: testUser.name, * name: managedDatabaseUserRoleName, * }); * ``` */ export declare function getManagedDatabaseUserRole(args: GetManagedDatabaseUserRoleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseUserRole. */ export interface GetManagedDatabaseUserRoleArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: string; /** * A filter to return only resources that match the entire name. */ name?: string; /** * The name of the user whose details are to be viewed. */ userName: string; } /** * A collection of values returned by getManagedDatabaseUserRole. */ export interface GetManagedDatabaseUserRoleResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * An array of roles. */ readonly items: outputs.DatabaseManagement.GetManagedDatabaseUserRoleItem[]; readonly managedDatabaseId: string; /** * The name of the role granted to the user. */ readonly name?: string; readonly userName: string; } /** * This data source provides details about a specific Managed Database User Role resource in Oracle Cloud Infrastructure Database Management service. * * Gets the list of roles granted to a specific user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseUserRole = oci.databasemanagement.getManagedDatabaseUserRole({ * managedDatabaseId: testManagedDatabase.id, * userName: testUser.name, * name: managedDatabaseUserRoleName, * }); * ``` */ export declare function getManagedDatabaseUserRoleOutput(args: GetManagedDatabaseUserRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseUserRole. */ export interface GetManagedDatabaseUserRoleOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: pulumi.Input; /** * A filter to return only resources that match the entire name. */ name?: pulumi.Input; /** * The name of the user whose details are to be viewed. */ userName: pulumi.Input; } //# sourceMappingURL=getManagedDatabaseUserRole.d.ts.map