#[non_exhaustive]pub struct ElasticsearchSettings {
pub service_access_role_arn: String,
pub endpoint_uri: String,
pub full_load_error_percentage: Option<i32>,
pub error_retry_duration: Option<i32>,
pub use_new_mapping_type: Option<bool>,
}
Expand description
Provides information that defines an OpenSearch endpoint.
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.service_access_role_arn: String
The Amazon Resource Name (ARN) used by the service to access the IAM role. The role must allow the iam:PassRole
action.
endpoint_uri: String
The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport protocol (http/https) is not specified.
full_load_error_percentage: Option<i32>
The maximum percentage of records that can fail to be written before a full load operation stops.
To avoid early failure, this counter is only effective after 1000 records are transferred. OpenSearch also has the concept of error monitoring during the last 10 minutes of an Observation Window. If transfer of all records fail in the last 10 minutes, the full load operation stops.
error_retry_duration: Option<i32>
The maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster.
use_new_mapping_type: Option<bool>
Set this option to true
for DMS to migrate documentation using the documentation type _doc
. OpenSearch and an Elasticsearch cluster only support the _doc documentation type in versions 7. x and later. The default value is false
.
Implementations§
source§impl ElasticsearchSettings
impl ElasticsearchSettings
sourcepub fn service_access_role_arn(&self) -> &str
pub fn service_access_role_arn(&self) -> &str
The Amazon Resource Name (ARN) used by the service to access the IAM role. The role must allow the iam:PassRole
action.
sourcepub fn endpoint_uri(&self) -> &str
pub fn endpoint_uri(&self) -> &str
The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport protocol (http/https) is not specified.
sourcepub fn full_load_error_percentage(&self) -> Option<i32>
pub fn full_load_error_percentage(&self) -> Option<i32>
The maximum percentage of records that can fail to be written before a full load operation stops.
To avoid early failure, this counter is only effective after 1000 records are transferred. OpenSearch also has the concept of error monitoring during the last 10 minutes of an Observation Window. If transfer of all records fail in the last 10 minutes, the full load operation stops.
sourcepub fn error_retry_duration(&self) -> Option<i32>
pub fn error_retry_duration(&self) -> Option<i32>
The maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster.
sourcepub fn use_new_mapping_type(&self) -> Option<bool>
pub fn use_new_mapping_type(&self) -> Option<bool>
Set this option to true
for DMS to migrate documentation using the documentation type _doc
. OpenSearch and an Elasticsearch cluster only support the _doc documentation type in versions 7. x and later. The default value is false
.
source§impl ElasticsearchSettings
impl ElasticsearchSettings
sourcepub fn builder() -> ElasticsearchSettingsBuilder
pub fn builder() -> ElasticsearchSettingsBuilder
Creates a new builder-style object to manufacture ElasticsearchSettings
.
Trait Implementations§
source§impl Clone for ElasticsearchSettings
impl Clone for ElasticsearchSettings
source§fn clone(&self) -> ElasticsearchSettings
fn clone(&self) -> ElasticsearchSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ElasticsearchSettings
impl Debug for ElasticsearchSettings
source§impl PartialEq for ElasticsearchSettings
impl PartialEq for ElasticsearchSettings
impl StructuralPartialEq for ElasticsearchSettings
Auto Trait Implementations§
impl Freeze for ElasticsearchSettings
impl RefUnwindSafe for ElasticsearchSettings
impl Send for ElasticsearchSettings
impl Sync for ElasticsearchSettings
impl Unpin for ElasticsearchSettings
impl UnwindSafe for ElasticsearchSettings
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