Struct aws_sdk_opensearch::types::AutoTuneOptions
source · #[non_exhaustive]pub struct AutoTuneOptions {
pub desired_state: Option<AutoTuneDesiredState>,
pub rollback_on_disable: Option<RollbackOnDisable>,
pub maintenance_schedules: Option<Vec<AutoTuneMaintenanceSchedule>>,
pub use_off_peak_window: Option<bool>,
}
Expand description
Auto-Tune settings when updating a domain. For more information, see Auto-Tune for Amazon OpenSearch Service.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.desired_state: Option<AutoTuneDesiredState>
Whether Auto-Tune is enabled or disabled.
rollback_on_disable: Option<RollbackOnDisable>
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise, OpenSearch Service is unable to perform the rollback.
maintenance_schedules: Option<Vec<AutoTuneMaintenanceSchedule>>
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
use_off_peak_window: Option<bool>
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
Implementations§
source§impl AutoTuneOptions
impl AutoTuneOptions
sourcepub fn desired_state(&self) -> Option<&AutoTuneDesiredState>
pub fn desired_state(&self) -> Option<&AutoTuneDesiredState>
Whether Auto-Tune is enabled or disabled.
sourcepub fn rollback_on_disable(&self) -> Option<&RollbackOnDisable>
pub fn rollback_on_disable(&self) -> Option<&RollbackOnDisable>
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise, OpenSearch Service is unable to perform the rollback.
sourcepub fn maintenance_schedules(&self) -> &[AutoTuneMaintenanceSchedule]
pub fn maintenance_schedules(&self) -> &[AutoTuneMaintenanceSchedule]
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .maintenance_schedules.is_none()
.
sourcepub fn use_off_peak_window(&self) -> Option<bool>
pub fn use_off_peak_window(&self) -> Option<bool>
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
source§impl AutoTuneOptions
impl AutoTuneOptions
sourcepub fn builder() -> AutoTuneOptionsBuilder
pub fn builder() -> AutoTuneOptionsBuilder
Creates a new builder-style object to manufacture AutoTuneOptions
.
Trait Implementations§
source§impl Clone for AutoTuneOptions
impl Clone for AutoTuneOptions
source§fn clone(&self) -> AutoTuneOptions
fn clone(&self) -> AutoTuneOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoTuneOptions
impl Debug for AutoTuneOptions
source§impl PartialEq for AutoTuneOptions
impl PartialEq for AutoTuneOptions
source§fn eq(&self, other: &AutoTuneOptions) -> bool
fn eq(&self, other: &AutoTuneOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoTuneOptions
Auto Trait Implementations§
impl Freeze for AutoTuneOptions
impl RefUnwindSafe for AutoTuneOptions
impl Send for AutoTuneOptions
impl Sync for AutoTuneOptions
impl Unpin for AutoTuneOptions
impl UnwindSafe for AutoTuneOptions
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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