1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetImageBlockPublicAccessState`](crate::operation::get_image_block_public_access_state::builders::GetImageBlockPublicAccessStateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::get_image_block_public_access_state::builders::GetImageBlockPublicAccessStateFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_image_block_public_access_state::builders::GetImageBlockPublicAccessStateFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    /// - On success, responds with [`GetImageBlockPublicAccessStateOutput`](crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateOutput) with field(s):
    ///   - [`image_block_public_access_state(Option<String>)`](crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateOutput::image_block_public_access_state): <p>The current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.</p>  <p>Possible values:</p>  <ul>   <li> <p> <code>block-new-sharing</code> - Any attempt to publicly share your AMIs in the specified Region is blocked.</p> </li>   <li> <p> <code>unblocked</code> - Your AMIs in the specified Region can be publicly shared.</p> </li>  </ul>
    /// - On failure, responds with [`SdkError<GetImageBlockPublicAccessStateError>`](crate::operation::get_image_block_public_access_state::GetImageBlockPublicAccessStateError)
    pub fn get_image_block_public_access_state(
        &self,
    ) -> crate::operation::get_image_block_public_access_state::builders::GetImageBlockPublicAccessStateFluentBuilder {
        crate::operation::get_image_block_public_access_state::builders::GetImageBlockPublicAccessStateFluentBuilder::new(self.handle.clone())
    }
}