group_membership#
State module for managing IAM Group Membership.
- async idem_aws.states.aws.iam.group_membership.present(hub, ctx, name: str, group: str, users: List, resource_id: str = None) Dict[str, Any] [source]#
Adds the specified user to the specified group.
- Parameters:
- Request Syntax:
[iam-group-membership]: aws.iam.group_membership.present: - name: 'string' - resource_id: 'string' - group: 'string' - users: list
- Returns:
Dict[str, Any]
Examples
iam-group-membership-temp-name: aws.iam.group_membership.present: - name: test_group - resource_id: test_group - group: test_group - users: - test_user
- async idem_aws.states.aws.iam.group_membership.absent(hub, ctx, name: str, users: List = [], resource_id: str = None) Dict[str, Any] [source]#
Removes users from the specified Group.
- Parameters:
- Request Syntax:
[group_name]: aws.iam.group.absent: - name: "string" - resource_id: "string" - users: - "string"
- Returns:
Dict[str, Any]
Examples
iam-group-membership-test-group: aws.iam.group_membership.absent: - name: test_group - resource_id: test_group - users: - test_user