1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateWorkspaceImagePermission`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`image_id(impl Into<String>)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::image_id) / [`set_image_id(Option<String>)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::set_image_id):<br>required: **true**<br><p>The identifier of the image.</p><br>
    ///   - [`allow_copy_image(bool)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::allow_copy_image) / [`set_allow_copy_image(Option<bool>)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::set_allow_copy_image):<br>required: **true**<br><p>The permission to copy the image. This permission can be revoked only after an image has been shared.</p><br>
    ///   - [`shared_account_id(impl Into<String>)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::shared_account_id) / [`set_shared_account_id(Option<String>)`](crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::set_shared_account_id):<br>required: **true**<br><p>The identifier of the Amazon Web Services account to share or unshare the image with.</p><important>  <p>Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID.</p> </important><br>
    /// - On success, responds with [`UpdateWorkspaceImagePermissionOutput`](crate::operation::update_workspace_image_permission::UpdateWorkspaceImagePermissionOutput)
    /// - On failure, responds with [`SdkError<UpdateWorkspaceImagePermissionError>`](crate::operation::update_workspace_image_permission::UpdateWorkspaceImagePermissionError)
    pub fn update_workspace_image_permission(
        &self,
    ) -> crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder {
        crate::operation::update_workspace_image_permission::builders::UpdateWorkspaceImagePermissionFluentBuilder::new(self.handle.clone())
    }
}