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 Managed Database User Roles 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 testManagedDatabaseUserRoles = oci.databasemanagement.getManagedDatabaseUserRoles({ * managedDatabaseId: testManagedDatabase.id, * userName: testUser.name, * name: managedDatabaseUserRoleName, * opcNamedCredentialId: managedDatabaseUserRoleOpcNamedCredentialId, * }); * ``` */ export declare function getManagedDatabaseUserRoles(args: GetManagedDatabaseUserRolesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseUserRoles. */ export interface GetManagedDatabaseUserRolesArgs { filters?: inputs.DatabaseManagement.GetManagedDatabaseUserRolesFilter[]; /** * 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 OCID of the Named Credential. */ opcNamedCredentialId?: string; /** * The name of the user whose details are to be viewed. */ userName: string; } /** * A collection of values returned by getManagedDatabaseUserRoles. */ export interface GetManagedDatabaseUserRolesResult { readonly filters?: outputs.DatabaseManagement.GetManagedDatabaseUserRolesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly managedDatabaseId: string; /** * The name of the role granted to the user. */ readonly name?: string; readonly opcNamedCredentialId?: string; /** * The list of role_collection. */ readonly roleCollections: outputs.DatabaseManagement.GetManagedDatabaseUserRolesRoleCollection[]; readonly userName: string; } /** * This data source provides the list of Managed Database User Roles 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 testManagedDatabaseUserRoles = oci.databasemanagement.getManagedDatabaseUserRoles({ * managedDatabaseId: testManagedDatabase.id, * userName: testUser.name, * name: managedDatabaseUserRoleName, * opcNamedCredentialId: managedDatabaseUserRoleOpcNamedCredentialId, * }); * ``` */ export declare function getManagedDatabaseUserRolesOutput(args: GetManagedDatabaseUserRolesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseUserRoles. */ export interface GetManagedDatabaseUserRolesOutputArgs { filters?: pulumi.Input[] | undefined>; /** * 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 OCID of the Named Credential. */ opcNamedCredentialId?: pulumi.Input; /** * The name of the user whose details are to be viewed. */ userName: pulumi.Input; } //# sourceMappingURL=getManagedDatabaseUserRoles.d.ts.map