Represents a connection to the EC2 service.
Init method to create a new connection to EC2.
Acceptss a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state.
Parameters: | vpc_peering_connection_id (str) – The ID of the VPC peering connection. |
---|---|
Return type: | Accepted VpcPeeringConnection |
Returns: | A boto.vpc.vpc_peering_connection.VpcPeeringConnection object |
Associate a set of Dhcp Options with a VPC.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Associates a network acl with a specific subnet.
Parameters: | |
---|---|
Return type: | str |
Returns: | The ID of the association created |
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.
Parameters: | dry_run (bool) – Set to True if the operation should not actually run. |
---|---|
Return type: | Newly created internet gateway. |
Returns: | boto.vpc.internetgateway.InternetGateway |
Creates a new network ACL.
Parameters: | vpc_id (str) – The VPC ID to associate this network ACL with. |
---|---|
Return type: | The newly created network ACL |
Returns: | A boto.vpc.networkacl.NetworkAcl object |
Creates a new network ACL entry in a network ACL within a VPC.
Parameters: |
---|
(http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)
Parameters: |
---|
172.16.0.0/24).
Parameters: | egress (bool) – Indicates whether this rule applies to egress traffic from the subnet (true) |
---|
or ingress traffic to the subnet (false).
Parameters: |
---|
all ICMP codes for the given ICMP type.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
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: | |
---|---|
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: | |
---|---|
Return type: | The newly created VPC |
Returns: | A boto.vpc.vpc.VPC object |
Create a new VPN Peering connection.
Parameters: | |
---|---|
Return type: | The newly created VpcPeeringConnection |
Returns: | A boto.vpc.vpc_peering_connection.VpcPeeringConnection object |
Create a new VPN Connection.
Parameters: |
---|
requires static routes. If you are creating a VPN connection for a device that does not support BGP, you must specify true.
Parameters: | dry_run (bool) – Set to True if the operation should not actually run. |
---|---|
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: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a DHCP Options
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Deletes an internet gateway from the VPC.
Parameters: | |
---|---|
Return type: | Bool |
Returns: | True if successful |
Delete a network ACL
Parameters: | network_acl_id (str) – The ID of the network_acl to delete. |
---|---|
Return type: | bool |
Returns: | True if successful |
Deletes a network ACL entry from a network ACL within a VPC.
Parameters: |
---|
or ingress rule (false).
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: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a subnet.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a Virtual Private Cloud.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the peer VPC can delete the VPC peering connection if it’s in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state.
Parameters: | vpc_peering_connection_id (str) – The ID of the VPC peering connection. |
---|---|
Return type: | bool |
Returns: | True if successful |
Delete a VPN Connection.
Parameters: | |
---|---|
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: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Detach an internet gateway from a specific VPC.
Parameters: | |
---|---|
Return type: | Bool |
Returns: | True if successful |
Detaches a VPN gateway from a 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 |
Figures out what the default ACL is for the VPC, and associates current network ACL with the default.
Parameters: | |
---|---|
Return type: | str |
Returns: | The ID of the association created |
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: | |
---|---|
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: | |
---|---|
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 network acls. You can filter results to return information only about those network acls that match your search parameters. Otherwise, all network acls associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.networkacl.NetworkAcl |
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 VPC peering connections. You can filter results to return information only about those VPC peering connections that match your search parameters. Otherwise, all VPC peering connections associated with your account are returned.
Parameters: |
|
---|---|
Return type: | list |
Returns: | A list of boto.vpc.vpc.VPC |
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: |
|
---|
Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state.
Parameters: | vpc_peering_connection_id (str) – The ID of the VPC peering connection. |
---|---|
Return type: | bool |
Returns: | True if successful |
Creates a new network ACL entry in a network ACL within a VPC.
Parameters: |
---|
(http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)
Parameters: |
---|
172.16.0.0/24).
Parameters: | egress (bool) – Indicates whether this rule applies to egress traffic from the subnet (true) |
---|
or ingress traffic to the subnet (false).
Parameters: |
---|
all ICMP codes for the given ICMP type.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Replaces an existing route within a route table in a VPC.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if successful |
Replaces a route association with a new route table. This can be used to replace the ‘main’ route table by using the main route table association instead of the more common subnet type association.
NOTE: It may be better to use replace_route_table_association_with_assoc instead of this function; this function does not return the new association ID. This function is retained for backwards compatibility.
Parameters: | |
---|---|
Return type: | bool |
Returns: | True if successful |
Replaces a route association with a new route table. This can be used to replace the ‘main’ route table by using the main route table association instead of the more common subnet type association. Returns the new association ID.
Parameters: | |
---|---|
Return type: | str |
Returns: | New association ID |
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 an Internet Gateway
Represents a Route Table
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: |
|
---|