import * as core from "@terrascript/core"; export interface UserGroupMembershipArgs extends core.ResourceArgs { /** * (Required) A list of [IAM Groups][1] to add the user to */ groups: core.Array | core.ArrayOut; /** * (Required) The name of the [IAM User][2] to add to groups */ user: string | core.StringOut; } export class UserGroupMembership extends core.Resource { /** * (Required) A list of [IAM Groups][1] to add the user to */ @core.attr(String, { kind: "array" }) public groups!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the [IAM User][2] to add to groups */ @core.attr(String) public user!: string | core.StringOut; constructor(name: string, args?: UserGroupMembershipArgs) { super(name, "aws_iam_user_group_membership", args); } public override getNamespace(): string { return "aws_iam"; } }