Skip to content

Commit 15568f0

Browse files
authored
Fix non-matching defaults in docs (#1576)
Fix non-matching defaults in docs Depends-On: #1579 SUMMARY Fix various non-matching default values exposed by ansible/ansible#79267. ISSUE TYPE Docs Pull Request COMPONENT NAME various Reviewed-by: Markus Bergholz <[email protected]>
1 parent cea2ab5 commit 15568f0

32 files changed

+66
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
trivial:
2+
- "Fixed ``default`` values in various modules so that documentation and argument spec coincide (https://github.com/ansible-collections/community.aws/pull/1576)."

plugins/modules/api_gateway.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
description:
7777
- ENV variables for the stage. Define a dict of key values pairs for variables.
7878
type: dict
79+
default: {}
7980
stage_canary_settings:
8081
description:
8182
- Canary settings for the deployment of the stage.
@@ -86,6 +87,7 @@
8687
- 'C(useStageCache): A Boolean flag to indicate whether the canary deployment uses the stage cache or not.'
8788
- See docs U(https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway.html#APIGateway.Client.create_stage)
8889
type: dict
90+
default: {}
8991
tracing_enabled:
9092
description:
9193
- Specifies whether active tracing with X-ray is enabled for the API GW stage.

plugins/modules/autoscaling_launch_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
- You can specify either security group names or IDs or a mix.
6060
type: list
6161
elements: str
62+
default: []
6263
volumes:
6364
description:
6465
- A list dictionaries defining the volumes to create.

plugins/modules/batch_job_definition.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
see U(https://docs.docker.com/engine/reference/builder/#cmd).
7979
type: list
8080
elements: str
81+
default: []
8182
job_role_arn:
8283
description:
8384
- The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions.
@@ -104,6 +105,7 @@
104105
allowed. This name is referenced in the sourceVolume parameter of container definition mountPoints.
105106
type: list
106107
elements: dict
108+
default: []
107109
environment:
108110
description:
109111
- The environment variables to pass to a container. This parameter maps to Env in the Create a container section
@@ -117,6 +119,7 @@
117119
- The value of the key value pair. For environment variables, this is the value of the environment variable.
118120
type: list
119121
elements: dict
122+
default: []
120123
mount_points:
121124
description:
122125
- The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container
@@ -134,6 +137,7 @@
134137
- The name of the volume to mount.
135138
type: list
136139
elements: dict
140+
default: []
137141
readonly_root_filesystem:
138142
description:
139143
- When this parameter is true, the container is given read-only access to its root file system. This parameter
@@ -162,6 +166,7 @@
162166
- The soft limit for the ulimit type.
163167
type: list
164168
elements: dict
169+
default: []
165170
user:
166171
description:
167172
- The user name to use inside the container. This parameter maps to User in the Create a container section of

plugins/modules/cloudformation_stack_set.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
description:
140140
- Settings to change what is considered "failed" when running stack instance updates, and how many to do at a time.
141141
type: dict
142+
default: {}
142143
suboptions:
143144
fail_count:
144145
description:

plugins/modules/cloudfront_distribution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
- Each alias must be unique across all distribution for the AWS account.
7373
type: list
7474
elements: str
75+
default: []
7576
7677
purge_aliases:
7778
description:

plugins/modules/codecommit_repository.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
aliases:
3232
- comment
3333
type: str
34+
default: ''
3435
state:
3536
description:
3637
- Specifies the state of repository.

plugins/modules/data_pipeline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
objects:
4040
type: list
4141
elements: dict
42+
default: []
4243
description:
4344
- A list of pipeline object definitions, each of which is a dict that takes the keys I(id), I(name) and I(fields).
4445
suboptions:
@@ -77,6 +78,7 @@
7778
- A list of parameter objects (dicts) in the pipeline definition.
7879
type: list
7980
elements: dict
81+
default: []
8082
suboptions:
8183
id:
8284
description:
@@ -99,6 +101,7 @@
99101
- A list of parameter values (dicts) in the pipeline definition.
100102
type: list
101103
elements: dict
104+
default: []
102105
suboptions:
103106
id:
104107
description: The ID of the parameter value
@@ -121,6 +124,7 @@
121124
description:
122125
- A dict of key:value pair(s) to add to the pipeline.
123126
type: dict
127+
default: {}
124128
aliases: ['resource_tags']
125129
'''
126130

plugins/modules/ec2_ami_copy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
description:
3535
- An optional human-readable string describing the contents and purpose of the new AMI.
3636
type: str
37+
default: ''
3738
encrypted:
3839
description:
3940
- Whether or not the destination snapshots of the copied AMI should be encrypted.

plugins/modules/ec2_customer_gateway_info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020
- A dict of filters to apply. Each dict item consists of a filter key and a filter value.
2121
See U(https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCustomerGateways.html) for possible filters.
2222
type: dict
23+
default: {}
2324
customer_gateway_ids:
2425
description:
2526
- Get details of a specific customer gateways using customer gateway ID/IDs. This value should be provided as a list.
2627
type: list
2728
elements: str
29+
default: []
2830
extends_documentation_fragment:
2931
- amazon.aws.aws
3032
- amazon.aws.ec2

0 commit comments

Comments
 (0)