Module Values.GetDiscoveredResourceCountsResponseSource

Returns the resource types, the number of each resource type, and the total number of resources that Config is recording in this region for your Amazon Web Services account. 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. You make a call to the GetDiscoveredResourceCounts action and specify that you want all resource types. Config returns the following: The resource types (EC2 instances, IAM users, and S3 buckets). The number of each resource type (25, 20, and 15). The total number of all resources (60). The response is paginated. By default, Config lists 100 ResourceCount objects on each page. You can customize this number with the limit parameter. The response includes a nextToken string. To get the next page of results, run the request again and specify the string for the nextToken parameter. If you make a call to the GetDiscoveredResourceCounts action, you might not immediately receive resource counts in the following situations: You are a new Config customer. You just enabled resource recording. It might take a few minutes for Config to record and count your resources. Wait a few minutes and then retry the GetDiscoveredResourceCounts action.

Sourcetype nonrec t = {
  1. totalDiscoveredResources : Long.t option;
    (*

    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 GetDiscoveredResourceCounts action and specify the resource type, "AWS::EC2::Instances", in the request. Config returns 25 for totalDiscoveredResources.

    *)
  2. resourceCounts : ResourceCounts.t option;
    (*

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

    *)
  3. nextToken : NextToken.t option;
    (*

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

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidLimitException of InvalidLimitException.t
  2. | `InvalidNextTokenException of InvalidNextTokenException.t
  3. | `ValidationException of ValidationException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval make : ?totalDiscoveredResources:??? -> ?resourceCounts:??? -> ?nextToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidLimitException of unit | `InvalidNextTokenException of unit | `Unknown_operation_error of string * string option | `ValidationException of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidLimitException of unit | `InvalidNextTokenException of unit | `Unknown_operation_error of string * string option | `ValidationException of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Long of Long.t ]) list ] list | `Long of Long.t | `String of NextToken.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t