aws_sdk_s3control/client/
delete_access_grant.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 [`DeleteAccessGrant`](crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_id(impl Into<String>)`](crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder::set_account_id):<br>required: **true**<br><p>The Amazon Web Services account ID of the S3 Access Grants instance.</p><br>
7    ///   - [`access_grant_id(impl Into<String>)`](crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder::access_grant_id) / [`set_access_grant_id(Option<String>)`](crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder::set_access_grant_id):<br>required: **true**<br><p>The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.</p><br>
8    /// - On success, responds with [`DeleteAccessGrantOutput`](crate::operation::delete_access_grant::DeleteAccessGrantOutput)
9    /// - On failure, responds with [`SdkError<DeleteAccessGrantError>`](crate::operation::delete_access_grant::DeleteAccessGrantError)
10    pub fn delete_access_grant(&self) -> crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder {
11        crate::operation::delete_access_grant::builders::DeleteAccessGrantFluentBuilder::new(self.handle.clone())
12    }
13}