aws_sdk_wellarchitected/client/
delete_lens_share.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteLensShare`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`share_id(impl Into<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::share_id) / [`set_share_id(Option<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::set_share_id):<br>required: **true**<br><p>The ID associated with the share.</p><br>
    ///   - [`lens_alias(impl Into<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::lens_alias) / [`set_lens_alias(Option<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::set_lens_alias):<br>required: **true**<br><p>The alias of the lens.</p> <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p> <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p> <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::set_client_request_token):<br>required: **true**<br><p>A unique case-sensitive string used to ensure that this request is idempotent (executes only once).</p> <p>You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p><important>  <p>This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.</p> </important><br>
    /// - On success, responds with [`DeleteLensShareOutput`](crate::operation::delete_lens_share::DeleteLensShareOutput)
    /// - On failure, responds with [`SdkError<DeleteLensShareError>`](crate::operation::delete_lens_share::DeleteLensShareError)
    pub fn delete_lens_share(&self) -> crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder {
        crate::operation::delete_lens_share::builders::DeleteLensShareFluentBuilder::new(self.handle.clone())
    }
}