Represents a connection to the EC2 service.
Init method to create a new connection to EC2.
Associate a set of Dhcp Options with a VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Associates a route table with a specific subnet.
Parameters: |
|
---|---|
Return type: | str |
Returns: | The ID of the association created |
Attach an internet gateway to a specific VPC.
Parameters: |
|
---|---|
Return type: | Bool |
Returns: | True if successful |
Attaches a VPN gateway to a VPC.
Parameters: |
|
---|---|
Return type: | An attachment |
Returns: |
Create a new Customer Gateway
Parameters: |
|
---|---|
Return type: | The newly created CustomerGateway |
Returns: |
Create a new DhcpOption
This corresponds to http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateDhcpOptions.html
Parameters: |
|
---|---|
Return type: | The newly created DhcpOption |
Returns: | A boto.vpc.customergateway.DhcpOption object |
Creates an internet gateway for VPC.
Return type: | Newly created internet gateway. |
---|---|
Returns: | boto.vpc.internetgateway.InternetGateway |
Creates a new route in the route table within a VPC. The route’s target can be either a gateway attached to the VPC or a NAT instance in the VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Creates a new route table.
Parameters: | vpc_id (str) – The VPC ID to associate this route table with. |
---|---|
Return type: | The newly created route table |
Returns: | A boto.vpc.routetable.RouteTable object |
Create a new Subnet
Parameters: |
|
---|---|
Return type: | The newly created Subnet |
Returns: | A boto.vpc.customergateway.Subnet object |
Create a new Virtual Private Cloud.
Parameters: | cidr_block (str) – A valid CIDR block |
---|---|
Return type: | The newly created VPC |
Returns: | A boto.vpc.vpc.VPC object |
Create a new VPN Connection.
Parameters: |
|
---|---|
Return type: | The newly created VpnConnection |
Returns: | A boto.vpc.vpnconnection.VpnConnection object |
Creates a new static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Create a new Vpn Gateway
Parameters: |
|
---|---|
Return type: | The newly created VpnGateway |
Returns: | A boto.vpc.vpngateway.VpnGateway object |
Delete a Customer Gateway.
Parameters: | customer_gateway_id (str) – The ID of the customer_gateway to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a DHCP Options
Parameters: | dhcp_options_id (str) – The ID of the DHCP Options to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Deletes an internet gateway from the VPC.
Parameters: | internet_gateway_id (str) – The ID of the internet gateway to delete. |
---|---|
Return type: | Bool |
Returns: | True if successful |
Deletes a route from a route table within a VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a route table.
Parameters: | route_table_id (str) – The ID of the route table to delete. |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a subnet.
Parameters: | subnet_id (str) – The ID of the subnet to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a Virtual Private Cloud.
Parameters: | vpc_id (str) – The ID of the vpc to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a VPN Connection.
Parameters: | vpn_connection_id (str) – The ID of the vpn_connection to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Deletes a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a Vpn Gateway.
Parameters: | vpn_gateway_id (str) – The ID of the vpn_gateway to be deleted. |
---|---|
Return type: | bool |
Returns: | True if successful |
Detach an internet gateway from a specific VPC.
Parameters: |
|
---|---|
Return type: | Bool |
Returns: | True if successful |
Disables a virtual private gateway (VGW) from propagating routes to the routing tables of an Amazon VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Removes an association from a route table. This will cause all subnets that would’ve used this association to now use the main routing association instead.
Parameters: | association_id (str) – The ID of the association to disassociate. |
---|---|
Return type: | bool |
Returns: | True if successful |
Enables a virtual private gateway (VGW) to propagate routes to the routing tables of an Amazon VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Retrieve information about your CustomerGateways. You can filter results to return information only about those CustomerGateways that match your search parameters. Otherwise, all CustomerGateways associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.customergateway.CustomerGateway |
Retrieve information about your DhcpOptions.
Parameters: | dhcp_options_ids (list) – A list of strings with the desired DhcpOption ID’s |
---|---|
Return type: | list |
Returns: | A list of boto.vpc.dhcpoptions.DhcpOptions |
Get a list of internet gateways. You can filter results to return information about only those gateways that you’re interested in.
Parameters: |
|
---|
Retrieve information about your routing tables. You can filter results to return information only about those route tables that match your search parameters. Otherwise, all route tables associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.routetable.RouteTable |
Retrieve information about your Subnets. You can filter results to return information only about those Subnets that match your search parameters. Otherwise, all Subnets associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.subnet.Subnet |
Retrieve information about your VPCs. You can filter results to return information only about those VPCs that match your search parameters. Otherwise, all VPCs associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.vpc.VPC |
Retrieve information about your VPN_CONNECTIONs. You can filter results to return information only about those VPN_CONNECTIONs that match your search parameters. Otherwise, all VPN_CONNECTIONs associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpn_connection.vpnconnection.VpnConnection |
Retrieve information about your VpnGateways. You can filter results to return information only about those VpnGateways that match your search parameters. Otherwise, all VpnGateways associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.customergateway.VpnGateway |
Modifies the specified attribute of the specified VPC. You can only modify one attribute at a time.
Parameters: |
|
---|
Replaces an existing route within a route table in a VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Given a valid region name, return a boto.vpc.VPCConnection. Any additional parameters after the region_name are passed on to the connect method of the region object.
Type : | str |
---|---|
Parameters: | region_name – The name of the region to connect to. |
Return type: | boto.vpc.VPCConnection or None |
Returns: | A connection to the given region, or None if an invalid region name is given |
Get all available regions for the EC2 service. You may pass any of the arguments accepted by the VPCConnection object’s constructor as keyword arguments and they will be passed along to the VPCConnection object.
Return type: | list |
---|---|
Returns: | A list of boto.ec2.regioninfo.RegionInfo |
Represents a Customer Gateway
Represents a DHCP Options set
Represents a Subnet
Represents a Virtual Private Cloud.
Represents a VPC.
Variables: |
|
---|
Represents a VPN Connection
Variables: |
|
---|
Represents VPN connection options
Variables: | static_routes_only – Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don’t support BGP. |
---|
Represents a static route for a VPN connection.
Variables: |
|
---|
Represents telemetry for a VPN tunnel
Variables: |
|
---|