Interface AWSSubnetApi

All Superinterfaces:
SubnetApi

public interface AWSSubnetApi extends SubnetApi
Provides access to Amazon EC2 via the Query API

See Also:
  • Method Details

    • createSubnetInRegion

      @Named("CreateSubnet") @POST @Path("/") Subnet createSubnetInRegion(@Nullable String region, @FormParam("VpcId") String vpcId, @FormParam("CidrBlock") String cidrBlock, CreateSubnetOptions... options)
      Creates a subnet in an existing VPC.
      Parameters:
      region -
      vpcId - The ID of the VPC.
      cidrBlock - The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
      options -
      Returns:
      AWS Subnet
    • deleteSubnetInRegion

      @Named("DeleteSubnet") @POST @Path("/") void deleteSubnetInRegion(@Nullable String region, @FormParam("SubnetId") String subnetId)
      Deletes a subnet.
      Parameters:
      region -
      subnetId -
      See Also:
    • describeSubnetsInRegion

      @Named("DescribeSubnets") @POST @Path("/") com.google.common.collect.FluentIterable<Subnet> describeSubnetsInRegion(@Nullable String region, String... subnetIds)
      Describes one or more of your subnets.
      Parameters:
      region - Subnet are Region-specific.
      subnetIds - Subnet to describe.
      See Also:
    • describeSubnetsInRegionWithFilter

      @Named("DescribeSubnets") @POST @Path("/") com.google.common.collect.FluentIterable<Subnet> describeSubnetsInRegionWithFilter(@Nullable String region, com.google.common.collect.Multimap<String,String> filter)
      Returns information about subnets available to you. If you specify filters, information about subnets matching those filters is returned. Otherwise, all subnets you have access to are returned.
      Parameters:
      region - Subnets are Region-specific.
      filter - Multimap of filter key/values.
      See Also:
    • modifySubnetAttribute

      @Named("ModifySubnetAttribute") @POST @Path("/") boolean modifySubnetAttribute(@Nullable String region, @FormParam("SubnetId") String subnetId, ModifySubnetAttributeOptions options)
      Modifies a subnet attribute. You can only modify one attribute at a time.
      Parameters:
      region - The region for the subnet
      subnetId - The ID of the subnet
      options - The options containing the attribute to modify. You can only modify one attribute at a time.
      Returns:
      true if the modification was successful