interface InitUserOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.InitUserOptions |
Java | software.amazon.awscdk.services.ec2.InitUserOptions |
Python | aws_cdk.aws_ec2.InitUserOptions |
TypeScript (source) | @aws-cdk/aws-ec2 » InitUserOptions |
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 * as ec2 from '@aws-cdk/aws-ec2';
const initUserOptions: ec2.InitUserOptions = {
groups: ['groups'],
homeDir: 'homeDir',
userId: 123,
};
Properties
Name | Type | Description |
---|---|---|
groups? | string[] | A list of group names. |
home | string | The user's home directory. |
user | number | A user ID. |
groups?
Type:
string[]
(optional, default: the user is not associated with any groups.)
A list of group names.
The user will be added to each group in the list.
homeDir?
Type:
string
(optional, default: assigned by the OS)
The user's home directory.
userId?
Type:
number
(optional, default: assigned by the OS)
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.