aws_sdk_location/client/
delete_key.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteKey`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key_name(impl Into<String>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::key_name) / [`set_key_name(Option<String>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::set_key_name):<br>required: **true**<br><p>The name of the API key to delete.</p><br>
7    ///   - [`force_delete(bool)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::force_delete) / [`set_force_delete(Option<bool>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::set_force_delete):<br>required: **false**<br><p>ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter <code>true</code> to delete the key or to <code>false</code> to not preemptively delete the API key.</p> <p>Valid values: <code>true</code>, or <code>false</code>.</p> <p>Required: No</p><note>  <p>This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.</p> </note><br>
8    /// - On success, responds with [`DeleteKeyOutput`](crate::operation::delete_key::DeleteKeyOutput)
9    /// - On failure, responds with [`SdkError<DeleteKeyError>`](crate::operation::delete_key::DeleteKeyError)
10    pub fn delete_key(&self) -> crate::operation::delete_key::builders::DeleteKeyFluentBuilder {
11        crate::operation::delete_key::builders::DeleteKeyFluentBuilder::new(self.handle.clone())
12    }
13}