Class InitUserOptions
Optional parameters used when creating a user.
Inheritance
System.Object
InitUserOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class InitUserOptions : Object, IInitUserOptions
Syntax (vb)
Public Class InitUserOptions
Inherits Object
Implements IInitUserOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var initUserOptions = new InitUserOptions {
Groups = new [] { "groups" },
HomeDir = "homeDir",
UserId = 123
};
Synopsis
Constructors
InitUserOptions() |
Properties
Groups | A list of group names. |
HomeDir | The user's home directory. |
UserId | A user ID. |
Constructors
InitUserOptions()
public InitUserOptions()
Properties
Groups
A list of group names.
public string[] Groups { get; set; }
Property Value
System.String[]
Remarks
The user will be added to each group in the list.
Default: the user is not associated with any groups.
HomeDir
The user's home directory.
public string HomeDir { get; set; }
Property Value
System.String
Remarks
Default: assigned by the OS
UserId
A user ID.
public Nullable<double> UserId { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The creation process fails if the user name exists with a different user ID. If the user ID is already assigned to an existing user the operating system may reject the creation request.
Default: assigned by the OS