import * as pulumi from "@pulumi/pulumi"; /** * Provides an Object Store Credential resource. This can be used to create, modify, and delete object stores credential. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as civo from "@pulumi/civo"; * * // Create a simple credential for the object store * const backup = civo.getObjectStoreCredential({ * name: "backup-server", * }); * // Create a credential for the object store with a specific access key and secret key * const backupObjectStoreCredential = new civo.ObjectStoreCredential("backup", { * name: "backup-server", * accessKeyId: "my-access-key", * secretAccessKey: "my-secret-key", * }); * // Use the credential to create a bucket * const backupObjectStore = new civo.ObjectStore("backup", { * name: "backup-server", * maxSizeGb: 500, * region: "LON1", * accessKeyId: backupObjectStoreCredential.accessKeyId, * }); * ``` * * ## Import * * using ID * * ```sh * $ pulumi import civo:index/objectStoreCredential:ObjectStoreCredential custom_object b8ecd2ab-2267-4a5e-8692-cbf1d32583e3 * ``` */ export declare class ObjectStoreCredential extends pulumi.CustomResource { /** * Get an existing ObjectStoreCredential 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?: ObjectStoreCredentialState, opts?: pulumi.CustomResourceOptions): ObjectStoreCredential; /** * Returns true if the given object is an instance of ObjectStoreCredential. 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 ObjectStoreCredential; /** * The access key id of the Object Store Credential. It is generated by the provider. */ readonly accessKeyId: pulumi.Output; /** * The name of the Object Store Credential. Must be unique. */ readonly name: pulumi.Output; /** * The region where the Object Store Credential will be created. */ readonly region: pulumi.Output; /** * The secret access key of the Object Store Credential. It is generated by the provider. */ readonly secretAccessKey: pulumi.Output; /** * The status of the Object Store Credential. */ readonly status: pulumi.Output; /** * Create a ObjectStoreCredential 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?: ObjectStoreCredentialArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObjectStoreCredential resources. */ export interface ObjectStoreCredentialState { /** * The access key id of the Object Store Credential. It is generated by the provider. */ accessKeyId?: pulumi.Input; /** * The name of the Object Store Credential. Must be unique. */ name?: pulumi.Input; /** * The region where the Object Store Credential will be created. */ region?: pulumi.Input; /** * The secret access key of the Object Store Credential. It is generated by the provider. */ secretAccessKey?: pulumi.Input; /** * The status of the Object Store Credential. */ status?: pulumi.Input; } /** * The set of arguments for constructing a ObjectStoreCredential resource. */ export interface ObjectStoreCredentialArgs { /** * The access key id of the Object Store Credential. It is generated by the provider. */ accessKeyId?: pulumi.Input; /** * The name of the Object Store Credential. Must be unique. */ name?: pulumi.Input; /** * The region where the Object Store Credential will be created. */ region?: pulumi.Input; /** * The secret access key of the Object Store Credential. It is generated by the provider. */ secretAccessKey?: pulumi.Input; }