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

Class: Aws::Pinpoint::Types::EndpointBatchItem

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing EndpointBatchItem as input to an Aws::Client method, you can use a vanilla Hash:

{
  address: "__string",
  attributes: {
    "__string" => ["__string"],
  },
  channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, ADM, SMS, EMAIL, BAIDU
  demographic: {
    app_version: "__string",
    locale: "__string",
    make: "__string",
    model: "__string",
    model_version: "__string",
    platform: "__string",
    platform_version: "__string",
    timezone: "__string",
  },
  effective_date: "__string",
  endpoint_status: "__string",
  id: "__string",
  location: {
    city: "__string",
    country: "__string",
    latitude: 1.0,
    longitude: 1.0,
    postal_code: "__string",
    region: "__string",
  },
  metrics: {
    "__string" => 1.0,
  },
  opt_out: "__string",
  request_id: "__string",
  user: {
    user_attributes: {
      "__string" => ["__string"],
    },
    user_id: "__string",
  },
}

Endpoint update request

Instance Attribute Summary collapse

Instance Attribute Details

#addressString

The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or RegistrationId).

Returns:

  • (String)

    The address or token of the endpoint as provided by your push provider (e.g. DeviceToken or RegistrationId).

#attributesHash<String,Array<String>>

Returns:

  • (Hash<String,Array<String>>)

#channel_typeString

The channel type. Valid values: GCM | APNS | SMS | EMAIL

Possible values:

  • GCM
  • APNS
  • APNS_SANDBOX
  • ADM
  • SMS
  • EMAIL
  • BAIDU

Returns:

  • (String)

    The channel type.

#demographicTypes::EndpointDemographic

The endpoint demographic attributes.

Returns:

#effective_dateString

The last time the endpoint was updated. Provided in ISO 8601 format.

Returns:

  • (String)

    The last time the endpoint was updated.

#endpoint_statusString

The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE if a delivery fails. Will be set to ACTIVE if the address is updated.

Returns:

  • (String)

    The endpoint status.

#idString

The unique Id for the Endpoint in the batch.

Returns:

  • (String)

    The unique Id for the Endpoint in the batch.

#locationTypes::EndpointLocation

The endpoint location attributes.

Returns:

#metricsHash<String,Float>

Returns:

  • (Hash<String,Float>)

#opt_outString

Indicates whether a user has opted out of receiving messages with one of the following values: ALL - User has opted out of all messages. NONE - Users has not opted out and receives all messages.

Returns:

  • (String)

    Indicates whether a user has opted out of receiving messages with one of the following values: ALL - User has opted out of all messages.

#request_idString

The unique ID for the most recent request to update the endpoint.

Returns:

  • (String)

    The unique ID for the most recent request to update the endpoint.

#userTypes::EndpointUser

Custom user-specific attributes that your app reports to Amazon Pinpoint.

Returns:

  • (Types::EndpointUser)

    Custom user-specific attributes that your app reports to Amazon Pinpoint.