Struct aws_sdk_ec2::operation::describe_vpcs::DescribeVpcsInput
source · #[non_exhaustive]pub struct DescribeVpcsInput {
pub filters: Option<Vec<Filter>>,
pub vpc_ids: Option<Vec<String>>,
pub dry_run: Option<bool>,
pub next_token: Option<String>,
pub max_results: Option<i32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.filters: Option<Vec<Filter>>The filters.
-
cidr- The primary IPv4 CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example,/28). -
cidr-block-association.cidr-block- An IPv4 CIDR block associated with the VPC. -
cidr-block-association.association-id- The association ID for an IPv4 CIDR block associated with the VPC. -
cidr-block-association.state- The state of an IPv4 CIDR block associated with the VPC. -
dhcp-options-id- The ID of a set of DHCP options. -
ipv6-cidr-block-association.ipv6-cidr-block- An IPv6 CIDR block associated with the VPC. -
ipv6-cidr-block-association.ipv6-pool- The ID of the IPv6 address pool from which the IPv6 CIDR block is allocated. -
ipv6-cidr-block-association.association-id- The association ID for an IPv6 CIDR block associated with the VPC. -
ipv6-cidr-block-association.state- The state of an IPv6 CIDR block associated with the VPC. -
is-default- Indicates whether the VPC is the default VPC. -
owner-id- The ID of the Amazon Web Services account that owns the VPC. -
state- The state of the VPC (pending|available). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. -
vpc-id- The ID of the VPC.
vpc_ids: Option<Vec<String>>The IDs of the VPCs.
Default: Describes all your VPCs.
dry_run: Option<bool>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
next_token: Option<String>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
max_results: Option<i32>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
Implementations§
source§impl DescribeVpcsInput
impl DescribeVpcsInput
sourcepub fn filters(&self) -> &[Filter]
pub fn filters(&self) -> &[Filter]
The filters.
-
cidr- The primary IPv4 CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example,/28). -
cidr-block-association.cidr-block- An IPv4 CIDR block associated with the VPC. -
cidr-block-association.association-id- The association ID for an IPv4 CIDR block associated with the VPC. -
cidr-block-association.state- The state of an IPv4 CIDR block associated with the VPC. -
dhcp-options-id- The ID of a set of DHCP options. -
ipv6-cidr-block-association.ipv6-cidr-block- An IPv6 CIDR block associated with the VPC. -
ipv6-cidr-block-association.ipv6-pool- The ID of the IPv6 address pool from which the IPv6 CIDR block is allocated. -
ipv6-cidr-block-association.association-id- The association ID for an IPv6 CIDR block associated with the VPC. -
ipv6-cidr-block-association.state- The state of an IPv6 CIDR block associated with the VPC. -
is-default- Indicates whether the VPC is the default VPC. -
owner-id- The ID of the Amazon Web Services account that owns the VPC. -
state- The state of the VPC (pending|available). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. -
vpc-id- The ID of the VPC.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .filters.is_none().
sourcepub fn vpc_ids(&self) -> &[String]
pub fn vpc_ids(&self) -> &[String]
The IDs of the VPCs.
Default: Describes all your VPCs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .vpc_ids.is_none().
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
source§impl DescribeVpcsInput
impl DescribeVpcsInput
sourcepub fn builder() -> DescribeVpcsInputBuilder
pub fn builder() -> DescribeVpcsInputBuilder
Creates a new builder-style object to manufacture DescribeVpcsInput.
Trait Implementations§
source§impl Clone for DescribeVpcsInput
impl Clone for DescribeVpcsInput
source§fn clone(&self) -> DescribeVpcsInput
fn clone(&self) -> DescribeVpcsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DescribeVpcsInput
impl Debug for DescribeVpcsInput
source§impl PartialEq for DescribeVpcsInput
impl PartialEq for DescribeVpcsInput
source§fn eq(&self, other: &DescribeVpcsInput) -> bool
fn eq(&self, other: &DescribeVpcsInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DescribeVpcsInput
Auto Trait Implementations§
impl Freeze for DescribeVpcsInput
impl RefUnwindSafe for DescribeVpcsInput
impl Send for DescribeVpcsInput
impl Sync for DescribeVpcsInput
impl Unpin for DescribeVpcsInput
impl UnwindSafe for DescribeVpcsInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more