published on Friday, Feb 27, 2026 by Volcengine
published on Friday, Feb 27, 2026 by Volcengine
Provides a resource to manage iam login profile
Example Usage
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",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.iam.LoginProfile("foo",
login_allowed=True,
password="",
password_reset_required=True,
safe_auth_exempt_duration=1,
safe_auth_exempt_required=1,
safe_auth_exempt_unit=1,
safe_auth_flag=True,
safe_auth_type="phone",
user_name="jonny")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.NewLoginProfile(ctx, "foo", &iam.LoginProfileArgs{
LoginAllowed: pulumi.Bool(true),
Password: pulumi.String(""),
PasswordResetRequired: pulumi.Bool(true),
SafeAuthExemptDuration: pulumi.Int(1),
SafeAuthExemptRequired: pulumi.Int(1),
SafeAuthExemptUnit: pulumi.Int(1),
SafeAuthFlag: pulumi.Bool(true),
SafeAuthType: pulumi.String("phone"),
UserName: pulumi.String("jonny"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Iam.LoginProfile("foo", new()
{
LoginAllowed = true,
Password = "",
PasswordResetRequired = true,
SafeAuthExemptDuration = 1,
SafeAuthExemptRequired = 1,
SafeAuthExemptUnit = 1,
SafeAuthFlag = true,
SafeAuthType = "phone",
UserName = "jonny",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.iam.LoginProfile;
import com.pulumi.volcengine.iam.LoginProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new LoginProfile("foo", LoginProfileArgs.builder()
.loginAllowed(true)
.password("")
.passwordResetRequired(true)
.safeAuthExemptDuration(1)
.safeAuthExemptRequired(1)
.safeAuthExemptUnit(1)
.safeAuthFlag(true)
.safeAuthType("phone")
.userName("jonny")
.build());
}
}
resources:
foo:
type: volcengine:iam:LoginProfile
properties:
loginAllowed: true
password:
passwordResetRequired: true
safeAuthExemptDuration: 1
safeAuthExemptRequired: 1
safeAuthExemptUnit: 1
safeAuthFlag: true
safeAuthType: phone
userName: jonny
Create LoginProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoginProfile(name: string, args: LoginProfileArgs, opts?: CustomResourceOptions);@overload
def LoginProfile(resource_name: str,
args: LoginProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoginProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
user_name: Optional[str] = None,
login_allowed: Optional[bool] = None,
password_reset_required: Optional[bool] = None,
safe_auth_exempt_duration: Optional[int] = None,
safe_auth_exempt_required: Optional[int] = None,
safe_auth_exempt_unit: Optional[int] = None,
safe_auth_flag: Optional[bool] = None,
safe_auth_type: Optional[str] = None)func NewLoginProfile(ctx *Context, name string, args LoginProfileArgs, opts ...ResourceOption) (*LoginProfile, error)public LoginProfile(string name, LoginProfileArgs args, CustomResourceOptions? opts = null)
public LoginProfile(String name, LoginProfileArgs args)
public LoginProfile(String name, LoginProfileArgs args, CustomResourceOptions options)
type: volcengine:iam:LoginProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LoginProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LoginProfileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LoginProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoginProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoginProfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var loginProfileResource = new Volcengine.Iam.LoginProfile("loginProfileResource", new()
{
Password = "string",
UserName = "string",
LoginAllowed = false,
PasswordResetRequired = false,
SafeAuthExemptDuration = 0,
SafeAuthExemptRequired = 0,
SafeAuthExemptUnit = 0,
SafeAuthFlag = false,
SafeAuthType = "string",
});
example, err := iam.NewLoginProfile(ctx, "loginProfileResource", &iam.LoginProfileArgs{
Password: pulumi.String("string"),
UserName: pulumi.String("string"),
LoginAllowed: pulumi.Bool(false),
PasswordResetRequired: pulumi.Bool(false),
SafeAuthExemptDuration: pulumi.Int(0),
SafeAuthExemptRequired: pulumi.Int(0),
SafeAuthExemptUnit: pulumi.Int(0),
SafeAuthFlag: pulumi.Bool(false),
SafeAuthType: pulumi.String("string"),
})
var loginProfileResource = new LoginProfile("loginProfileResource", LoginProfileArgs.builder()
.password("string")
.userName("string")
.loginAllowed(false)
.passwordResetRequired(false)
.safeAuthExemptDuration(0)
.safeAuthExemptRequired(0)
.safeAuthExemptUnit(0)
.safeAuthFlag(false)
.safeAuthType("string")
.build());
login_profile_resource = volcengine.iam.LoginProfile("loginProfileResource",
password="string",
user_name="string",
login_allowed=False,
password_reset_required=False,
safe_auth_exempt_duration=0,
safe_auth_exempt_required=0,
safe_auth_exempt_unit=0,
safe_auth_flag=False,
safe_auth_type="string")
const loginProfileResource = new volcengine.iam.LoginProfile("loginProfileResource", {
password: "string",
userName: "string",
loginAllowed: false,
passwordResetRequired: false,
safeAuthExemptDuration: 0,
safeAuthExemptRequired: 0,
safeAuthExemptUnit: 0,
safeAuthFlag: false,
safeAuthType: "string",
});
type: volcengine:iam:LoginProfile
properties:
loginAllowed: false
password: string
passwordResetRequired: false
safeAuthExemptDuration: 0
safeAuthExemptRequired: 0
safeAuthExemptUnit: 0
safeAuthFlag: false
safeAuthType: string
userName: string
LoginProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LoginProfile resource accepts the following input properties:
- Password string
- The password.
- User
Name string - The user name.
- Login
Allowed bool - The flag of login allowed.
- Password
Reset boolRequired - Is required reset password when next time login in.
- Safe
Auth intExempt Duration - The duration of safe auth exempt.
- Safe
Auth intExempt Required - The flag of safe auth exempt required.
- Safe
Auth intExempt Unit - The unit of safe auth exempt.
- Safe
Auth boolFlag - The flag of safe auth.
- Safe
Auth stringType - The type of safe auth.
- Password string
- The password.
- User
Name string - The user name.
- Login
Allowed bool - The flag of login allowed.
- Password
Reset boolRequired - Is required reset password when next time login in.
- Safe
Auth intExempt Duration - The duration of safe auth exempt.
- Safe
Auth intExempt Required - The flag of safe auth exempt required.
- Safe
Auth intExempt Unit - The unit of safe auth exempt.
- Safe
Auth boolFlag - The flag of safe auth.
- Safe
Auth stringType - The type of safe auth.
- password String
- The password.
- user
Name String - The user name.
- login
Allowed Boolean - The flag of login allowed.
- password
Reset BooleanRequired - Is required reset password when next time login in.
- safe
Auth IntegerExempt Duration - The duration of safe auth exempt.
- safe
Auth IntegerExempt Required - The flag of safe auth exempt required.
- safe
Auth IntegerExempt Unit - The unit of safe auth exempt.
- safe
Auth BooleanFlag - The flag of safe auth.
- safe
Auth StringType - The type of safe auth.
- password string
- The password.
- user
Name string - The user name.
- login
Allowed boolean - The flag of login allowed.
- password
Reset booleanRequired - Is required reset password when next time login in.
- safe
Auth numberExempt Duration - The duration of safe auth exempt.
- safe
Auth numberExempt Required - The flag of safe auth exempt required.
- safe
Auth numberExempt Unit - The unit of safe auth exempt.
- safe
Auth booleanFlag - The flag of safe auth.
- safe
Auth stringType - The type of safe auth.
- password str
- The password.
- user_
name str - The user name.
- login_
allowed bool - The flag of login allowed.
- password_
reset_ boolrequired - Is required reset password when next time login in.
- safe_
auth_ intexempt_ duration - The duration of safe auth exempt.
- safe_
auth_ intexempt_ required - The flag of safe auth exempt required.
- safe_
auth_ intexempt_ unit - The unit of safe auth exempt.
- safe_
auth_ boolflag - The flag of safe auth.
- safe_
auth_ strtype - The type of safe auth.
- password String
- The password.
- user
Name String - The user name.
- login
Allowed Boolean - The flag of login allowed.
- password
Reset BooleanRequired - Is required reset password when next time login in.
- safe
Auth NumberExempt Duration - The duration of safe auth exempt.
- safe
Auth NumberExempt Required - The flag of safe auth exempt required.
- safe
Auth NumberExempt Unit - The unit of safe auth exempt.
- safe
Auth BooleanFlag - The flag of safe auth.
- safe
Auth StringType - The type of safe auth.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoginProfile resource produces the following output properties:
- Create
Date string - The create date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringDate - The last login date.
- Last
Login stringIp - The last login ip.
- Last
Reset intPassword Time - The last reset password time.
- Login
Locked bool - The flag of login locked.
- Password
Expire intAt - The password expire at.
- Update
Date string - The update date.
- User
Id int - The user id.
- Create
Date string - The create date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringDate - The last login date.
- Last
Login stringIp - The last login ip.
- Last
Reset intPassword Time - The last reset password time.
- Login
Locked bool - The flag of login locked.
- Password
Expire intAt - The password expire at.
- Update
Date string - The update date.
- User
Id int - The user id.
- create
Date String - The create date.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringDate - The last login date.
- last
Login StringIp - The last login ip.
- last
Reset IntegerPassword Time - The last reset password time.
- login
Locked Boolean - The flag of login locked.
- password
Expire IntegerAt - The password expire at.
- update
Date String - The update date.
- user
Id Integer - The user id.
- create
Date string - The create date.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Login stringDate - The last login date.
- last
Login stringIp - The last login ip.
- last
Reset numberPassword Time - The last reset password time.
- login
Locked boolean - The flag of login locked.
- password
Expire numberAt - The password expire at.
- update
Date string - The update date.
- user
Id number - The user id.
- create_
date str - The create date.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
login_ strdate - The last login date.
- last_
login_ strip - The last login ip.
- last_
reset_ intpassword_ time - The last reset password time.
- login_
locked bool - The flag of login locked.
- password_
expire_ intat - The password expire at.
- update_
date str - The update date.
- user_
id int - The user id.
- create
Date String - The create date.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringDate - The last login date.
- last
Login StringIp - The last login ip.
- last
Reset NumberPassword Time - The last reset password time.
- login
Locked Boolean - The flag of login locked.
- password
Expire NumberAt - The password expire at.
- update
Date String - The update date.
- user
Id Number - The user id.
Look up Existing LoginProfile Resource
Get an existing LoginProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LoginProfileState, opts?: CustomResourceOptions): LoginProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_date: Optional[str] = None,
last_login_date: Optional[str] = None,
last_login_ip: Optional[str] = None,
last_reset_password_time: Optional[int] = None,
login_allowed: Optional[bool] = None,
login_locked: Optional[bool] = None,
password: Optional[str] = None,
password_expire_at: Optional[int] = None,
password_reset_required: Optional[bool] = None,
safe_auth_exempt_duration: Optional[int] = None,
safe_auth_exempt_required: Optional[int] = None,
safe_auth_exempt_unit: Optional[int] = None,
safe_auth_flag: Optional[bool] = None,
safe_auth_type: Optional[str] = None,
update_date: Optional[str] = None,
user_id: Optional[int] = None,
user_name: Optional[str] = None) -> LoginProfilefunc GetLoginProfile(ctx *Context, name string, id IDInput, state *LoginProfileState, opts ...ResourceOption) (*LoginProfile, error)public static LoginProfile Get(string name, Input<string> id, LoginProfileState? state, CustomResourceOptions? opts = null)public static LoginProfile get(String name, Output<String> id, LoginProfileState state, CustomResourceOptions options)resources: _: type: volcengine:iam:LoginProfile get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Date string - The create date.
- Last
Login stringDate - The last login date.
- Last
Login stringIp - The last login ip.
- Last
Reset intPassword Time - The last reset password time.
- Login
Allowed bool - The flag of login allowed.
- Login
Locked bool - The flag of login locked.
- Password string
- The password.
- Password
Expire intAt - The password expire at.
- Password
Reset boolRequired - Is required reset password when next time login in.
- Safe
Auth intExempt Duration - The duration of safe auth exempt.
- Safe
Auth intExempt Required - The flag of safe auth exempt required.
- Safe
Auth intExempt Unit - The unit of safe auth exempt.
- Safe
Auth boolFlag - The flag of safe auth.
- Safe
Auth stringType - The type of safe auth.
- Update
Date string - The update date.
- User
Id int - The user id.
- User
Name string - The user name.
- Create
Date string - The create date.
- Last
Login stringDate - The last login date.
- Last
Login stringIp - The last login ip.
- Last
Reset intPassword Time - The last reset password time.
- Login
Allowed bool - The flag of login allowed.
- Login
Locked bool - The flag of login locked.
- Password string
- The password.
- Password
Expire intAt - The password expire at.
- Password
Reset boolRequired - Is required reset password when next time login in.
- Safe
Auth intExempt Duration - The duration of safe auth exempt.
- Safe
Auth intExempt Required - The flag of safe auth exempt required.
- Safe
Auth intExempt Unit - The unit of safe auth exempt.
- Safe
Auth boolFlag - The flag of safe auth.
- Safe
Auth stringType - The type of safe auth.
- Update
Date string - The update date.
- User
Id int - The user id.
- User
Name string - The user name.
- create
Date String - The create date.
- last
Login StringDate - The last login date.
- last
Login StringIp - The last login ip.
- last
Reset IntegerPassword Time - The last reset password time.
- login
Allowed Boolean - The flag of login allowed.
- login
Locked Boolean - The flag of login locked.
- password String
- The password.
- password
Expire IntegerAt - The password expire at.
- password
Reset BooleanRequired - Is required reset password when next time login in.
- safe
Auth IntegerExempt Duration - The duration of safe auth exempt.
- safe
Auth IntegerExempt Required - The flag of safe auth exempt required.
- safe
Auth IntegerExempt Unit - The unit of safe auth exempt.
- safe
Auth BooleanFlag - The flag of safe auth.
- safe
Auth StringType - The type of safe auth.
- update
Date String - The update date.
- user
Id Integer - The user id.
- user
Name String - The user name.
- create
Date string - The create date.
- last
Login stringDate - The last login date.
- last
Login stringIp - The last login ip.
- last
Reset numberPassword Time - The last reset password time.
- login
Allowed boolean - The flag of login allowed.
- login
Locked boolean - The flag of login locked.
- password string
- The password.
- password
Expire numberAt - The password expire at.
- password
Reset booleanRequired - Is required reset password when next time login in.
- safe
Auth numberExempt Duration - The duration of safe auth exempt.
- safe
Auth numberExempt Required - The flag of safe auth exempt required.
- safe
Auth numberExempt Unit - The unit of safe auth exempt.
- safe
Auth booleanFlag - The flag of safe auth.
- safe
Auth stringType - The type of safe auth.
- update
Date string - The update date.
- user
Id number - The user id.
- user
Name string - The user name.
- create_
date str - The create date.
- last_
login_ strdate - The last login date.
- last_
login_ strip - The last login ip.
- last_
reset_ intpassword_ time - The last reset password time.
- login_
allowed bool - The flag of login allowed.
- login_
locked bool - The flag of login locked.
- password str
- The password.
- password_
expire_ intat - The password expire at.
- password_
reset_ boolrequired - Is required reset password when next time login in.
- safe_
auth_ intexempt_ duration - The duration of safe auth exempt.
- safe_
auth_ intexempt_ required - The flag of safe auth exempt required.
- safe_
auth_ intexempt_ unit - The unit of safe auth exempt.
- safe_
auth_ boolflag - The flag of safe auth.
- safe_
auth_ strtype - The type of safe auth.
- update_
date str - The update date.
- user_
id int - The user id.
- user_
name str - The user name.
- create
Date String - The create date.
- last
Login StringDate - The last login date.
- last
Login StringIp - The last login ip.
- last
Reset NumberPassword Time - The last reset password time.
- login
Allowed Boolean - The flag of login allowed.
- login
Locked Boolean - The flag of login locked.
- password String
- The password.
- password
Expire NumberAt - The password expire at.
- password
Reset BooleanRequired - Is required reset password when next time login in.
- safe
Auth NumberExempt Duration - The duration of safe auth exempt.
- safe
Auth NumberExempt Required - The flag of safe auth exempt required.
- safe
Auth NumberExempt Unit - The unit of safe auth exempt.
- safe
Auth BooleanFlag - The flag of safe auth.
- safe
Auth StringType - The type of safe auth.
- update
Date String - The update date.
- user
Id Number - The user id.
- user
Name String - The user name.
Import
Login profile can be imported using the UserName, e.g.
$ pulumi import volcengine:iam/loginProfile:LoginProfile default user_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
published on Friday, Feb 27, 2026 by Volcengine
