2021/10/26 - Amazon Chime SDK Identity - 8 new api methods
Changes The Amazon Chime SDK now supports push notifications through Amazon Pinpoint
Removes the specified tags from the specified Amazon Chime SDK identity resource.
See also: AWS API Documentation
Request Syntax
client.untag_resource( ResourceARN='string', TagKeys=[ 'string', ] )
string
[REQUIRED]
The resource ARN.
list
[REQUIRED]
The tag keys.
(string) --
None
Updates the details of an AppInstanceUserEndpoint . You can update the name and AllowMessage values.
See also: AWS API Documentation
Request Syntax
client.update_app_instance_user_endpoint( AppInstanceUserArn='string', EndpointId='string', Name='string', AllowMessages='ALL'|'NONE' )
string
[REQUIRED]
The ARN of the AppInstanceUser .
string
[REQUIRED]
The unique identifier of the AppInstanceUserEndpoint .
string
The name of the AppInstanceUserEndpoint .
string
Boolean 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.
dict
Response Syntax
{ 'AppInstanceUserArn': 'string', 'EndpointId': 'string' }
Response Structure
(dict) --
AppInstanceUserArn (string) --
The ARN of the AppInstanceUser .
EndpointId (string) --
The unique identifier of the AppInstanceUserEndpoint .
Returns the full details of an AppInstanceUserEndpoint .
See also: AWS API Documentation
Request Syntax
client.describe_app_instance_user_endpoint( AppInstanceUserArn='string', EndpointId='string' )
string
[REQUIRED]
The ARN of the AppInstanceUser .
string
[REQUIRED]
The unique identifier of the AppInstanceUserEndpoint .
dict
Response Syntax
{ 'AppInstanceUserEndpoint': { 'AppInstanceUserArn': 'string', 'EndpointId': 'string', 'Name': 'string', 'Type': 'APNS'|'APNS_SANDBOX'|'GCM', 'ResourceArn': 'string', 'EndpointAttributes': { 'DeviceToken': 'string', 'VoipDeviceToken': 'string' }, 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1), 'AllowMessages': 'ALL'|'NONE', 'EndpointState': { 'Status': 'ACTIVE'|'INACTIVE', 'StatusReason': 'INVALID_DEVICE_TOKEN'|'INVALID_PINPOINT_ARN' } } }
Response Structure
(dict) --
AppInstanceUserEndpoint (dict) --
The full details of an AppInstanceUserEndpoint : the AppInstanceUserArn , ID, name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use epoch milliseconds.
AppInstanceUserArn (string) --
The ARN of the AppInstanceUser .
EndpointId (string) --
The unique identifier of the AppInstanceUserEndpoint .
Name (string) --
The name of the AppInstanceUserEndpoint .
Type (string) --
The type of the AppInstanceUserEndpoint .
ResourceArn (string) --
The ARN of the resource to which the endpoint belongs.
EndpointAttributes (dict) --
The attributes of an Endpoint .
DeviceToken (string) --
The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.
VoipDeviceToken (string) --
The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
CreatedTimestamp (datetime) --
The time at which an AppInstanceUserEndpoint was created.
LastUpdatedTimestamp (datetime) --
The time at which an AppInstanceUserEndpoint was last updated.
AllowMessages (string) --
Boolean 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.
EndpointState (dict) --
A 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.
Status (string) --
Enum that indicates the Status of an AppInstanceUserEndpoint .
StatusReason (string) --
The reason for the EndpointStatus .
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.
See also: AWS API Documentation
Request Syntax
client.register_app_instance_user_endpoint( AppInstanceUserArn='string', Name='string', Type='APNS'|'APNS_SANDBOX'|'GCM', ResourceArn='string', EndpointAttributes={ 'DeviceToken': 'string', 'VoipDeviceToken': 'string' }, ClientRequestToken='string', AllowMessages='ALL'|'NONE' )
string
[REQUIRED]
The ARN of the AppInstanceUser .
string
The name of the AppInstanceUserEndpoint .
string
[REQUIRED]
The type of the AppInstanceUserEndpoint . Supported types:
APNS : The mobile notification service for an Apple device.
APNS_SANDBOX : The sandbox environment of the mobile notification service for an Apple device.
GCM : The mobile notification service for an Android device.
Populate the ResourceArn value of each type as PinpointAppArn .
string
[REQUIRED]
The ARN of the resource to which the endpoint belongs.
dict
[REQUIRED]
The attributes of an Endpoint .
DeviceToken (string) -- [REQUIRED]
The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.
VoipDeviceToken (string) --
The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
string
[REQUIRED]
The idempotency token for each client request.
This field is autopopulated if not provided.
string
Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages.
dict
Response Syntax
{ 'AppInstanceUserArn': 'string', 'EndpointId': 'string' }
Response Structure
(dict) --
AppInstanceUserArn (string) --
The ARN of the AppInstanceUser .
EndpointId (string) --
The unique identifier of the AppInstanceUserEndpoint .
Lists the tags applied to an Amazon Chime SDK identity resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( ResourceARN='string' )
string
[REQUIRED]
The ARN of the resource.
dict
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) --
Tags (list) --
The tag key-value pairs.
(dict) --
A tag object containing a key-value pair.
Key (string) --
The key in a tag.
Value (string) --
The value in a tag.
Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser .
See also: AWS API Documentation
Request Syntax
client.list_app_instance_user_endpoints( AppInstanceUserArn='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The ARN of the AppInstanceUser .
integer
The maximum number of endpoints that you want to return.
string
The token passed by previous API calls until all requested endpoints are returned.
dict
Response Syntax
{ 'AppInstanceUserEndpoints': [ { 'AppInstanceUserArn': 'string', 'EndpointId': 'string', 'Name': 'string', 'Type': 'APNS'|'APNS_SANDBOX'|'GCM', 'AllowMessages': 'ALL'|'NONE', 'EndpointState': { 'Status': 'ACTIVE'|'INACTIVE', 'StatusReason': 'INVALID_DEVICE_TOKEN'|'INVALID_PINPOINT_ARN' } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
AppInstanceUserEndpoints (list) --
The information for each requested AppInstanceUserEndpoint .
(dict) --
Summary of the details of an AppInstanceUserEndpoint .
AppInstanceUserArn (string) --
The ARN of the AppInstanceUser .
EndpointId (string) --
The unique identifier of the AppInstanceUserEndpoint .
Name (string) --
The name of the AppInstanceUserEndpoint .
Type (string) --
The type of the AppInstanceUserEndpoint .
AllowMessages (string) --
BBoolean 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.
EndpointState (dict) --
A read-only field that represent the state of an AppInstanceUserEndpoint .
Status (string) --
Enum that indicates the Status of an AppInstanceUserEndpoint .
StatusReason (string) --
The reason for the EndpointStatus .
NextToken (string) --
The token passed by previous API calls until all requested endpoints are returned.
Deregisters an AppInstanceUserEndpoint .
See also: AWS API Documentation
Request Syntax
client.deregister_app_instance_user_endpoint( AppInstanceUserArn='string', EndpointId='string' )
string
[REQUIRED]
The ARN of the AppInstanceUser .
string
[REQUIRED]
The unique identifier of the AppInstanceUserEndpoint .
None
Applies the specified tags to the specified Amazon Chime SDK identity resource.
See also: AWS API Documentation
Request Syntax
client.tag_resource( ResourceARN='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
string
[REQUIRED]
The resource ARN.
list
[REQUIRED]
The tag key-value pairs.
(dict) --
A tag object containing a key-value pair.
Key (string) -- [REQUIRED]
The key in a tag.
Value (string) -- [REQUIRED]
The value in a tag.
None