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