You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

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

Overview

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

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)


1131
1132
1133
1134
1135
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 1131

class Resource < Struct.new(
  :resource_type,
  :resource_name)
  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 RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.

Returns:

  • (String)


1131
1132
1133
1134
1135
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 1131

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