Package org.jclouds.aws.ec2.features
Interface InternetGatewayApi
@Path("/")
public interface InternetGatewayApi
Provides access to InternetGateway Services.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionattachInternetGateway
(String region, String internetGatewayId, String vpcId) Attaches anInternetGateway
to aVPC
attachInternetGateway
(String region, String internetGatewayId, String vpcId, InternetGatewayOptions options) Attaches anInternetGateway
to aVPC
, supplying options.createInternetGateway
(String region) Creates anInternetGateway
createInternetGateway
(String region, InternetGatewayOptions options) Creates anInternetGateway
, supplying options.boolean
deleteInternetGateway
(String region, String internetGatewayId) Deletes anInternetGateway
.boolean
deleteInternetGateway
(String region, String internetGatewayId, InternetGatewayOptions options) Deletes anInternetGateway
, supplying options.com.google.common.collect.FluentIterable
<InternetGateway> describeInternetGatewaysInRegion
(String region, String... internetGatewayIds) DescribesInternetGateway
s.detachInternetGateway
(String region, String internetGatewayId, String vpcId) Detaches anInternetGateway
from aVPC
detachInternetGateway
(String region, String internetGatewayId, String vpcId, InternetGatewayOptions options) Detaches anInternetGateway
from aVPC
, supplying options.
-
Method Details
-
detachInternetGateway
@Named("DetachInternetGateway") @POST Boolean detachInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId, @FormParam("VpcId") String vpcId) Detaches anInternetGateway
from aVPC
- Parameters:
region
- Region where the VPC existsinternetGatewayId
- ID of the gateway to detachvpcId
- The ID of the VPC
-
detachInternetGateway
@Named("DetachInternetGateway") @POST Boolean detachInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId, @FormParam("VpcId") String vpcId, InternetGatewayOptions options) Detaches anInternetGateway
from aVPC
, supplying options.- Parameters:
region
- Region where the VPC existsinternetGatewayId
- ID of the gateway to detachvpcId
- The ID of the VPCoptions
- Options for the request
-
attachInternetGateway
@Named("AttachInternetGateway") @POST Boolean attachInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId, @FormParam("VpcId") String vpcId) Attaches anInternetGateway
to aVPC
- Parameters:
region
- Region where the VPC existsinternetGatewayId
- ID of the gateway to attachvpcId
- The ID of the VPC
-
attachInternetGateway
@Named("AttachInternetGateway") @POST Boolean attachInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId, @FormParam("VpcId") String vpcId, InternetGatewayOptions options) Attaches anInternetGateway
to aVPC
, supplying options.- Parameters:
region
- Region where the VPC existsinternetGatewayId
- ID of the gateway to attachvpcId
- The ID of the VPCoptions
- Options for the request
-
createInternetGateway
@Named("CreateInternetGateway") @POST InternetGateway createInternetGateway(@Nullable String region) Creates anInternetGateway
- Parameters:
region
- The region to create the gateway in.
-
createInternetGateway
@Named("CreateInternetGateway") @POST InternetGateway createInternetGateway(@Nullable String region, InternetGatewayOptions options) Creates anInternetGateway
, supplying options.- Parameters:
region
- The region to create the gateway inoptions
- Options for the request
-
deleteInternetGateway
@Named("DeleteInternetGateway") @POST boolean deleteInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId) Deletes anInternetGateway
.- Parameters:
region
- gateways are tied to the Region where its files are located within Amazon S3.internetGatewayId
- The gateway ID.
-
deleteInternetGateway
@Named("DeleteInternetGateway") @POST boolean deleteInternetGateway(@Nullable String region, @FormParam("InternetGatewayId") String internetGatewayId, InternetGatewayOptions options) Deletes anInternetGateway
, supplying options.- Parameters:
region
- gateways are tied to the Region where its files are located within Amazon S3.internetGatewayId
- The gateway ID.options
- Options for the request
-
describeInternetGatewaysInRegion
@Named("DescribeInternetGateways") @POST com.google.common.collect.FluentIterable<InternetGateway> describeInternetGatewaysInRegion(@Nullable String region, String... internetGatewayIds) DescribesInternetGateway
s.- Parameters:
region
- The region to search for gateways.internetGatewayIds
- Optional list of known gateway ids to restrict the search- Returns:
- InternetGateways or empty if there are none.
-