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 Db Credentials in Oracle Cloud Infrastructure Identity service. * * Lists the DB credentials for the specified user. The returned object contains the credential's OCID * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDbCredentials = oci.identity.getDbCredentials({ * userId: testUser.id, * name: dbCredentialName, * state: dbCredentialState, * }); * ``` */ export declare function getDbCredentials(args: GetDbCredentialsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDbCredentials. */ export interface GetDbCredentialsArgs { filters?: inputs.Identity.GetDbCredentialsFilter[]; /** * A filter to only return resources that match the given name exactly. */ name?: string; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; /** * The OCID of the user. */ userId: string; } /** * A collection of values returned by getDbCredentials. */ export interface GetDbCredentialsResult { /** * The list of db_credentials. */ readonly dbCredentials: outputs.Identity.GetDbCredentialsDbCredential[]; readonly filters?: outputs.Identity.GetDbCredentialsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; /** * The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. */ readonly state?: string; /** * The OCID of the user the DB credential belongs to. */ readonly userId: string; } /** * This data source provides the list of Db Credentials in Oracle Cloud Infrastructure Identity service. * * Lists the DB credentials for the specified user. The returned object contains the credential's OCID * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDbCredentials = oci.identity.getDbCredentials({ * userId: testUser.id, * name: dbCredentialName, * state: dbCredentialState, * }); * ``` */ export declare function getDbCredentialsOutput(args: GetDbCredentialsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDbCredentials. */ export interface GetDbCredentialsOutputArgs { filters?: pulumi.Input[] | undefined>; /** * A filter to only return resources that match the given name exactly. */ name?: pulumi.Input; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; /** * The OCID of the user. */ userId: pulumi.Input; } //# sourceMappingURL=getDbCredentials.d.ts.map