Skip to content

Commit

Permalink
Ensures the modules documentation follows the correct formats
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed May 10, 2024
1 parent 3ca001e commit 7185809
Show file tree
Hide file tree
Showing 14 changed files with 225 additions and 225 deletions.
62 changes: 31 additions & 31 deletions plugins/modules/ec2_eni.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
short_description: Create and optionally attach an Elastic Network Interface (ENI) to an instance
description:
- Create and optionally attach an Elastic Network Interface (ENI) to an instance.
- If I(eni_id) or I(private_ip) is provided, the existing ENI (if any) will be modified.
- The I(attached) parameter controls the attachment status of the network interface.
- If O(eni_id) or O(private_ip) is provided, the existing ENI (if any) will be modified.
- The O(attached) parameter controls the attachment status of the network interface.
author:
- "Rob White (@wimnat)"
- "Mike Healey (@healem)"
options:
eni_id:
description:
- The ID of the ENI (to modify).
- If I(eni_id=None) and I(state=present), a new ENI will be created.
- If O(eni_id=None) and O(state=present), a new ENI will be created.
type: str
instance_id:
description:
Expand All @@ -41,7 +41,7 @@
security_groups:
description:
- List of security groups associated with the interface.
- Ignored when I(state=absent).
- Ignored when O(state=absent).
type: list
elements: str
default: []
Expand All @@ -63,8 +63,8 @@
type: bool
force_detach:
description:
- Force detachment of the interface. This applies either when explicitly detaching the interface by setting I(instance_id=None)
or when deleting an interface with I(state=absent).
- Force detachment of the interface. This applies either when explicitly detaching the interface by setting O(instance_id=None)
or when deleting an interface with O(state=absent).
default: false
type: bool
delete_on_termination:
Expand All @@ -82,20 +82,20 @@
secondary_private_ip_addresses:
description:
- A list of IP addresses to assign as secondary IP addresses to the network interface.
- This option is mutually exclusive of I(secondary_private_ip_address_count).
- This option is mutually exclusive of O(secondary_private_ip_address_count).
required: false
type: list
elements: str
purge_secondary_private_ip_addresses:
description:
- To be used with I(secondary_private_ip_addresses) to determine whether or not to remove any secondary IP addresses other than those specified.
- Set I(secondary_private_ip_addresses=[]) to purge all secondary addresses.
- To be used with O(secondary_private_ip_addresses) to determine whether or not to remove any secondary IP addresses other than those specified.
- Set O(secondary_private_ip_addresses=[]) to purge all secondary addresses.
default: false
type: bool
secondary_private_ip_address_count:
description:
- The number of secondary IP addresses to assign to the network interface.
- This option is mutually exclusive of I(secondary_private_ip_addresses).
- This option is mutually exclusive of O(secondary_private_ip_addresses).
required: false
type: int
allow_reassignment:
Expand All @@ -107,10 +107,10 @@
type: bool
name:
description:
- Name for the ENI. This will create a tag with the key C(Name) and the value assigned here.
- This can be used in conjunction with I(subnet_id) as another means of identifiying a network interface.
- AWS does not enforce unique C(Name) tags, so duplicate names are possible if you configure it that way.
If that is the case, you will need to provide other identifying information such as I(private_ip_address) or I(eni_id).
- Name for the ENI. This will create a tag with the key V(Name) and the value assigned here.
- This can be used in conjunction with O(subnet_id) as another means of identifiying a network interface.
- AWS does not enforce unique V(Name) tags, so duplicate names are possible if you configure it that way.
If that is the case, you will need to provide other identifying information such as O(private_ip_address) or O(eni_id).
required: false
type: str
extends_documentation_fragment:
Expand All @@ -119,9 +119,9 @@
- amazon.aws.tags
- amazon.aws.boto3
notes:
- This module identifies and ENI based on either the I(eni_id), a combination of I(private_ip_address) and I(subnet_id),
or a combination of I(instance_id) and I(device_id). Any of these options will let you specify a particular ENI.
- Support for I(tags) and I(purge_tags) was added in release 1.3.0.
- This module identifies and ENI based on either the O(eni_id), a combination of O(private_ip_address) and O(subnet_id),
or a combination of O(instance_id) and O(device_id). Any of these options will let you specify a particular ENI.
- Support for O(tags) and O(purge_tags) was added in release 1.3.0.
"""

EXAMPLES = r"""
Expand Down Expand Up @@ -213,7 +213,7 @@

RETURN = r"""
interface:
description: Network interface attributes
description: Network interface attributes.
returned: when state != absent
type: complex
contains:
Expand All @@ -229,56 +229,56 @@
"status": "attached"
}
description:
description: interface description
description: Interface description.
type: str
sample: Firewall network interface
groups:
description: dict of security groups
description: Dict of security groups.
type: dict
sample: { "sg-f8a8a9da": "default" }
id:
description: network interface id
description: Network interface id.
type: str
sample: "eni-1d889198"
mac_address:
description: interface's physical address
description: Interface's physical address.
type: str
sample: "00:00:5E:00:53:23"
name:
description: The name of the ENI
description: The name of the ENI.
type: str
sample: "my-eni-20"
owner_id:
description: aws account id
description: AWS account id.
type: str
sample: 812381371
private_ip_address:
description: primary ip address of this interface
description: Primary ip address of this interface.
type: str
sample: 10.20.30.40
private_ip_addresses:
description: list of all private ip addresses associated to this interface
description: List of all private ip addresses associated to this interface.
type: list
elements: dict
sample: [ { "primary_address": true, "private_ip_address": "10.20.30.40" } ]
source_dest_check:
description: value of source/dest check flag
description: Value of source/dest check flag.
type: bool
sample: True
status:
description: network interface status
description: Network interface status.
type: str
sample: "pending"
subnet_id:
description: which vpc subnet the interface is bound
description: Which vpc subnet the interface is bound.
type: str
sample: subnet-b0a0393c
tags:
description: The dictionary of tags associated with the ENI
description: The dictionary of tags associated with the ENI.
type: dict
sample: { "Name": "my-eni", "group": "Finance" }
vpc_id:
description: which vpc this network interface is bound
description: Which vpc this network interface is bound.
type: str
sample: vpc-9a9a9da
"""
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/ec2_eni_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
eni_id:
description:
- The ID of the ENI.
- This option is mutually exclusive of I(filters).
- This option is mutually exclusive of O(filters).
type: str
version_added: 1.3.0
filters:
description:
- A dict of filters to apply. Each dict item consists of a filter key and a filter value.
See U(https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNetworkInterfaces.html) for possible filters.
- This option is mutually exclusive of I(eni_id).
- This option is mutually exclusive of O(eni_id).
type: dict
default: {}
extends_documentation_fragment:
Expand Down Expand Up @@ -97,7 +97,7 @@
}
]
id:
description: The id of the ENI (alias for network_interface_id).
description: The id of the ENI (alias for RV(network_interface_id)).
returned: always
type: str
sample: "eni-392fsdf"
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/ec2_import_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
options:
state:
description:
- Use I(state=present) to import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
- Use I(state=absent) to cancel an in-process import virtual machine task.
- Use O(state=present) to import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
- Use O(state=absent) to cancel an in-process import virtual machine task.
default: "present"
choices: ["present", "absent"]
type: str
Expand Down Expand Up @@ -101,7 +101,7 @@
encrypted:
description:
- Specifies whether the destination AMI of the imported image should be encrypted.
- The default KMS key for EBS is used unless you specify a non-default KMS key using I(kms_key_id).
- The default KMS key for EBS is used unless you specify a non-default KMS key using O(kms_key_id).
type: bool
hypervisor:
description:
Expand All @@ -113,7 +113,7 @@
- An identifier for the symmetric KMS key to use when creating the encrypted AMI.
This parameter is only required if you want to use a non-default KMS key;
if this parameter is not specified, the default KMS key for EBS is used.
If a I(kms_key_id) is specified, the I(encrypted) flag must also be set.
If a O(kms_key_id) is specified, the O(encrypted) flag must also be set.
type: str
license_type:
description:
Expand Down
Loading

0 comments on commit 7185809

Please sign in to comment.