Struct aws_sdk_config::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsOutput
source · #[non_exhaustive]pub struct GetDiscoveredResourceCountsOutput {
pub total_discovered_resources: i64,
pub resource_counts: Option<Vec<ResourceCount>>,
pub next_token: Option<String>,
/* private fields */
}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.total_discovered_resources: i64The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.
Example
-
Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.
-
You make a call to the
GetDiscoveredResourceCountsaction and specify the resource type,"AWS::EC2::Instances", in the request. -
Config returns 25 for
totalDiscoveredResources.
resource_counts: Option<Vec<ResourceCount>>The list of ResourceCount objects. Each object is listed in descending order by the number of resources.
next_token: Option<String>The string that you use in a subsequent request to get the next page of results in a paginated response.
Implementations§
source§impl GetDiscoveredResourceCountsOutput
impl GetDiscoveredResourceCountsOutput
sourcepub fn total_discovered_resources(&self) -> i64
pub fn total_discovered_resources(&self) -> i64
The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.
Example
-
Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.
-
You make a call to the
GetDiscoveredResourceCountsaction and specify the resource type,"AWS::EC2::Instances", in the request. -
Config returns 25 for
totalDiscoveredResources.
sourcepub fn resource_counts(&self) -> &[ResourceCount]
pub fn resource_counts(&self) -> &[ResourceCount]
The list of ResourceCount objects. Each object is listed in descending order by the number of resources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_counts.is_none().
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The string that you use in a subsequent request to get the next page of results in a paginated response.
source§impl GetDiscoveredResourceCountsOutput
impl GetDiscoveredResourceCountsOutput
sourcepub fn builder() -> GetDiscoveredResourceCountsOutputBuilder
pub fn builder() -> GetDiscoveredResourceCountsOutputBuilder
Creates a new builder-style object to manufacture GetDiscoveredResourceCountsOutput.
Trait Implementations§
source§impl Clone for GetDiscoveredResourceCountsOutput
impl Clone for GetDiscoveredResourceCountsOutput
source§fn clone(&self) -> GetDiscoveredResourceCountsOutput
fn clone(&self) -> GetDiscoveredResourceCountsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for GetDiscoveredResourceCountsOutput
impl PartialEq for GetDiscoveredResourceCountsOutput
source§fn eq(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
fn eq(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for GetDiscoveredResourceCountsOutput
impl RequestId for GetDiscoveredResourceCountsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetDiscoveredResourceCountsOutput
Auto Trait Implementations§
impl Freeze for GetDiscoveredResourceCountsOutput
impl RefUnwindSafe for GetDiscoveredResourceCountsOutput
impl Send for GetDiscoveredResourceCountsOutput
impl Sync for GetDiscoveredResourceCountsOutput
impl Unpin for GetDiscoveredResourceCountsOutput
impl UnwindSafe for GetDiscoveredResourceCountsOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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