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",
  event_bus_name: "NonPartnerEventBusName",
}

Represents an event to be submitted.

Instance Attribute Summary collapse

Instance Attribute Details

#detailString

A valid JSON string. There is no other schema imposed. The JSON string can contain fields and nested subobjects.

Returns:

  • (String)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

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

#detail_typeString

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

Returns:

  • (String)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

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

#event_bus_nameString

The event bus that will receive the event. Only the rules that are associated with this event bus can match the event.

Returns:

  • (String)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

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

#resourcesArray<String>

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

Returns:

  • (Array<String>)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

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

#sourceString

The source of the event. This field is required.

Returns:

  • (String)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

class PutEventsRequestEntry < Struct.new(
  :time,
  :source,
  :resources,
  :detail_type,
  :detail,
  :event_bus_name)
  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)


1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 1490

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