import * as pulumi from "@pulumi/pulumi"; /** * Creates an S3 Credential for a user in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const user = new ovh.cloudproject.User("user", { * serviceName: "XXX", * description: "my user for acceptance tests", * roleNames: ["objectstore_operator"], * }); * const myS3Credentials = new ovh.cloudproject.S3Credential("my_s3_credentials", { * serviceName: user.serviceName, * userId: user.id, * }); * ``` * * ## Import * * OVHcloud User S3 Credentials can be imported using the `service_name`, `user_id` and `access_key_id` of the credential, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/s3Credential:S3Credential s3_credential service_name/user_id/access_key_id * ``` */ export declare class S3Credential extends pulumi.CustomResource { /** * Get an existing S3Credential resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: S3CredentialState, opts?: pulumi.CustomResourceOptions): S3Credential; /** * Returns true if the given object is an instance of S3Credential. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is S3Credential; /** * the Access Key ID */ readonly accessKeyId: pulumi.Output; readonly internalUserId: pulumi.Output; /** * (Sensitive) the Secret Access Key */ readonly secretAccessKey: pulumi.Output; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * The ID of a public cloud project's user. */ readonly userId: pulumi.Output; /** * Create a S3Credential resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: S3CredentialArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering S3Credential resources. */ export interface S3CredentialState { /** * the Access Key ID */ accessKeyId?: pulumi.Input; internalUserId?: pulumi.Input; /** * (Sensitive) the Secret Access Key */ secretAccessKey?: 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; } /** * The set of arguments for constructing a S3Credential resource. */ export interface S3CredentialArgs { /** * 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; }