Show / Hide Table of Contents

Class LoginProfile

Provides a RAM User Login Profile resource.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Create a RAM login profile.
    var user = new AliCloud.Ram.User("user", new AliCloud.Ram.UserArgs
    {
        Comments = "yoyoyo",
        DisplayName = "user_display_name",
        Email = "hello.uuu@aaa.com",
        Force = true,
        Mobile = "86-18688888888",
    });
    var profile = new AliCloud.Ram.LoginProfile("profile", new AliCloud.Ram.LoginProfileArgs
    {
        Password = "Yourpassword1234",
        UserName = user.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
LoginProfile
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ram
Assembly: Pulumi.AliCloud.dll
Syntax
public class LoginProfile : CustomResource

Constructors

View Source

LoginProfile(String, LoginProfileArgs, CustomResourceOptions)

Create a LoginProfile resource with the given unique name, arguments, and options.

Declaration
public LoginProfile(string name, LoginProfileArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LoginProfileArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

MfaBindRequired

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

Declaration
public Output<bool?> MfaBindRequired { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Password

Password of the RAM user.

Declaration
public Output<string> Password { get; }
Property Value
Type Description
Output<System.String>
View Source

PasswordResetRequired

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

Declaration
public Output<bool?> PasswordResetRequired { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

UserName

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.

Declaration
public Output<string> UserName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, LoginProfileState, CustomResourceOptions)

Get an existing LoginProfile resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static LoginProfile Get(string name, Input<string> id, LoginProfileState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

LoginProfileState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
LoginProfile
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.