Struct aws_sdk_ecs::operation::update_cluster_settings::builders::UpdateClusterSettingsInputBuilder
source · #[non_exhaustive]pub struct UpdateClusterSettingsInputBuilder { /* private fields */ }Expand description
A builder for UpdateClusterSettingsInput.
Implementations§
source§impl UpdateClusterSettingsInputBuilder
impl UpdateClusterSettingsInputBuilder
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The name of the cluster to modify the settings for.
This field is required.sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The name of the cluster to modify the settings for.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The name of the cluster to modify the settings for.
sourcepub fn settings(self, input: ClusterSetting) -> Self
pub fn settings(self, input: ClusterSetting) -> Self
Appends an item to settings.
To override the contents of this collection use set_settings.
The setting to use by default for a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster. If this value is specified, it overrides the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.
Currently, if you delete an existing cluster that does not have Container Insights turned on, and then create a new cluster with the same name with Container Insights tuned on, Container Insights will not actually be turned on. If you want to preserve the same name for your existing cluster and turn on Container Insights, you must wait 7 days before you can re-create it.
sourcepub fn set_settings(self, input: Option<Vec<ClusterSetting>>) -> Self
pub fn set_settings(self, input: Option<Vec<ClusterSetting>>) -> Self
The setting to use by default for a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster. If this value is specified, it overrides the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.
Currently, if you delete an existing cluster that does not have Container Insights turned on, and then create a new cluster with the same name with Container Insights tuned on, Container Insights will not actually be turned on. If you want to preserve the same name for your existing cluster and turn on Container Insights, you must wait 7 days before you can re-create it.
sourcepub fn get_settings(&self) -> &Option<Vec<ClusterSetting>>
pub fn get_settings(&self) -> &Option<Vec<ClusterSetting>>
The setting to use by default for a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster. If this value is specified, it overrides the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.
Currently, if you delete an existing cluster that does not have Container Insights turned on, and then create a new cluster with the same name with Container Insights tuned on, Container Insights will not actually be turned on. If you want to preserve the same name for your existing cluster and turn on Container Insights, you must wait 7 days before you can re-create it.
sourcepub fn build(self) -> Result<UpdateClusterSettingsInput, BuildError>
pub fn build(self) -> Result<UpdateClusterSettingsInput, BuildError>
Consumes the builder and constructs a UpdateClusterSettingsInput.
source§impl UpdateClusterSettingsInputBuilder
impl UpdateClusterSettingsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateClusterSettingsOutput, SdkError<UpdateClusterSettingsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateClusterSettingsOutput, SdkError<UpdateClusterSettingsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateClusterSettingsInputBuilder
impl Clone for UpdateClusterSettingsInputBuilder
source§fn clone(&self) -> UpdateClusterSettingsInputBuilder
fn clone(&self) -> UpdateClusterSettingsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateClusterSettingsInputBuilder
impl Default for UpdateClusterSettingsInputBuilder
source§fn default() -> UpdateClusterSettingsInputBuilder
fn default() -> UpdateClusterSettingsInputBuilder
source§impl PartialEq for UpdateClusterSettingsInputBuilder
impl PartialEq for UpdateClusterSettingsInputBuilder
source§fn eq(&self, other: &UpdateClusterSettingsInputBuilder) -> bool
fn eq(&self, other: &UpdateClusterSettingsInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateClusterSettingsInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateClusterSettingsInputBuilder
impl RefUnwindSafe for UpdateClusterSettingsInputBuilder
impl Send for UpdateClusterSettingsInputBuilder
impl Sync for UpdateClusterSettingsInputBuilder
impl Unpin for UpdateClusterSettingsInputBuilder
impl UnwindSafe for UpdateClusterSettingsInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more