Class: Aws::CloudTrail::Types::Resource
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudTrail::Types::Resource
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudtrail/types.rb
Overview
Specifies the type and name of a resource referenced by an event.
Instance Attribute Summary collapse
-
#resource_name ⇒ String
The name of the resource referenced by the event returned.
-
#resource_type ⇒ String
The type of a resource referenced by the event returned.
Instance Attribute Details
#resource_name ⇒ String
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.
1218 1219 1220 1221 1222 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1218 class Resource < Struct.new( :resource_type, :resource_name) include Aws::Structure end |
#resource_type ⇒ String
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].
[1]: docs.aws.amazon.com/awscloudtrail/latest/userguide/lookup_supported_resourcetypes.html
1218 1219 1220 1221 1222 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1218 class Resource < Struct.new( :resource_type, :resource_name) include Aws::Structure end |