associate_phone_numbers_with_voice_connector_group
async
¶
associate_phone_numbers_with_voice_connector_group(
voice_connector_group_id: NonEmptyString,
e164_phone_numbers: E164PhoneNumberList,
*,
config_overrides: Optional[AsyncChimeSDKVoiceClientConfig] = None,
force_associate: Optional[NullableBoolean] = None,
) -> AssociatePhoneNumbersWithVoiceConnectorGroupResponse
Associates phone numbers with the specified Amazon Chime SDK Voice Connector group.
Parameters:
-
voice_connector_group_id(NonEmptyString) –The Amazon Chime SDK Voice Connector group 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 Group 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/async_chime_sdk_voice.py
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 | |