LoginProfile

Provides a RAM User Login Profile resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ram.User;
import com.pulumi.alicloud.ram.UserArgs;
import com.pulumi.alicloud.ram.LoginProfile;
import com.pulumi.alicloud.ram.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 user = new User("user", UserArgs.builder()
.displayName("user_display_name")
.mobile("86-18688888888")
.email("hello.uuu@aaa.com")
.comments("yoyoyo")
.force(true)
.build());
var profile = new LoginProfile("profile", LoginProfileArgs.builder()
.userName(user.name())
.password("Yourpassword1234")
.build());
}
}

Import

RAM login profile can be imported using the id or user name, e.g.

$ pulumi import alicloud:ram/loginProfile:LoginProfile example my-login

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val mfaBindRequired: Output<Boolean>?

This parameter indicates whether the MFA needs to be bind when the user first logs in. Default value is false.

Link copied to clipboard
val password: Output<String>

Password of the RAM user.

Link copied to clipboard

This parameter indicates whether the password needs to be reset when the user first logs in. Default value is false.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userName: Output<String>

Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.