import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to retrieve the Secret Access Key of an Access Key ID associated with a public cloud project's user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const projectUsers = ovh.CloudProject.getUsers({ * serviceName: "XXX", * }); * // Get the user ID of a previously created user with the description "S3-User" * const users = projectUsers.then(projectUsers => .filter(user => user.description == "S3-User").map(user => (user.userId))); * const s3UserId = users[0]; * const myS3Credentials = Promise.all([projectUsers, s3UserId]).then(([projectUsers, s3UserId]) => ovh.CloudProject.getUserS3Credentials({ * serviceName: projectUsers.serviceName, * userId: s3UserId, * })); * const myS3Credential = Promise.all([myS3Credentials, myS3Credentials, myS3Credentials]).then(([myS3Credentials, myS3Credentials1, myS3Credentials2]) => ovh.CloudProject.getUserS3Credential({ * serviceName: myS3Credentials.serviceName, * userId: myS3Credentials1.userId, * accessKeyId: myS3Credentials2.accessKeyIds?.[0], * })); * export const myAccessKeyId = myS3Credential.then(myS3Credential => myS3Credential.accessKeyId); * export const mySecretAccessKey = myS3Credential.then(myS3Credential => myS3Credential.secretAccessKey); * ``` */ export declare function getUserS3Credential(args: GetUserS3CredentialArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getUserS3Credential. */ export interface GetUserS3CredentialArgs { /** * the Access Key ID */ accessKeyId: string; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; /** * The ID of a public cloud project's user. */ userId: string; } /** * A collection of values returned by getUserS3Credential. */ export interface GetUserS3CredentialResult { readonly accessKeyId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (Sensitive) the Secret Access Key */ readonly secretAccessKey: string; readonly serviceName: string; readonly userId: string; } /** * Use this data source to retrieve the Secret Access Key of an Access Key ID associated with a public cloud project's user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const projectUsers = ovh.CloudProject.getUsers({ * serviceName: "XXX", * }); * // Get the user ID of a previously created user with the description "S3-User" * const users = projectUsers.then(projectUsers => .filter(user => user.description == "S3-User").map(user => (user.userId))); * const s3UserId = users[0]; * const myS3Credentials = Promise.all([projectUsers, s3UserId]).then(([projectUsers, s3UserId]) => ovh.CloudProject.getUserS3Credentials({ * serviceName: projectUsers.serviceName, * userId: s3UserId, * })); * const myS3Credential = Promise.all([myS3Credentials, myS3Credentials, myS3Credentials]).then(([myS3Credentials, myS3Credentials1, myS3Credentials2]) => ovh.CloudProject.getUserS3Credential({ * serviceName: myS3Credentials.serviceName, * userId: myS3Credentials1.userId, * accessKeyId: myS3Credentials2.accessKeyIds?.[0], * })); * export const myAccessKeyId = myS3Credential.then(myS3Credential => myS3Credential.accessKeyId); * export const mySecretAccessKey = myS3Credential.then(myS3Credential => myS3Credential.secretAccessKey); * ``` */ export declare function getUserS3CredentialOutput(args: GetUserS3CredentialOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getUserS3Credential. */ export interface GetUserS3CredentialOutputArgs { /** * the Access Key ID */ accessKeyId: pulumi.Input; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; /** * The ID of a public cloud project's user. */ userId: pulumi.Input; }