@Path(value="/")
public interface RouteTableApi
Modifier and Type | Method and Description |
---|---|
String |
associateRouteTable(String region,
String routeTableId,
String subnetId)
Associates a subnet with a route table.
|
String |
associateRouteTable(String region,
String routeTableId,
String subnetId,
RouteTableOptions options) |
boolean |
createRoute(String region,
String routeTableId,
RouteOptions options)
Creates a route in a route table within a VPC.
|
RouteTable |
createRouteTable(String region,
String vpcId)
Creates a
RouteTable |
RouteTable |
createRouteTable(String region,
String vpcId,
RouteTableOptions options)
Creates a
RouteTable , supplying options. |
boolean |
deleteRoute(String region,
String routeTableId,
RouteOptions options)
Delete a route from a route table.
|
boolean |
deleteRouteTable(String region,
String routeTableId)
Deletes a
RouteTable |
boolean |
deleteRouteTable(String region,
String routeTableId,
RouteTableOptions options)
Delete a
RouteTable , supplying options. |
com.google.common.collect.FluentIterable<RouteTable> |
describeRouteTables(String region,
String... routeTableIds)
Describes route tables.
|
boolean |
disassociateRouteTable(String region,
String associationId)
Disassociates a subnet from a route table.
|
boolean |
disassociateRouteTable(String region,
String associationId,
RouteTableOptions options) |
boolean |
replaceRoute(String region,
String routeTableId,
RouteOptions options)
Replaces a route in a route table within a VPC.
|
@Named(value="CreateRouteTable") @POST RouteTable createRouteTable(@Nullable String region, @FormParam(value="VpcId") String vpcId)
RouteTable
region
- The region to create the table in.vpcId
- The ID of the VPC@Named(value="CreateRouteTable") @POST RouteTable createRouteTable(@Nullable String region, @FormParam(value="VpcId") String vpcId, RouteTableOptions options)
RouteTable
, supplying options.region
- The region to create the table invpcId
- The ID of the VPCoptions
- Options for the request@Named(value="DeleteRouteTable") @POST boolean deleteRouteTable(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId)
RouteTable
region
- The region to delete the table fromrouteTableId
- The ID of the table to delete@Named(value="DeleteRouteTable") @POST boolean deleteRouteTable(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, RouteTableOptions options)
RouteTable
, supplying options.region
- The region to delete the table fromrouteTableId
- The ID of the table to deleteoptions
- Options for the request@Named(value="AssociateRouteTable") @POST String associateRouteTable(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, @FormParam(value="SubnetId") String subnetId)
region
- Region of the VPC for the route tablerouteTableId
- ID of the route tablesubnetId
- ID of the subnet to associate@Named(value="AssociateRouteTable") @POST String associateRouteTable(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, @FormParam(value="SubnetId") String subnetId, RouteTableOptions options)
region
- Region of the VPC for the route tablerouteTableId
- ID of the route tablesubnetId
- ID of the subnet to associateoptions
- Options for the requestassociateRouteTable(java.lang.String, java.lang.String, java.lang.String)
@Named(value="DisassociateRouteTable") @POST boolean disassociateRouteTable(@Nullable String region, @FormParam(value="AssociationId") String associationId)
region
- Region of the route tableassociationId
- association id returned by associateRouteTable(String, String, String)
@Named(value="DisassociateRouteTable") @POST boolean disassociateRouteTable(@Nullable String region, @FormParam(value="AssociationId") String associationId, RouteTableOptions options)
region
- Region of the route tableassociationId
- association id returned by associateRouteTable(String, String, String)
options
- Options for the requestdisassociateRouteTable(String, String)
@Named(value="CreateRoute") @POST boolean createRoute(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, RouteOptions options)
region
- region of the VPCrouteTableId
- ID of the route table to put the route inoptions
- You must specify one of the following targets: Internet gateway or virtual
private gateway, NAT instance, NAT gateway, VPC peering connection,
network interface, or egress-only Internet gateway.@Named(value="ReplaceRoute") @POST boolean replaceRoute(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, RouteOptions options)
region
- region of the VPCrouteTableId
- ID of the route table containing the route to replaceoptions
- You must specify only one of the following targets: Internet gateway or virtual
private gateway, NAT instance, NAT gateway, VPC peering connection,
network interface, or egress-only Internet gateway.@Named(value="DeleteRoute") @POST boolean deleteRoute(@Nullable String region, @FormParam(value="RouteTableId") String routeTableId, RouteOptions options)
region
- region of the VPCrouteTableId
- ID of the route table owning the routeoptions
- This should include the destination CIDR block of the route to deleteExample:
api.deleteRoute(region, routeTable.id(), destinationCidrBlock("10.20.30.0/24"))
@Named(value="DescribeRouteTables") @POST com.google.common.collect.FluentIterable<RouteTable> describeRouteTables(@Nullable String region, String... routeTableIds)
region
- The region to search for route tables.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.