update ec2_vpc_net return values in docs (#33902)

This commit is contained in:
Prasad Katti 2017-12-18 19:59:29 +05:30 committed by Sloane Hertel
parent 4e85cdc712
commit 423b5e475e

View file

@ -81,9 +81,8 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# Note: These examples do not set authentication details, see the AWS Guide for details. # Note: These examples do not set authentication details, see the AWS Guide for details.
# Create a VPC with dedicate tenancy and a couple of tags - name: create a VPC with dedicated tenancy and a couple of tags
ec2_vpc_net:
- ec2_vpc_net:
name: Module_dev2 name: Module_dev2
cidr_block: 10.10.0.0/16 cidr_block: 10.10.0.0/16
region: us-east-1 region: us-east-1
@ -91,55 +90,24 @@ EXAMPLES = '''
module: ec2_vpc_net module: ec2_vpc_net
this: works this: works
tenancy: dedicated tenancy: dedicated
''' '''
RETURN = ''' RETURN = '''
vpc.id: vpc:
description: VPC resource id description: info about the VPC that was created or deleted
returned: success returned: always
type: string type: complex
sample: vpc-b883b2c4 contains:
vpc.cidr_block: cidr_block:
description: The CIDR of the VPC description: The CIDR of the VPC
returned: success returned: always
type: string type: string
sample: "10.0.0.0/16" sample: 10.0.0.0/16
vpc.state: cidr_block_association_set:
description: state of the VPC description: IPv4 CIDR blocks associated with the VPC
returned: success returned: success
type: string type: list
sample: available sample:
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
vpc.cidr_block_association_set:
description: IPv4 CIDR blocks associated with the VPC
returned: success
type: list
sample:
"cidr_block_association_set": [ "cidr_block_association_set": [
{ {
"association_id": "vpc-cidr-assoc-97aeeefd", "association_id": "vpc-cidr-assoc-97aeeefd",
@ -149,6 +117,46 @@ vpc.cidr_block_association_set:
} }
} }
] ]
classic_link_enabled:
description: indicates whether ClassicLink is enabled
returned: always
type: NoneType
sample: null
dhcp_options_id:
description: the id of the DHCP options assocaited with this VPC
returned: always
type: string
sample: dopt-0fb8bd6b
id:
description: VPC resource id
returned: always
type: string
sample: vpc-c2e00da5
instance_tenancy:
description: indicates whether VPC uses default or dedicated tenancy
returned: always
type: string
sample: default
is_default:
description: indicates whether this is the default VPC
returned: always
type: bool
sample: false
state:
description: state of the VPC
returned: always
type: string
sample: available
tags:
description: tags attached to the VPC, includes name
returned: always
type: complex
contains:
Name:
description: name tag for the VPC
returned: always
type: string
sample: pk_vpc4
''' '''
try: try: