-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tagging - add docs fragment and update guidelines
- Loading branch information
Showing
2 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright: (c) 2022, Ansible Project | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
from __future__ import (absolute_import, division, print_function) | ||
__metaclass__ = type | ||
|
||
|
||
class ModuleDocFragment(object): | ||
|
||
# Minimum requirements for the collection | ||
DOCUMENTATION = r''' | ||
options: | ||
tags: | ||
description: | ||
- A dictionary representing the tags to be applied to the resource. | ||
- If the I(tags) parameter is not set then tags will not be modified. | ||
type: dict | ||
required: false | ||
aliases: ['resource_tags'] | ||
purge_tags: | ||
description: | ||
- If I(purge_tags=true) existing tags will be purged from the resource to | ||
match exactly what is defined by I(tags) parameter. | ||
- If the I(tags) parameter is not set then tags will not be modified. | ||
- Tag keys beginning with C("aws:") are reserved by Amazon and can not be | ||
modified. As such they will be ignored for the purposes of the | ||
I(purge_tags) parameter. See the Amazon documentation for more information | ||
U(https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions). | ||
type: bool | ||
default: true | ||
required: false | ||
''' | ||
|
||
# Minimum requirements for the collection | ||
DEPRECATED_PURGE = r''' | ||
options: | ||
tags: | ||
description: | ||
- A dictionary representing the tags to be applied to the resource. | ||
- If the I(tags) parameter is not set then tags will not be modified. | ||
type: dict | ||
required: false | ||
aliases: ['resource_tags'] | ||
purge_tags: | ||
description: | ||
- If I(purge_tags=true) existing tags will be purged from the resource to | ||
match exactly what is defined by I(tags) parameter. | ||
- If the I(tags) parameter is not set then tags will not be modified. | ||
- Tag keys beginning with C("aws:") are reserved by Amazon and can not be | ||
modified. As such they will be ignored for the purposes of the | ||
I(purge_tags) parameter. See the Amazon documentation for more information | ||
U(https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions). | ||
- The current default value of C(False) has been deprecated. The default | ||
value will change to C(True) in release 5.0.0. | ||
type: bool | ||
required: false | ||
''' |