From 36f5471f8cbd72a92d5f5e7cca6a6105efee0f68 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Mon, 11 Sep 2017 13:10:36 -0700 Subject: [PATCH] Document return values for ec2_vpc_net.py (#21294) * Document return values for ec2_vpc_net.py * Prepend "vpc" to return values --- .../modules/cloud/amazon/ec2_vpc_net.py | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_net.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_net.py index b4edee4101..f44a6e0073 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_net.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_net.py @@ -100,6 +100,49 @@ EXAMPLES = ''' ''' +RETURN = ''' +vpc.id: + description: VPC resource id + returned: success + type: string + sample: vpc-b883b2c4 +vpc.cidr_block: + description: The CIDR of the VPC + returned: success + type: string + sample: "10.0.0.0/16" +vpc.state: + description: state of the VPC + returned: success + type: string + sample: available +vpc.tags: + description: tags attached to the VPC, includes name + returned: success + type: dict + sample: {"Name": "My VPC", "env": "staging"} +vpc.classic_link_enabled: + description: indicates whether ClassicLink is enabled + returned: success + type: boolean + sample: false +vpc.dhcp_options_id: + description: the id of the DHCP options assocaited with this VPC + returned: success + type: string + sample: dopt-67236184 +vpc.instance_tenancy: + description: indicates whther VPC uses default or dedicated tenancy + returned: success + type: string + sample: default +vpc.is_default: + description: indicates whether this is the default VPC + returned: success + type: boolean + sample: false +''' + try: import boto import boto.ec2