Gives you information about your subnets. You can
filter the results to return information
only about subnets that match criteria you specify. For example, you
could ask to get information about a particular subnet
(or all) only if the subnet's state is available. You
can specify multiple filters (e.g.,
the subnet is in a particular
VPC, and the subnet's state is available).
The result includes information for a particular subnet
only if the subnet matches all your filters. If there's
no match, no special message is returned; the response
is simply empty
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class DescribeSubnetsRequest
Public Class DescribeSubnetsRequest
public ref class DescribeSubnetsRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| DescribeSubnetsRequest()()()() | Initializes a new instance of the DescribeSubnetsRequest class | |
| Equals(Object) | (Inherited from Object.) | |
| Filter |
Gets and sets the Filter property.
The filter to apply on the results of DescribeSubnets. Filters can be:
a. state - The state of the subnet. (pending, available).
b. vpcId - The ID of the VPC the subnet is in.
c. cidrBlock - The CIDR block of the subnet. The
CIDR block you specify must exactly match the subnet's CIDR block
for information to be returned for the subnet.
Constraints: Must contain the slash followed by one or two
digits (e.g., /28)
d. - The Availability Zone the subnet is in.
| |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsSetFilter()()()() |
Checks if Filter property is set
| |
| IsSetSubnetId()()()() |
Checks if SubnetId property is set
| |
| SubnetId |
Gets and sets the SubnetId property.
A subnet ID.
| |
| ToString()()()() | (Inherited from Object.) | |
| WithFilter(array<Filter>[]()[][]) |
Sets the Filter property
| |
| WithSubnetId(array<String>[]()[][]) |
Sets the SubnetId property
|