put_whats_app_business_public_key
async
¶
put_whats_app_business_public_key(
origination_phone_number_id: WhatsAppPhoneNumberId,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
business_public_key: Optional[BusinessPublicKeyPem] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
) -> PutWhatsAppBusinessPublicKeyOutput
Sets the business public key used to encrypt the data exchanged with the endpoint of a data exchange Flow.
Parameters:
-
origination_phone_number_id(WhatsAppPhoneNumberId) –The unique identifier of the phone number to associate with the business public key.
-
business_public_key(Optional[BusinessPublicKeyPem], default:None) –The PEM-encoded 2048-bit RSA public key to set. Mutually exclusive with
kmsKeyArn. -
kms_key_arn(Optional[KmsKeyArn], default:None) –The ARN of a customer managed asymmetric RSA key in Amazon Web Services KMS. Mutually exclusive with
businessPublicKey.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_socialmessaging/_services/async_social_messaging.py
2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 | |