Package org.jclouds.aws.ec2.features
Interface AWSSubnetApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subnet
createSubnetInRegion(String region, String vpcId, String cidrBlock, CreateSubnetOptions... options)
Creates a subnet in an existing VPC.void
deleteSubnetInRegion(String region, String subnetId)
Deletes a subnet.com.google.common.collect.FluentIterable<Subnet>
describeSubnetsInRegion(String region, String... subnetIds)
Describes one or more of your subnets.com.google.common.collect.FluentIterable<Subnet>
describeSubnetsInRegionWithFilter(String region, com.google.common.collect.Multimap<String,String> filter)
Returns information about subnets available to you.boolean
modifySubnetAttribute(String region, String subnetId, ModifySubnetAttributeOptions options)
Modifies a subnet attribute.
-
-
-
Method Detail
-
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:
- doc
-
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:
- doc
-
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:
- doc
-
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 subnetsubnetId
- The ID of the subnetoptions
- The options containing the attribute to modify. You can only modify one attribute at a time.- Returns:
- true if the modification was successful
-
-