Interface InitUserOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InitUserOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.201Z")
@Stability(Stable)
public interface InitUserOptions
extends software.amazon.jsii.JsiiSerializable
Optional parameters used when creating a user.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; InitUserOptions initUserOptions = InitUserOptions.builder() .groups(List.of("groups")) .homeDir("homeDir") .userId(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInitUserOptions
static final class
An implementation forInitUserOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic InitUserOptions.Builder
builder()
A list of group names.default String
The user's home directory.default Number
A user ID.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGroups
A list of group names.The user will be added to each group in the list.
Default: the user is not associated with any groups.
-
getHomeDir
The user's home directory.Default: assigned by the OS
-
getUserId
A user ID.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
-
builder
- Returns:
- a
InitUserOptions.Builder
ofInitUserOptions
-