aws_sdk_ec2/client/enable_allowed_images_settings.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 [`EnableAllowedImagesSettings`](crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`allowed_images_settings_state(AllowedImagesSettingsEnabledState)`](crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder::allowed_images_settings_state) / [`set_allowed_images_settings_state(Option<AllowedImagesSettingsEnabledState>)`](crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder::set_allowed_images_settings_state):<br>required: **true**<br><p>Specify <code>enabled</code> to apply the image criteria specified by the Allowed AMIs settings. Specify <code>audit-mode</code> so that you can check which AMIs will be allowed or not allowed by the image criteria.</p><br>
7 /// - [`dry_run(bool)`](crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder::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>
8 /// - On success, responds with [`EnableAllowedImagesSettingsOutput`](crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsOutput) with field(s):
9 /// - [`allowed_images_settings_state(Option<AllowedImagesSettingsEnabledState>)`](crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsOutput::allowed_images_settings_state): <p>Returns <code>enabled</code> or <code>audit-mode</code> if the request succeeds; otherwise, it returns an error.</p>
10 /// - On failure, responds with [`SdkError<EnableAllowedImagesSettingsError>`](crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError)
11 pub fn enable_allowed_images_settings(
12 &self,
13 ) -> crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder {
14 crate::operation::enable_allowed_images_settings::builders::EnableAllowedImagesSettingsFluentBuilder::new(self.handle.clone())
15 }
16}