Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Name of the group to create. Do not include the path in this value. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a new user group.
// Instantiate the class $iam = new AmazonIAM(); // Create a new parent group $response = $iam->create_group('abc_group'); // Success? var_dump($response->isOK());Result:
bool(true)
Create a new user group.
// Instantiate the class $iam = new AmazonIAM(); // Create a new child group $response = $iam->create_group('xyz_group', array( 'Path' => '/abc_group/' )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub