@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
238 lines (237 loc) • 6.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage iam login profile
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.iam.LoginProfile("foo", {
* loginAllowed: true,
* password: "",
* passwordResetRequired: true,
* safeAuthExemptDuration: 1,
* safeAuthExemptRequired: 1,
* safeAuthExemptUnit: 1,
* safeAuthFlag: true,
* safeAuthType: "phone",
* userName: "jonny-tt",
* });
* ```
*
* ## Import
*
* Login profile can be imported using the UserName, e.g.
*
* ```sh
* $ pulumi import volcengine:iam/loginProfile:LoginProfile default user_name
* ```
*/
export declare class LoginProfile extends pulumi.CustomResource {
/**
* Get an existing LoginProfile 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<pulumi.ID>, state?: LoginProfileState, opts?: pulumi.CustomResourceOptions): LoginProfile;
/**
* Returns true if the given object is an instance of LoginProfile. 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 LoginProfile;
/**
* The create date.
*/
readonly createDate: pulumi.Output<string>;
/**
* The last login date.
*/
readonly lastLoginDate: pulumi.Output<string>;
/**
* The last login ip.
*/
readonly lastLoginIp: pulumi.Output<string>;
/**
* The last reset password time.
*/
readonly lastResetPasswordTime: pulumi.Output<number>;
/**
* The flag of login allowed.
*/
readonly loginAllowed: pulumi.Output<boolean>;
/**
* The flag of login locked.
*/
readonly loginLocked: pulumi.Output<boolean>;
/**
* The password.
*/
readonly password: pulumi.Output<string>;
/**
* The password expire at.
*/
readonly passwordExpireAt: pulumi.Output<number>;
/**
* Is required reset password when next time login in.
*/
readonly passwordResetRequired: pulumi.Output<boolean>;
/**
* The duration of safe auth exempt.
*/
readonly safeAuthExemptDuration: pulumi.Output<number>;
/**
* The flag of safe auth exempt required.
*/
readonly safeAuthExemptRequired: pulumi.Output<number>;
/**
* The unit of safe auth exempt.
*/
readonly safeAuthExemptUnit: pulumi.Output<number>;
/**
* The flag of safe auth.
*/
readonly safeAuthFlag: pulumi.Output<boolean>;
/**
* The type of safe auth.
*/
readonly safeAuthType: pulumi.Output<string>;
/**
* The update date.
*/
readonly updateDate: pulumi.Output<string>;
/**
* The user id.
*/
readonly userId: pulumi.Output<number>;
/**
* The user name.
*/
readonly userName: pulumi.Output<string>;
/**
* Create a LoginProfile 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: LoginProfileArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LoginProfile resources.
*/
export interface LoginProfileState {
/**
* The create date.
*/
createDate?: pulumi.Input<string>;
/**
* The last login date.
*/
lastLoginDate?: pulumi.Input<string>;
/**
* The last login ip.
*/
lastLoginIp?: pulumi.Input<string>;
/**
* The last reset password time.
*/
lastResetPasswordTime?: pulumi.Input<number>;
/**
* The flag of login allowed.
*/
loginAllowed?: pulumi.Input<boolean>;
/**
* The flag of login locked.
*/
loginLocked?: pulumi.Input<boolean>;
/**
* The password.
*/
password?: pulumi.Input<string>;
/**
* The password expire at.
*/
passwordExpireAt?: pulumi.Input<number>;
/**
* Is required reset password when next time login in.
*/
passwordResetRequired?: pulumi.Input<boolean>;
/**
* The duration of safe auth exempt.
*/
safeAuthExemptDuration?: pulumi.Input<number>;
/**
* The flag of safe auth exempt required.
*/
safeAuthExemptRequired?: pulumi.Input<number>;
/**
* The unit of safe auth exempt.
*/
safeAuthExemptUnit?: pulumi.Input<number>;
/**
* The flag of safe auth.
*/
safeAuthFlag?: pulumi.Input<boolean>;
/**
* The type of safe auth.
*/
safeAuthType?: pulumi.Input<string>;
/**
* The update date.
*/
updateDate?: pulumi.Input<string>;
/**
* The user id.
*/
userId?: pulumi.Input<number>;
/**
* The user name.
*/
userName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a LoginProfile resource.
*/
export interface LoginProfileArgs {
/**
* The flag of login allowed.
*/
loginAllowed?: pulumi.Input<boolean>;
/**
* The password.
*/
password: pulumi.Input<string>;
/**
* Is required reset password when next time login in.
*/
passwordResetRequired?: pulumi.Input<boolean>;
/**
* The duration of safe auth exempt.
*/
safeAuthExemptDuration?: pulumi.Input<number>;
/**
* The flag of safe auth exempt required.
*/
safeAuthExemptRequired?: pulumi.Input<number>;
/**
* The unit of safe auth exempt.
*/
safeAuthExemptUnit?: pulumi.Input<number>;
/**
* The flag of safe auth.
*/
safeAuthFlag?: pulumi.Input<boolean>;
/**
* The type of safe auth.
*/
safeAuthType?: pulumi.Input<string>;
/**
* The user name.
*/
userName: pulumi.Input<string>;
}