aws_sdk_ecr/client/get_account_setting.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 [`GetAccountSetting`](crate::operation::get_account_setting::builders::GetAccountSettingFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_account_setting::builders::GetAccountSettingFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_account_setting::builders::GetAccountSettingFluentBuilder::set_name):<br>required: **true**<br><p>The name of the account setting, such as <code>BASIC_SCAN_TYPE_VERSION</code> or <code>REGISTRY_POLICY_SCOPE</code>.</p><br>
7 /// - On success, responds with [`GetAccountSettingOutput`](crate::operation::get_account_setting::GetAccountSettingOutput) with field(s):
8 /// - [`name(Option<String>)`](crate::operation::get_account_setting::GetAccountSettingOutput::name): <p>Retrieves the name of the account setting.</p>
9 /// - [`value(Option<String>)`](crate::operation::get_account_setting::GetAccountSettingOutput::value): <p>The setting value for the setting name. The following are valid values for the basic scan type being used: <code>AWS_NATIVE</code> or <code>CLAIR</code>. The following are valid values for the registry policy scope being used: <code>V1</code> or <code>V2</code>.</p>
10 /// - On failure, responds with [`SdkError<GetAccountSettingError>`](crate::operation::get_account_setting::GetAccountSettingError)
11 pub fn get_account_setting(&self) -> crate::operation::get_account_setting::builders::GetAccountSettingFluentBuilder {
12 crate::operation::get_account_setting::builders::GetAccountSettingFluentBuilder::new(self.handle.clone())
13 }
14}