import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Auth Token resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/AuthToken * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Creates a new auth token for the specified user. For information about what auth tokens are for, see * [Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). * * You must specify a *description* for the auth token (although it can be an empty string). It does not * have to be unique, and you can change it anytime with * [UpdateAuthToken](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/AuthToken/UpdateAuthToken). * * Every user has permission to create an auth token 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 an auth token for any user, including themselves. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuthToken = new oci.identity.AuthToken("test_auth_token", { * description: authTokenDescription, * userId: testUser.id, * }); * ``` * * ## Import * * AuthTokens can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/authToken:AuthToken test_auth_token "users/{userId}/authTokens/{authTokenId}" * ``` */ export declare class AuthToken extends pulumi.CustomResource { /** * Get an existing AuthToken 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?: AuthTokenState, opts?: pulumi.CustomResourceOptions): AuthToken; /** * Returns true if the given object is an instance of AuthToken. 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 AuthToken; /** * (Updatable) The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. */ readonly description: pulumi.Output; /** * The detailed status of INACTIVE lifecycleState. */ readonly inactiveState: pulumi.Output; /** * The token's current state. */ readonly state: pulumi.Output; /** * Date and time the `AuthToken` 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 auth token 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 auth token. The value is available only in the response for `CreateAuthToken`, and not for `ListAuthTokens` or `UpdateAuthToken`. */ readonly token: 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 AuthToken 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: AuthTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuthToken resources. */ export interface AuthTokenState { /** * (Updatable) The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. */ description?: pulumi.Input; /** * The detailed status of INACTIVE lifecycleState. */ inactiveState?: pulumi.Input; /** * The token's current state. */ state?: pulumi.Input; /** * Date and time the `AuthToken` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * Date and time when this auth token will expire, in the format defined by RFC3339. Null if it never expires. Example: `2016-08-25T21:10:29.600Z` */ timeExpires?: pulumi.Input; /** * The auth token. The value is available only in the response for `CreateAuthToken`, and not for `ListAuthTokens` or `UpdateAuthToken`. */ token?: 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 AuthToken resource. */ export interface AuthTokenArgs { /** * (Updatable) The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. */ description: 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=authToken.d.ts.map