Skip to content

Commit

Permalink
Adding basic descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Sep 1, 2021
1 parent 3ba662a commit 807d03f
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions plugins/modules/ec2_spot_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@

DOCUMENTATION = '''
---
module: ec2_spot_instance_info
version_added: 2.0.0
short_description: Gather information about ec2 spot instance requests
description:
- Describes the specified Spot Instance requests.
options:
filters:
description:
- A list of filters to apply.
- Each list item is a dict consisting of a filter key and a filter value.
- See U(https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotInstanceRequests.html) for possible filters.
type: list
dry_run:
description:
- A boolean to check if you have the required permissions for the action.
- Does not make the request.
- If required permissions are not present then returns an error response UnauthorizedOperation else DryRunOperation.
type: bool
spot_instance_request_ids:
description:
- One or more Spot Instance request IDs.
type: str
next_token:
description:
- A token to request the next set of results.
- Value is null when no more results to return
type: str
max_results:
description:
- Maximum number of results to be returned in a single call.
- Value can be between 5 and 1000.
type: int
'''

EXAMPLES = '''
Expand All @@ -19,9 +52,9 @@
import datetime

try:
import botocore
import botocore
except ImportError:
pass # Handled by AnsibleAWSModule
pass # Handled by AnsibleAWSModule
from ansible_collections.amazon.aws.plugins.module_utils.core import AnsibleAWSModule
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import AWSRetry
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import ansible_dict_to_boto3_filter_list
Expand Down

0 comments on commit 807d03f

Please sign in to comment.