AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GetDiscoveredResourceCountsOutput

import "github.com/aws/aws-sdk-go/service/configservice"

type GetDiscoveredResourceCountsOutput struct { NextToken *string `locationName:"nextToken" type:"string"` ResourceCounts []*ResourceCount `locationName:"resourceCounts" type:"list"` TotalDiscoveredResources *int64 `locationName:"totalDiscoveredResources" type:"long"` }

NextToken

Type: *string

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

ResourceCounts

An object that contains the resource type and the number of resources.

TotalDiscoveredResources

Type: *int64

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

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.

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

AWS Config returns 25 for totalDiscoveredResources.

Method

GoString

func (s GetDiscoveredResourceCountsOutput) GoString() string

GoString returns the string representation

SetNextToken

func (s *GetDiscoveredResourceCountsOutput) SetNextToken(v string) *GetDiscoveredResourceCountsOutput

SetNextToken sets the NextToken field's value.

SetResourceCounts

func (s *GetDiscoveredResourceCountsOutput) SetResourceCounts(v []*ResourceCount) *GetDiscoveredResourceCountsOutput

SetResourceCounts sets the ResourceCounts field's value.

SetTotalDiscoveredResources

func (s *GetDiscoveredResourceCountsOutput) SetTotalDiscoveredResources(v int64) *GetDiscoveredResourceCountsOutput

SetTotalDiscoveredResources sets the TotalDiscoveredResources field's value.

String

func (s GetDiscoveredResourceCountsOutput) String() string

String returns the string representation

On this page: