associate_phone_numbers_with_voice_connector
¶
associate_phone_numbers_with_voice_connector(
voice_connector_id: VoiceConnectorId,
e164_phone_numbers: E164PhoneNumberList,
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
force_associate: Optional[NullableBoolean] = None,
) -> AssociatePhoneNumbersWithVoiceConnectorResponse
Associates phone numbers with the specified Amazon Chime SDK Voice Connector.
Parameters:
-
voice_connector_id(VoiceConnectorId) –The Voice Connector ID.
-
e164_phone_numbers(E164PhoneNumberList) –List of phone numbers, in E.164 format.
-
force_associate(Optional[NullableBoolean], default:None) –If true, associates the provided phone numbers with the provided Amazon Chime SDK Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
Raises:
-
AccessDeniedException–You don't have the permissions needed to run this action.
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
NotFoundException–The requested resource couldn't be found.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | |