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

Class: Aws::SQS::Types::SendMessageBatchRequest

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

Overview

Note:

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

{
  queue_url: "String", # required
  entries: [ # required
    {
      id: "String", # required
      message_body: "String", # required
      delay_seconds: 1,
      message_attributes: {
        "String" => {
          string_value: "String",
          binary_value: "data",
          string_list_values: ["String"],
          binary_list_values: ["data"],
          data_type: "String", # required
        },
      },
      message_deduplication_id: "String",
      message_group_id: "String",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#entriesArray<Types::SendMessageBatchRequestEntry>

A list of SendMessageBatchRequestEntry items.



1287
1288
1289
1290
1291
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/types.rb', line 1287

class SendMessageBatchRequest < Struct.new(
  :queue_url,
  :entries)
  include Aws::Structure
end

#queue_urlString

The URL of the Amazon SQS queue to which batched messages are sent.

Queue URLs are case-sensitive.

Returns:

  • (String)


1287
1288
1289
1290
1291
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/types.rb', line 1287

class SendMessageBatchRequest < Struct.new(
  :queue_url,
  :entries)
  include Aws::Structure
end