Fix RETURN section document in iam_role.py (#28430)

This commit is contained in:
KrdLab 2017-09-15 17:21:27 +09:00 committed by ansibot
commit e0a5b7d7ea

View file

@ -90,32 +90,37 @@ EXAMPLES = '''
'''
RETURN = '''
path:
iam_role:
description: dictionary containing the IAM Role data
returned: success
type: complex
contains:
path:
description: the path to the role
type: string
returned: always
sample: /
role_name:
role_name:
description: the friendly name that identifies the role
type: string
returned: always
sample: myrole
role_id:
role_id:
description: the stable and unique string identifying the role
type: string
returned: always
sample: ABCDEFF4EZ4ABCDEFV4ZC
arn:
arn:
description: the Amazon Resource Name (ARN) specifying the role
type: string
returned: always
sample: "arn:aws:iam::1234567890:role/mynewrole"
create_date:
create_date:
description: the date and time, in ISO 8601 date-time format, when the role was created
type: string
returned: always
sample: "2016-08-14T04:36:28+00:00"
assume_role_policy_document:
assume_role_policy_document:
description: the policy that grants an entity permission to assume the role
type: string
returned: always
@ -132,7 +137,7 @@ assume_role_policy_document:
],
'version': '2012-10-17'
}
attached_policies:
attached_policies:
description: a list of dicts containing the name and ARN of the managed IAM policies attached to the role
type: list
returned: always