updated to describe required parameter (#56197)

* update ec2.py to describe required parameters for each option for `state`
This commit is contained in:
Takashi Sugimura 2019-05-10 07:44:53 +09:00 committed by Alicia Cozine
parent 748cfd89ab
commit 5346a5cdac

View file

@ -195,11 +195,11 @@ options:
state: state:
version_added: "1.3" version_added: "1.3"
description: description:
- create, terminate, start, stop or restart instances. - Create, terminate, start, stop or restart instances. The state 'restarted' was added in Ansible 2.2.
The state 'restarted' was added in 2.2 - When 'absent', I(instance_ids) is required.
required: false - When 'running', 'stopped' and 'restarted', I(instance_ids) or I(instance_tags) is required.
default: 'present' default: 'present'
choices: ['present', 'absent', 'running', 'restarted', 'stopped'] choices: ['absent', 'present', 'restarted', 'running', 'stopped']
type: str type: str
volumes: volumes:
version_added: "1.5" version_added: "1.5"