Skip to content

Commit

Permalink
Docs: sanity fixes (ansible-collections#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akasurde authored and GomathiselviS committed Sep 21, 2022
1 parent a317459 commit e1e29be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/modules/iam_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__metaclass__ = type


DOCUMENTATION = '''
DOCUMENTATION = r'''
---
module: iam_user
version_added: 1.0.0
Expand All @@ -26,6 +26,7 @@
- To embed an inline policy, use M(community.aws.iam_policy).
required: false
type: list
elements: str
aliases: ['managed_policy']
state:
description:
Expand All @@ -47,7 +48,7 @@
'''

EXAMPLES = '''
EXAMPLES = r'''
# Note: These examples do not set authentication details, see the AWS Guide for details.
# Note: This module does not allow management of groups that users belong to.
# Groups should manage their membership directly using `iam_group`,
Expand Down Expand Up @@ -77,7 +78,7 @@
state: absent
'''
RETURN = '''
RETURN = r'''
user:
description: dictionary containing all the user information
returned: success
Expand Down Expand Up @@ -344,7 +345,7 @@ def main():

argument_spec = dict(
name=dict(required=True, type='str'),
managed_policies=dict(default=[], type='list', aliases=['managed_policy']),
managed_policies=dict(default=[], type='list', aliases=['managed_policy'], elements='str'),
state=dict(choices=['present', 'absent'], required=True),
purge_policies=dict(default=False, type='bool', aliases=['purge_policy', 'purge_managed_policies'])
)
Expand Down

0 comments on commit e1e29be

Please sign in to comment.