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
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 |
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 |
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 |
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 |
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 |
Represents a Customer Gateway
Represents a DHCP Options set
Represents a Subnet
Represents a Virtual Private Cloud.
Represents a VPN Connectionn