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

Class: Aws::CloudWatchEvents::Types::PutEventsRequestEntry

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

Overview

Note:

When making an API call, you may pass PutEventsRequestEntry data as a hash:

{
  time: Time.now,
  source: "String",
  resources: ["EventResource"],
  detail_type: "String",
  detail: "String",
}

Represents an event to be submitted.

Instance Attribute Summary collapse

Instance Attribute Details

#detailString

In the JSON sense, an object containing fields, which may also contain nested subobjects. No constraints are imposed on its contents.

Returns:

  • (String)


468
469
470
471
472
473
474
475
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 468

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail)
  include Aws::Structure
end

#detail_typeString

Free-form string used to decide what fields to expect in the event detail.

Returns:

  • (String)


468
469
470
471
472
473
474
475
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 468

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail)
  include Aws::Structure
end

#resourcesArray<String>

AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

Returns:

  • (Array<String>)


468
469
470
471
472
473
474
475
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 468

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail)
  include Aws::Structure
end

#sourceString

The source of the event.

Returns:

  • (String)


468
469
470
471
472
473
474
475
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 468

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail)
  include Aws::Structure
end

#timeTime

The timestamp of the event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call is used.

Returns:

  • (Time)


468
469
470
471
472
473
474
475
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 468

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail)
  include Aws::Structure
end