aws_sdk_ecs/client/
delete_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 [`DeleteAccountSetting`](crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(SettingName)`](crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder::name) / [`set_name(Option<SettingName>)`](crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder::set_name):<br>required: **true**<br><p>The resource name to disable the account setting for. If <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS services is affected. If <code>taskLongArnFormat</code> is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If <code>awsvpcTrunking</code> is specified, the ENI limit for your Amazon ECS container instances is affected.</p><br>
7    ///   - [`principal_arn(impl Into<String>)`](crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder::principal_arn) / [`set_principal_arn(Option<String>)`](crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder::set_principal_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the principal. It can be a user, role, or the root user. If you specify the root user, it disables the account setting for all users, roles, and the root user of the account unless a user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.</p> <p>In order to use this parameter, you must be the root user, or the principal.</p><br>
8    /// - On success, responds with [`DeleteAccountSettingOutput`](crate::operation::delete_account_setting::DeleteAccountSettingOutput) with field(s):
9    ///   - [`setting(Option<Setting>)`](crate::operation::delete_account_setting::DeleteAccountSettingOutput::setting): <p>The account setting for the specified principal ARN.</p>
10    /// - On failure, responds with [`SdkError<DeleteAccountSettingError>`](crate::operation::delete_account_setting::DeleteAccountSettingError)
11    pub fn delete_account_setting(&self) -> crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder {
12        crate::operation::delete_account_setting::builders::DeleteAccountSettingFluentBuilder::new(self.handle.clone())
13    }
14}