diff --git a/changelogs/fragments/1199-tagging.yml b/changelogs/fragments/1199-tagging.yml new file mode 100644 index 00000000000..cf45a37286b --- /dev/null +++ b/changelogs/fragments/1199-tagging.yml @@ -0,0 +1,2 @@ +minor_changes: +- dynamodb_table - ``resource_tags`` has been added as an alias for the ``tags`` parameter (https://github.com/ansible-collections/community.aws/pull/1182). diff --git a/plugins/modules/dynamodb_table.py b/plugins/modules/dynamodb_table.py index c1d9b65686e..943cdea02b1 100644 --- a/plugins/modules/dynamodb_table.py +++ b/plugins/modules/dynamodb_table.py @@ -15,7 +15,8 @@ - Create or delete AWS Dynamo DB tables. - Can update the provisioned throughput on existing tables. - Returns the status of the specified table. -author: Alan Loi (@loia) +author: + - Alan Loi (@loia) options: state: description: @@ -128,16 +129,6 @@ choices: ['STANDARD', 'STANDARD_INFREQUENT_ACCESS'] type: str version_added: 3.1.0 - tags: - description: - - A hash/dictionary of tags to add to the new instance or for starting/stopping instance by tag. - - 'For example: C({"key":"value"}) or C({"key":"value","key2":"value2"})' - type: dict - purge_tags: - description: - - Remove tags not listed in I(tags). - default: True - type: bool wait_timeout: description: - How long (in seconds) to wait for creation / update / deletion to complete. @@ -151,9 +142,9 @@ default: True type: bool extends_documentation_fragment: -- amazon.aws.aws -- amazon.aws.ec2 - + - amazon.aws.aws + - amazon.aws.ec2 + - amazon.aws.tags ''' EXAMPLES = r''' @@ -1042,7 +1033,7 @@ def main(): write_capacity=dict(type='int'), indexes=dict(default=[], type='list', elements='dict', options=index_options), table_class=dict(type='str', choices=['STANDARD', 'STANDARD_INFREQUENT_ACCESS']), - tags=dict(type='dict'), + tags=dict(type='dict', aliases=['resource_tags']), purge_tags=dict(type='bool', default=True), wait=dict(type='bool', default=True), wait_timeout=dict(default=300, type='int', aliases=['wait_for_active_timeout']),