Struct aws_sdk_ecs::client::fluent_builders::DeleteAccountSetting
source · [−]pub struct DeleteAccountSetting { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteAccountSetting.
Disables an account setting for a specified IAM user, IAM role, or the root user for an account.
Implementations
sourceimpl DeleteAccountSetting
impl DeleteAccountSetting
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteAccountSetting, AwsResponseRetryClassifier>, SdkError<DeleteAccountSettingError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteAccountSetting, AwsResponseRetryClassifier>, SdkError<DeleteAccountSettingError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteAccountSettingOutput, SdkError<DeleteAccountSettingError>>
pub async fn send(
self
) -> Result<DeleteAccountSettingOutput, SdkError<DeleteAccountSettingError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn name(self, input: SettingName) -> Self
pub fn name(self, input: SettingName) -> Self
The resource name to disable the account setting for. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the ENI limit for your Amazon ECS container instances is affected.
sourcepub fn set_name(self, input: Option<SettingName>) -> Self
pub fn set_name(self, input: Option<SettingName>) -> Self
The resource name to disable the account setting for. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the ENI limit for your Amazon ECS container instances is affected.
sourcepub fn principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the principal. It can be an IAM user, IAM role, or the root user. If you specify the root user, it disables the account setting for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.
sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the principal. It can be an IAM user, IAM role, or the root user. If you specify the root user, it disables the account setting for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.
Trait Implementations
sourceimpl Clone for DeleteAccountSetting
impl Clone for DeleteAccountSetting
sourcefn clone(&self) -> DeleteAccountSetting
fn clone(&self) -> DeleteAccountSetting
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more