Group

class Group : KotlinCustomResource

Provides an IAM group.

NOTE on user management: Using aws.iam.GroupMembership or aws.iam.UserGroupMembership resources in addition to manually managing user/group membership using the console may lead to configuration drift or conflicts. For this reason, it's recommended to either manage membership entirely with the provider or entirely within the AWS console.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Group;
import com.pulumi.aws.iam.GroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var developers = new Group("developers", GroupArgs.builder()
.path("/users/")
.build());
}
}

Import

IAM Groups can be imported using the name, e.g.,

$ pulumi import aws:iam/group:Group developers developers

Properties

Link copied to clipboard
val arn: Output<String>

The ARN assigned by AWS for this group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The group's name. The name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-_.. Group names are not distinguished by case. For example, you cannot create groups named both "ADMINS" and "admins".

Link copied to clipboard
val path: Output<String>?

Path in which to create the group.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uniqueId: Output<String>

The 1 assigned by AWS.

Link copied to clipboard
val urn: Output<String>