put_whats_app_business_public_key
¶
put_whats_app_business_public_key(
origination_phone_number_id: WhatsAppPhoneNumberId,
*,
config_overrides: Optional[SocialMessagingClientConfig] = 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/social_messaging.py
2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 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 | |