aws_sdk_lightsail/client/
delete_bucket_access_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 [`DeleteBucketAccessKey`](crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bucket_name(impl Into<String>)`](crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder::bucket_name) / [`set_bucket_name(Option<String>)`](crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder::set_bucket_name):<br>required: **true**<br><p>The name of the bucket that the access key belongs to.</p><br>
7    ///   - [`access_key_id(impl Into<String>)`](crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder::access_key_id) / [`set_access_key_id(Option<String>)`](crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder::set_access_key_id):<br>required: **true**<br><p>The ID of the access key to delete.</p> <p>Use the <a href="https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketAccessKeys.html">GetBucketAccessKeys</a> action to get a list of access key IDs that you can specify.</p><br>
8    /// - On success, responds with [`DeleteBucketAccessKeyOutput`](crate::operation::delete_bucket_access_key::DeleteBucketAccessKeyOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_bucket_access_key::DeleteBucketAccessKeyOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10    /// - On failure, responds with [`SdkError<DeleteBucketAccessKeyError>`](crate::operation::delete_bucket_access_key::DeleteBucketAccessKeyError)
11    pub fn delete_bucket_access_key(&self) -> crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder {
12        crate::operation::delete_bucket_access_key::builders::DeleteBucketAccessKeyFluentBuilder::new(self.handle.clone())
13    }
14}