Skip to main content

app_instance_user_endpoints

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

Overview

Nameapp_instance_user_endpoints
TypeResource
Idaws.chime_sdk_identity.app_instance_user_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allow_messagesstringBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages. (ALL, NONE)
app_instance_user_arnstringThe ARN of the AppInstanceUser. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
created_timestampstring (date-time)The time at which an AppInstanceUserEndpoint was created.
endpoint_attributesobjectThe attributes of an Endpoint.
endpoint_idstringThe unique identifier of the AppInstanceUserEndpoint. (pattern: <code>.*</code>)
endpoint_stateobjectA read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When ACTIVE, the EndpointStatusReason remains empty. INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due to invalid device token INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn field.
last_updated_timestampstring (date-time)The time at which an AppInstanceUserEndpoint was last updated.
namestringThe name of the AppInstanceUserEndpoint. (pattern: <code>.*</code>)
resource_arnstringThe ARN of the resource to which the endpoint belongs. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
typestringThe type of the AppInstanceUserEndpoint. (APNS, APNS_SANDBOX, GCM)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_instance_user_endpointselectapp_instance_user_arn, endpoint_id, regionReturns the full details of an AppInstanceUserEndpoint.
list_app_instance_user_endpointsselectapp_instance_user_arn, regionmax-results, next-tokenLists all the AppInstanceUserEndpoints created under a single AppInstanceUser.
register_app_instance_user_endpointinsertapp_instance_user_arn, region, Type, ResourceArn, EndpointAttributes, ClientRequestTokenRegisters an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
update_app_instance_user_endpointupdateapp_instance_user_arn, endpoint_id, regionUpdates the details of an AppInstanceUserEndpoint. You can update the name and AllowMessage values.
deregister_app_instance_user_endpointdeleteapp_instance_user_arn, endpoint_id, regionDeregisters an AppInstanceUserEndpoint.

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
app_instance_user_arnstringThe ARN of the AppInstanceUser.
endpoint_idstringThe unique identifier of the AppInstanceUserEndpoint.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of endpoints that you want to return.
next-tokenstringThe token passed by previous API calls until all requested endpoints are returned.

SELECT examples

Returns the full details of an AppInstanceUserEndpoint.

SELECT
allow_messages,
app_instance_user_arn,
created_timestamp,
endpoint_attributes,
endpoint_id,
endpoint_state,
last_updated_timestamp,
name,
resource_arn,
type
FROM aws.chime_sdk_identity.app_instance_user_endpoints
WHERE app_instance_user_arn = '{{ app_instance_user_arn }}' -- required
AND endpoint_id = '{{ endpoint_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.

INSERT INTO aws.chime_sdk_identity.app_instance_user_endpoints (
Name,
Type,
ResourceArn,
EndpointAttributes,
ClientRequestToken,
AllowMessages,
app_instance_user_arn,
region
)
SELECT
'{{ Name }}',
'{{ Type }}' /* required */,
'{{ ResourceArn }}' /* required */,
'{{ EndpointAttributes }}' /* required */,
'{{ ClientRequestToken }}' /* required */,
'{{ AllowMessages }}',
'{{ app_instance_user_arn }}',
'{{ region }}'
RETURNING
app_instance_user_arn,
endpoint_id
;

UPDATE examples

Updates the details of an AppInstanceUserEndpoint. You can update the name and AllowMessage values.

UPDATE aws.chime_sdk_identity.app_instance_user_endpoints
SET
Name = '{{ Name }}',
AllowMessages = '{{ AllowMessages }}'
WHERE
app_instance_user_arn = '{{ app_instance_user_arn }}' --required
AND endpoint_id = '{{ endpoint_id }}' --required
AND region = '{{ region }}' --required
RETURNING
app_instance_user_arn,
endpoint_id;

DELETE examples

Deregisters an AppInstanceUserEndpoint.

DELETE FROM aws.chime_sdk_identity.app_instance_user_endpoints
WHERE app_instance_user_arn = '{{ app_instance_user_arn }}' --required
AND endpoint_id = '{{ endpoint_id }}' --required
AND region = '{{ region }}' --required
;