You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ConfigService::Types::GetDiscoveredResourceCountsResponse

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-configservice/lib/aws-sdk-configservice/types.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#next_tokenString

The string that you use in a subsequent request to get the next page of results in a paginated response.

Returns:

  • (String)


1729
1730
1731
1732
1733
1734
# File 'gems/aws-sdk-configservice/lib/aws-sdk-configservice/types.rb', line 1729

class GetDiscoveredResourceCountsResponse < Struct.new(
  :total_discovered_resources,
  :resource_counts,
  :next_token)
  include Aws::Structure
end

#resource_countsArray<Types::ResourceCount>

The list of ResourceCount objects. Each object is listed in descending order by the number of resources.

Returns:



1729
1730
1731
1732
1733
1734
# File 'gems/aws-sdk-configservice/lib/aws-sdk-configservice/types.rb', line 1729

class GetDiscoveredResourceCountsResponse < Struct.new(
  :total_discovered_resources,
  :resource_counts,
  :next_token)
  include Aws::Structure
end

#total_discovered_resourcesInteger

The total number of resources that AWS Config is recording in the region for your account. If you specify resource types in the request, AWS Config returns only the total number of resources for those resource types.

Example

  1. AWS 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.

  2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, "AWS::EC2::Instances" in the request.

  3. AWS Config returns 25 for totalDiscoveredResources.

Returns:

  • (Integer)


1729
1730
1731
1732
1733
1734
# File 'gems/aws-sdk-configservice/lib/aws-sdk-configservice/types.rb', line 1729

class GetDiscoveredResourceCountsResponse < Struct.new(
  :total_discovered_resources,
  :resource_counts,
  :next_token)
  include Aws::Structure
end