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

Class: Aws::CognitoSync::Types::RegisterDeviceRequest

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

Overview

Note:

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

{
  identity_pool_id: "IdentityPoolId", # required
  identity_id: "IdentityId", # required
  platform: "APNS", # required, accepts APNS, APNS_SANDBOX, GCM, ADM
  token: "PushToken", # required
}

A request to RegisterDevice.

Instance Attribute Summary collapse

Instance Attribute Details

#identity_idString

The unique ID for this identity.

Returns:

  • (String)

    The unique ID for this identity.

#identity_pool_idString

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.

Returns:

  • (String)

    A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.

#platformString

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

Possible values:

  • APNS
  • APNS_SANDBOX
  • GCM
  • ADM

Returns:

  • (String)

    The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

#tokenString

The push token.

Returns:

  • (String)

    The push token.