create_push_notification_registration
async
¶
create_push_notification_registration(
instance_id: InstanceId,
pinpoint_app_arn: ARN,
device_token: DeviceToken,
device_type: DeviceType,
contact_configuration: ContactConfiguration,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreatePushNotificationRegistrationResponse
Creates registration for a device token and a chat contact to receive real-time push notifications. For more information about push notifications, see Set up push notifications in Connect Customer for mobile chat in the Connect Customer Administrator Guide.
Parameters:
-
instance_id(InstanceId) –The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
pinpoint_app_arn(ARN) –The Amazon Resource Name (ARN) of the Pinpoint application.
-
device_token(DeviceToken) –The push notification token issued by the Apple or Google gateways.
-
device_type(DeviceType) –The device type to use when sending the message.
-
contact_configuration(ContactConfiguration) –The contact configuration for push notification registration.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 | |