Class: Aws::GuardDuty::Types::ResourceStatistics

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

Overview

Information about each resource type associated with the groupedByResource statistics.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

The ID of the Amazon Web Services account.

Returns:

  • (String)


7811
7812
7813
7814
7815
7816
7817
7818
7819
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 7811

class ResourceStatistics < Struct.new(
  :account_id,
  :last_generated_at,
  :resource_id,
  :resource_type,
  :total_findings)
  SENSITIVE = []
  include Aws::Structure
end

#last_generated_atTime

The timestamp at which the statistics for this resource was last generated.

Returns:

  • (Time)


7811
7812
7813
7814
7815
7816
7817
7818
7819
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 7811

class ResourceStatistics < Struct.new(
  :account_id,
  :last_generated_at,
  :resource_id,
  :resource_type,
  :total_findings)
  SENSITIVE = []
  include Aws::Structure
end

#resource_idString

ID associated with each resource. The following list provides the mapping of the resource type and resource ID.

Mapping of resource and resource ID

  • AccessKey - resource.accessKeyDetails.accessKeyId

  • Container - resource.containerDetails.id

  • ECSCluster - resource.ecsClusterDetails.name

  • EKSCluster - resource.eksClusterDetails.name

  • Instance - resource.instanceDetails.instanceId

  • KubernetesCluster - resource.kubernetesDetails.kubernetesWorkloadDetails.name

  • Lambda - resource.lambdaDetails.functionName

  • RDSDBInstance - resource.rdsDbInstanceDetails.dbInstanceIdentifier

  • S3Bucket - resource.s3BucketDetails.name

  • S3Object - resource.s3BucketDetails.name

Returns:

  • (String)


7811
7812
7813
7814
7815
7816
7817
7818
7819
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 7811

class ResourceStatistics < Struct.new(
  :account_id,
  :last_generated_at,
  :resource_id,
  :resource_type,
  :total_findings)
  SENSITIVE = []
  include Aws::Structure
end

#resource_typeString

The type of resource.

Returns:

  • (String)


7811
7812
7813
7814
7815
7816
7817
7818
7819
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 7811

class ResourceStatistics < Struct.new(
  :account_id,
  :last_generated_at,
  :resource_id,
  :resource_type,
  :total_findings)
  SENSITIVE = []
  include Aws::Structure
end

#total_findingsInteger

The total number of findings associated with this resource.

Returns:

  • (Integer)


7811
7812
7813
7814
7815
7816
7817
7818
7819
# File 'gems/aws-sdk-guardduty/lib/aws-sdk-guardduty/types.rb', line 7811

class ResourceStatistics < Struct.new(
  :account_id,
  :last_generated_at,
  :resource_id,
  :resource_type,
  :total_findings)
  SENSITIVE = []
  include Aws::Structure
end