The following code examples show how to use CreateGroup
.
- AWS CLI
-
To create an IAM group
The following
create-group
command creates an IAM group namedAdmins
.aws iam create-group \ --group-name
Admins
Output:
{ "Group": { "Path": "/", "CreateDate": "2015-03-09T20:30:24.940Z", "GroupId": "AIDGPMS9RO4H3FEXAMPLE", "Arn": "arn:aws:iam::123456789012:group/Admins", "GroupName": "Admins" } }
For more information, see Creating IAM user groups in the AWS IAM User Guide.
-
For API details, see CreateGroup
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.