Fixes #37209 - Added complex return value, instance (#49989)

This commit is contained in:
Peter Kirby 2019-01-03 09:48:25 -06:00 committed by Alicia Cozine
parent ff4af614e1
commit 5a8aa7ca1f

View file

@ -259,77 +259,82 @@ EXAMPLES = '''
'''
RETURN = '''
engine:
instance:
description: the rds instance
returned: always
type: complex
contains:
engine:
description: the name of the database engine
returned: when RDS instance exists
type: str
type: string
sample: "oracle-se"
engine_version:
engine_version:
description: the version of the database engine
returned: when RDS instance exists
type: str
type: string
sample: "11.2.0.4.v6"
license_model:
license_model:
description: the license model information
returned: when RDS instance exists
type: str
type: string
sample: "bring-your-own-license"
character_set_name:
character_set_name:
description: the name of the character set that this instance is associated with
returned: when RDS instance exists
type: str
type: string
sample: "AL32UTF8"
allocated_storage:
allocated_storage:
description: the allocated storage size in gigabytes (GB)
returned: when RDS instance exists
type: str
type: string
sample: "100"
publicly_accessible:
publicly_accessible:
description: the accessibility options for the DB instance
returned: when RDS instance exists
type: bool
type: boolean
sample: "true"
latest_restorable_time:
latest_restorable_time:
description: the latest time to which a database can be restored with point-in-time restore
returned: when RDS instance exists
type: str
type: string
sample: "1489707802.0"
secondary_availability_zone:
secondary_availability_zone:
description: the name of the secondary AZ for a DB instance with multi-AZ support
returned: when RDS instance exists and is multy-AZ
type: str
type: string
sample: "eu-west-1b"
backup_window:
backup_window:
description: the daily time range during which automated backups are created if automated backups are enabled
returned: when RDS instance exists and automated backups are enabled
type: str
type: string
sample: "03:00-03:30"
auto_minor_version_upgrade:
auto_minor_version_upgrade:
description: indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window
returned: when RDS instance exists
type: bool
type: boolean
sample: "true"
read_replica_source_dbinstance_identifier:
read_replica_source_dbinstance_identifier:
description: the identifier of the source DB instance if this RDS instance is a read replica
returned: when read replica RDS instance exists
type: str
type: string
sample: "null"
db_name:
db_name:
description: the name of the database to create when the DB instance is created
returned: when RDS instance exists
type: str
type: string
sample: "ASERTG"
endpoint:
endpoint:
description: the endpoint uri of the database instance
returned: when RDS instance exists
type: str
type: string
sample: "my-ansible-database.asdfaosdgih.us-east-1.rds.amazonaws.com"
port:
port:
description: the listening port of the database instance
returned: when RDS instance exists
type: int
sample: 3306
parameter_groups:
parameter_groups:
description: the list of DB parameter groups applied to this RDS instance
returned: when RDS instance exists and parameter groups are defined
type: complex
@ -337,14 +342,14 @@ parameter_groups:
parameter_apply_status:
description: the status of parameter updates
returned: when RDS instance exists
type: str
type: string
sample: "in-sync"
parameter_group_name:
description: the name of the DP parameter group
returned: when RDS instance exists
type: str
type: string
sample: "testawsrpprodb01spfile-1ujg7nrs7sgyz"
option_groups:
option_groups:
description: the list of option group memberships for this RDS instance
returned: when RDS instance exists
type: complex
@ -352,14 +357,14 @@ option_groups:
option_group_name:
description: the option group name for this RDS instance
returned: when RDS instance exists
type: str
type: string
sample: "default:oracle-se-11-2"
status:
description: the status of the RDS instance's option group membership
returned: when RDS instance exists
type: str
type: string
sample: "in-sync"
pending_modified_values:
pending_modified_values:
description: a dictionary of changes to the RDS instance that are pending
returned: when RDS instance exists
type: complex
@ -367,49 +372,49 @@ pending_modified_values:
db_instance_class:
description: the new DB instance class for this RDS instance that will be applied or is in progress
returned: when RDS instance exists
type: str
type: string
sample: "null"
db_instance_identifier:
description: the new DB instance identifier this RDS instance that will be applied or is in progress
returned: when RDS instance exists
type: str
type: string
sample: "null"
allocated_storage:
description: the new allocated storage size for this RDS instance that will be applied or is in progress
returned: when RDS instance exists
type: str
type: string
sample: "null"
backup_retention_period:
description: the pending number of days for which automated backups are retained
returned: when RDS instance exists
type: str
type: string
sample: "null"
engine_version:
description: indicates the database engine version
returned: when RDS instance exists
type: str
type: string
sample: "null"
iops:
description: the new provisioned IOPS value for this RDS instance that will be applied or is being applied
returned: when RDS instance exists
type: str
type: string
sample: "null"
master_user_password:
description: the pending or in-progress change of the master credentials for this RDS instance
returned: when RDS instance exists
type: str
type: string
sample: "null"
multi_az:
description: indicates that the single-AZ RDS instance is to change to a multi-AZ deployment
returned: when RDS instance exists
type: str
type: string
sample: "null"
port:
description: specifies the pending port for this RDS instance
returned: when RDS instance exists
type: str
type: string
sample: "null"
db_subnet_groups:
db_subnet_groups:
description: information on the subnet group associated with this RDS instance
returned: when RDS instance exists
type: complex
@ -417,17 +422,17 @@ db_subnet_groups:
description:
description: the subnet group associated with the DB instance
returned: when RDS instance exists
type: str
type: string
sample: "Subnets for the UAT RDS SQL DB Instance"
name:
description: the name of the DB subnet group
returned: when RDS instance exists
type: str
type: string
sample: "samplesubnetgrouprds-j6paiqkxqp4z"
status:
description: the status of the DB subnet group
returned: when RDS instance exists
type: str
type: string
sample: "complete"
subnets:
description: the description of the DB subnet group
@ -442,22 +447,22 @@ db_subnet_groups:
name:
description: avaialbility zone
returned: when RDS instance exists
type: str
type: string
sample: "eu-west-1b"
provisioned_iops_capable:
description: whether provisioned iops are available in AZ subnet
returned: when RDS instance exists
type: bool
type: boolean
sample: "false"
identifier:
description: the identifier of the subnet
returned: when RDS instance exists
type: str
type: string
sample: "subnet-3fdba63e"
status:
description: the status of the subnet
returned: when RDS instance exists
type: str
type: string
sample: "active"
'''