Class: Aws::CloudTrail::Types::Resource

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudtrail/types.rb

Overview

Specifies the type and name of a resource referenced by an event.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_nameString

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be “auto-scaling-test-group” for an Auto Scaling Group or “i-1234567” for an EC2 Instance.

Returns:

  • (String)


4250
4251
4252
4253
4254
4255
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4250

class Resource < Struct.new(
  :resource_type,
  :resource_name)
  SENSITIVE = []
  include Aws::Structure
end

#resource_typeString

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and AccessKey for IAM. To learn more about how to look up and filter events by the resource types supported for a service, see [Filtering CloudTrail Events].

[1]: docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events

Returns:

  • (String)


4250
4251
4252
4253
4254
4255
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4250

class Resource < Struct.new(
  :resource_type,
  :resource_name)
  SENSITIVE = []
  include Aws::Structure
end