Interface IInitUserOptions
Optional parameters used when creating a user.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IInitUserOptions
Syntax (vb)
Public Interface 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
Properties
Groups | A list of group names. |
HomeDir | The user's home directory. |
UserId | A user ID. |
Properties
Groups
A list of group names.
virtual string[] Groups { get; }
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.
virtual string HomeDir { get; }
Property Value
System.String
Remarks
Default: assigned by the OS
UserId
A user ID.
virtual Nullable<double> UserId { get; }
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