Skip to content

Commit

Permalink
rds_instance - add deletion_protection param (ansible-collections#1105)
Browse files Browse the repository at this point in the history
rds_instance - add deletion_protection param

Depends-On: ansible-collections#1116
SUMMARY
Fixes ansible-collections#922
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
rds_instance

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@77cb097
  • Loading branch information
jatorcasso authored and goneri committed Sep 21, 2022
1 parent 66acf49 commit 1b2a842
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/modules/rds_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@
aliases:
- subnet_group
type: str
deletion_protection:
description:
- A value that indicates whether the DB instance has deletion protection enabled.
The database can't be deleted when deletion protection is enabled.
By default, deletion protection is disabled.
type: bool
version_added: 3.3.0
domain:
description:
- The Active Directory Domain to restore the instance in.
Expand Down Expand Up @@ -666,6 +673,12 @@
returned: always
type: str
sample: db-UHV3QRNWX4KB6GALCIGRML6QFA
deletion_protection:
description: C(True) if the DB instance has deletion protection enabled, C(False) if not.
returned: always
type: bool
sample: False
version_added: 3.3.0
domain_memberships:
description: The Active Directory Domain membership records associated with the DB instance.
returned: always
Expand Down Expand Up @@ -1256,6 +1269,7 @@ def main():
db_security_groups=dict(type='list', elements='str'),
db_snapshot_identifier=dict(),
db_subnet_group_name=dict(aliases=['subnet_group']),
deletion_protection=dict(type='bool'),
domain=dict(),
domain_iam_role_name=dict(),
enable_cloudwatch_logs_exports=dict(type='list', aliases=['cloudwatch_log_exports'], elements='str'),
Expand Down
6 changes: 6 additions & 0 deletions plugins/modules/rds_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@
returned: always
type: str
sample: db-AAAAAAAAAAAAAAAAAAAAAAAAAA
deletion_protection:
description: C(True) if the DB instance has deletion protection enabled, C(False) if not.
returned: always
type: bool
sample: False
version_added: 3.3.0
domain_memberships:
description: List of domain memberships
returned: always
Expand Down

0 comments on commit 1b2a842

Please sign in to comment.