#[non_exhaustive]pub struct PutAccountSettingInputBuilder { /* private fields */ }
Expand description
A builder for PutAccountSettingInput
.
Implementations§
source§impl PutAccountSettingInputBuilder
impl PutAccountSettingInputBuilder
sourcepub fn name(self, input: SettingName) -> Self
pub fn name(self, input: SettingName) -> Self
The Amazon ECS resource name for which to modify the account setting. If you specify serviceLongArnFormat
, the ARN for your Amazon ECS services is affected. If you specify taskLongArnFormat
, the ARN and resource ID for your Amazon ECS tasks is affected. If you specify containerInstanceLongArnFormat
, the ARN and resource ID for your Amazon ECS container instances is affected. If you specify awsvpcTrunking
, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specify containerInsights
, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specify fargateFIPSMode
, Fargate FIPS 140 compliance is affected. If you specify tagResourceAuthorization
, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specify fargateTaskRetirementWaitPeriod
, the wait time to retire a Fargate task is affected.
The guardDutyActivate
parameter is read-only in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring.
sourcepub fn set_name(self, input: Option<SettingName>) -> Self
pub fn set_name(self, input: Option<SettingName>) -> Self
The Amazon ECS resource name for which to modify the account setting. If you specify serviceLongArnFormat
, the ARN for your Amazon ECS services is affected. If you specify taskLongArnFormat
, the ARN and resource ID for your Amazon ECS tasks is affected. If you specify containerInstanceLongArnFormat
, the ARN and resource ID for your Amazon ECS container instances is affected. If you specify awsvpcTrunking
, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specify containerInsights
, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specify fargateFIPSMode
, Fargate FIPS 140 compliance is affected. If you specify tagResourceAuthorization
, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specify fargateTaskRetirementWaitPeriod
, the wait time to retire a Fargate task is affected.
The guardDutyActivate
parameter is read-only in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring.
sourcepub fn get_name(&self) -> &Option<SettingName>
pub fn get_name(&self) -> &Option<SettingName>
The Amazon ECS resource name for which to modify the account setting. If you specify serviceLongArnFormat
, the ARN for your Amazon ECS services is affected. If you specify taskLongArnFormat
, the ARN and resource ID for your Amazon ECS tasks is affected. If you specify containerInstanceLongArnFormat
, the ARN and resource ID for your Amazon ECS container instances is affected. If you specify awsvpcTrunking
, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specify containerInsights
, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specify fargateFIPSMode
, Fargate FIPS 140 compliance is affected. If you specify tagResourceAuthorization
, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specify fargateTaskRetirementWaitPeriod
, the wait time to retire a Fargate task is affected.
The guardDutyActivate
parameter is read-only in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The account setting value for the specified principal ARN. Accepted values are enabled
, disabled
, on
, and off
.
When you specify fargateTaskRetirementWaitPeriod
for the name
, the following are the valid values:
-
0
- Amazon Web Services sends the notification, and immediately retires the affected tasks. -
7
- Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks. -
14
- Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The account setting value for the specified principal ARN. Accepted values are enabled
, disabled
, on
, and off
.
When you specify fargateTaskRetirementWaitPeriod
for the name
, the following are the valid values:
-
0
- Amazon Web Services sends the notification, and immediately retires the affected tasks. -
7
- Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks. -
14
- Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
The account setting value for the specified principal ARN. Accepted values are enabled
, disabled
, on
, and off
.
When you specify fargateTaskRetirementWaitPeriod
for the name
, the following are the valid values:
-
0
- Amazon Web Services sends the notification, and immediately retires the affected tasks. -
7
- Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks. -
14
- Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.
sourcepub fn principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it modifies 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.
You must use the root user when you set the Fargate wait time (fargateTaskRetirementWaitPeriod
).
Federated users assume the account setting of the root user and can't have explicit account settings set for them.
sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it modifies 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.
You must use the root user when you set the Fargate wait time (fargateTaskRetirementWaitPeriod
).
Federated users assume the account setting of the root user and can't have explicit account settings set for them.
sourcepub fn get_principal_arn(&self) -> &Option<String>
pub fn get_principal_arn(&self) -> &Option<String>
The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it modifies 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.
You must use the root user when you set the Fargate wait time (fargateTaskRetirementWaitPeriod
).
Federated users assume the account setting of the root user and can't have explicit account settings set for them.
sourcepub fn build(self) -> Result<PutAccountSettingInput, BuildError>
pub fn build(self) -> Result<PutAccountSettingInput, BuildError>
Consumes the builder and constructs a PutAccountSettingInput
.
source§impl PutAccountSettingInputBuilder
impl PutAccountSettingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutAccountSettingOutput, SdkError<PutAccountSettingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutAccountSettingOutput, SdkError<PutAccountSettingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutAccountSettingInputBuilder
impl Clone for PutAccountSettingInputBuilder
source§fn clone(&self) -> PutAccountSettingInputBuilder
fn clone(&self) -> PutAccountSettingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutAccountSettingInputBuilder
impl Default for PutAccountSettingInputBuilder
source§fn default() -> PutAccountSettingInputBuilder
fn default() -> PutAccountSettingInputBuilder
source§impl PartialEq for PutAccountSettingInputBuilder
impl PartialEq for PutAccountSettingInputBuilder
source§fn eq(&self, other: &PutAccountSettingInputBuilder) -> bool
fn eq(&self, other: &PutAccountSettingInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.