aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RevokeApiKey`](crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`branch_arn(impl Into<String>)`](crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder::branch_arn) / [`set_branch_arn(Option<String>)`](crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder::set_branch_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the branch that the API key belongs to.</p><br>
    ///   - [`api_key_id(impl Into<String>)`](crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder::api_key_id) / [`set_api_key_id(Option<String>)`](crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder::set_api_key_id):<br>required: **true**<br><p>The ID of the API key to revoke.</p><br>
    /// - On success, responds with [`RevokeApiKeyOutput`](crate::operation::revoke_api_key::RevokeApiKeyOutput) with field(s):
    ///   - [`api_key_id(String)`](crate::operation::revoke_api_key::RevokeApiKeyOutput::api_key_id): <p>The ID of the API key that was revoked.</p>
    ///   - [`status(ApiKeyStatus)`](crate::operation::revoke_api_key::RevokeApiKeyOutput::status): <p>The status of the API key after the request. The status is always INACTIVE.</p>
    /// - On failure, responds with [`SdkError<RevokeApiKeyError>`](crate::operation::revoke_api_key::RevokeApiKeyError)
    pub fn revoke_api_key(&self) -> crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder {
        crate::operation::revoke_api_key::builders::RevokeApiKeyFluentBuilder::new(self.handle.clone())
    }
}