amazon_spapi/client_apis/application_2023_11_30.rs
1use anyhow::Result;
2
3use crate::{client::SpapiClient, models};
4
5impl SpapiClient {
6 /// Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 |
7 pub async fn rotate_application_client_secret(
8 &self,
9 ) -> Result<()> {
10 let configuration = self.create_configuration().await?;
11 let guard = self
12 .limiter()
13 .wait("application_2023_11_30/rotate_application_client_secret", 0.0167, 1)
14 .await?;
15 let res = crate::apis::application_2023_11_30::rotate_application_client_secret(
16 &configuration,
17 )
18 .await?;
19 guard.mark_response().await;
20 Ok(res)
21 }
22}