/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the config-2014-11-12.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ConfigService.Model { /// /// Container for the parameters to the GetDiscoveredResourceCounts operation. /// 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 /// ///

  1. /// /// 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. /// ///
  2. /// /// You make a call to the GetDiscoveredResourceCounts action and specify /// that you want all resource types. /// ///
  3. /// /// 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: /// /// /// /// It might take a few minutes for Config to record and count your resources. Wait a /// few minutes and then retry the GetDiscoveredResourceCounts action. /// /// ///
public partial class GetDiscoveredResourceCountsRequest : AmazonConfigServiceRequest { private int? _limit; private string _nextToken; private List _resourceTypes = new List(); /// /// Gets and sets the property Limit. /// /// The maximum number of ResourceCount objects returned on each page. The default /// is 100. You cannot specify a number greater than 100. If you specify 0, Config uses /// the default. /// /// [AWSProperty(Min=0, Max=100)] public int Limit { get { return this._limit.GetValueOrDefault(); } set { this._limit = value; } } // Check to see if Limit property is set internal bool IsSetLimit() { return this._limit.HasValue; } /// /// Gets and sets the property NextToken. /// /// The nextToken string returned on a previous page that you use to get /// the next page of results in a paginated response. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property ResourceTypes. /// /// The comma-separated list that specifies the resource types that you want Config to /// return (for example, "AWS::EC2::Instance", "AWS::IAM::User"). /// /// /// /// If a value for resourceTypes is not specified, Config returns all resource /// types that Config is recording in the region for your account. /// /// /// /// If the configuration recorder is turned off, Config returns an empty list of ResourceCount /// objects. If the configuration recorder is not recording a specific resource type (for /// example, S3 buckets), that resource type is not returned in the list of ResourceCount /// objects. /// /// /// [AWSProperty(Min=0, Max=20)] public List ResourceTypes { get { return this._resourceTypes; } set { this._resourceTypes = value; } } // Check to see if ResourceTypes property is set internal bool IsSetResourceTypes() { return this._resourceTypes != null && this._resourceTypes.Count > 0; } } }