#[non_exhaustive]pub struct GetDiscoveredResourceCountsOutput {
pub total_discovered_resources: i64,
pub resource_counts: Option<Vec<ResourceCount>>,
pub next_token: Option<String>,
}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
sourceimpl 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) -> Option<&[ResourceCount]>
pub fn resource_counts(&self) -> Option<&[ResourceCount]>
The list of ResourceCount objects. Each object is listed in descending order by the number of resources.
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.
sourceimpl GetDiscoveredResourceCountsOutput
impl GetDiscoveredResourceCountsOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetDiscoveredResourceCountsOutput
Trait Implementations
sourceimpl Clone for GetDiscoveredResourceCountsOutput
impl Clone for GetDiscoveredResourceCountsOutput
sourcefn clone(&self) -> GetDiscoveredResourceCountsOutput
fn clone(&self) -> GetDiscoveredResourceCountsOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl PartialEq<GetDiscoveredResourceCountsOutput> for GetDiscoveredResourceCountsOutput
impl PartialEq<GetDiscoveredResourceCountsOutput> for GetDiscoveredResourceCountsOutput
sourcefn eq(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
fn eq(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
fn ne(&self, other: &GetDiscoveredResourceCountsOutput) -> bool
This method tests for !=.
impl StructuralPartialEq for GetDiscoveredResourceCountsOutput
Auto Trait Implementations
impl RefUnwindSafe for GetDiscoveredResourceCountsOutput
impl Send for GetDiscoveredResourceCountsOutput
impl Sync for GetDiscoveredResourceCountsOutput
impl Unpin for GetDiscoveredResourceCountsOutput
impl UnwindSafe for GetDiscoveredResourceCountsOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more