import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Customer Secret Key resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/CustomerSecretKey * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Creates a new secret key for the specified user. Secret keys are used for authentication with the Object Storage Service's Amazon S3 * compatible API. The secret key consists of an Access Key/Secret Key pair. For information, see * [Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). * * You must specify a *description* for the secret key (although it can be an empty string). It does not * have to be unique, and you can change it anytime with * [UpdateCustomerSecretKey](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/CustomerSecretKeySummary/UpdateCustomerSecretKey). * * Every user has permission to create a secret key for *their own user ID*. An administrator in your organization * does not need to write a policy to give users this ability. To compare, administrators who have permission to the * tenancy can use this operation to create a secret key for any user, including themselves. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testCustomerSecretKey = new oci.identity.CustomerSecretKey("test_customer_secret_key", { * displayName: customerSecretKeyDisplayName, * userId: testUser.id, * }); * ``` * * ## Import * * CustomerSecretKeys can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/customerSecretKey:CustomerSecretKey test_customer_secret_key "users/{userId}/customerSecretKeys/{customerSecretKeyId}" * ``` */ export declare class CustomerSecretKey extends pulumi.CustomResource { /** * Get an existing CustomerSecretKey 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?: CustomerSecretKeyState, opts?: pulumi.CustomResourceOptions): CustomerSecretKey; /** * Returns true if the given object is an instance of CustomerSecretKey. 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 CustomerSecretKey; /** * (Updatable) The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. */ readonly displayName: pulumi.Output; /** * The detailed status of INACTIVE lifecycleState. */ readonly inactiveState: pulumi.Output; /** * The secret key. */ readonly key: pulumi.Output; /** * The secret key's current state. */ readonly state: pulumi.Output; /** * Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * Date and time when this password will expire, in the format defined by RFC3339. Null if it never expires. Example: `2016-08-25T21:10:29.600Z` */ readonly timeExpires: pulumi.Output; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly userId: pulumi.Output; /** * Create a CustomerSecretKey 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: CustomerSecretKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomerSecretKey resources. */ export interface CustomerSecretKeyState { /** * (Updatable) The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. */ displayName?: pulumi.Input; /** * The detailed status of INACTIVE lifecycleState. */ inactiveState?: pulumi.Input; /** * The secret key. */ key?: pulumi.Input; /** * The secret key's current state. */ state?: pulumi.Input; /** * Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * Date and time when this password will expire, in the format defined by RFC3339. Null if it never expires. Example: `2016-08-25T21:10:29.600Z` */ timeExpires?: pulumi.Input; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ userId?: pulumi.Input; } /** * The set of arguments for constructing a CustomerSecretKey resource. */ export interface CustomerSecretKeyArgs { /** * (Updatable) The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. */ displayName: pulumi.Input; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ userId: pulumi.Input; } //# sourceMappingURL=customerSecretKey.d.ts.map