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 ==
.