Skip to main content

apns_sandbox_channels

Creates, updates, deletes, gets or lists an apns_sandbox_channels resource.

Overview

Nameapns_sandbox_channels
TypeResource
Idaws.pinpoint.apns_sandbox_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that the APNs sandbox channel applies to.
creation_datestringThe date and time when the APNs sandbox channel was enabled.
default_authentication_methodstringThe default authentication method that Amazon Pinpoint uses to authenticate with the APNs sandbox environment for this channel, key or certificate.
enabledbooleanSpecifies whether the APNs sandbox channel is enabled for the application.
has_credentialboolean(Not used) This property is retained only for backward compatibility.
has_token_keybooleanSpecifies whether the APNs sandbox channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
idstring(Deprecated) An identifier for the APNs sandbox channel. This property is retained only for backward compatibility.
is_archivedbooleanSpecifies whether the APNs sandbox channel is archived.
last_modified_bystringThe user who last modified the APNs sandbox channel.
last_modified_datestringThe date and time when the APNs sandbox channel was last modified.
platformstringThe type of messaging or notification platform for the channel. For the APNs sandbox channel, this value is APNS_SANDBOX.
versionintegerThe current version of the APNs sandbox channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_apns_sandbox_channelselectapplication-id, regionRetrieves information about the status and settings of the APNs sandbox channel for an application.
update_apns_sandbox_channelupdateapplication-id, region, APNSSandboxChannelRequestEnables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.
delete_apns_sandbox_channeldeleteapplication-id, regionDisables the APNs sandbox channel for an application and deletes any existing settings for the channel.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application-idstringThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about the status and settings of the APNs sandbox channel for an application.

SELECT
application_id,
creation_date,
default_authentication_method,
enabled,
has_credential,
has_token_key,
id,
is_archived,
last_modified_by,
last_modified_date,
platform,
version
FROM aws.pinpoint.apns_sandbox_channels
WHERE `application-id` = '{{ application-id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Enables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.

UPDATE aws.pinpoint.apns_sandbox_channels
SET
APNSSandboxChannelRequest = '{{ APNSSandboxChannelRequest }}'
WHERE
`application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
AND APNSSandboxChannelRequest = '{{ APNSSandboxChannelRequest }}' --required
RETURNING
apns_sandbox_channel_response;

DELETE examples

Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.

DELETE FROM aws.pinpoint.apns_sandbox_channels
WHERE `application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
;