pub struct ElasticsearchDestinationConfiguration {Show 13 fields
pub buffering_hints: Option<ElasticsearchBufferingHints>,
pub cloud_watch_logging_options: Option<CloudWatchLoggingOptions>,
pub cluster_endpoint: Option<String>,
pub domain_arn: Option<String>,
pub index_name: String,
pub index_rotation_period: Option<String>,
pub processing_configuration: Option<ProcessingConfiguration>,
pub retry_options: Option<ElasticsearchRetryOptions>,
pub role_arn: String,
pub s3_backup_mode: Option<String>,
pub s3_configuration: S3DestinationConfiguration,
pub type_name: Option<String>,
pub vpc_configuration: Option<VpcConfiguration>,
}
Expand description
Describes the configuration of a destination in Amazon ES.
Fields
buffering_hints: Option<ElasticsearchBufferingHints>
The buffering options. If no value is specified, the default values for ElasticsearchBufferingHints
are used.
cloud_watch_logging_options: Option<CloudWatchLoggingOptions>
The Amazon CloudWatch logging options for your delivery stream.
cluster_endpoint: Option<String>
The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint
or the DomainARN
field.
domain_arn: Option<String>
The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeElasticsearchDomain
, DescribeElasticsearchDomains
, and DescribeElasticsearchDomainConfig
after assuming the role specified in RoleARN. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
Specify either ClusterEndpoint
or DomainARN
.
index_name: String
The Elasticsearch index name.
index_rotation_period: Option<String>
The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName
to facilitate the expiration of old data. For more information, see Index Rotation for the Amazon ES Destination. The default value is OneDay
.
processing_configuration: Option<ProcessingConfiguration>
The data processing configuration.
retry_options: Option<ElasticsearchRetryOptions>
The retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon ES. The default value is 300 (5 minutes).
role_arn: String
The Amazon Resource Name (ARN) of the IAM role to be assumed by Kinesis Data Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Grant Kinesis Data Firehose Access to an Amazon S3 Destination and Amazon Resource Names (ARNs) and AWS Service Namespaces.
s3_backup_mode: Option<String>
Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly
, Kinesis Data Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with elasticsearch-failed/
appended to the key prefix. When set to AllDocuments
, Kinesis Data Firehose delivers all incoming records to Amazon S3, and also writes failed documents with elasticsearch-failed/
appended to the prefix. For more information, see Amazon S3 Backup for the Amazon ES Destination. Default value is FailedDocumentsOnly
.
You can't change this backup mode after you create the delivery stream.
s3_configuration: S3DestinationConfiguration
The configuration for the backup Amazon S3 location.
type_name: Option<String>
The Elasticsearch type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a new type for an existing index that already has another type, Kinesis Data Firehose returns an error during run time.
For Elasticsearch 7.x, don't specify a TypeName
.
vpc_configuration: Option<VpcConfiguration>
The details of the VPC of the Amazon ES destination.
Trait Implementations
sourceimpl Clone for ElasticsearchDestinationConfiguration
impl Clone for ElasticsearchDestinationConfiguration
sourcefn clone(&self) -> ElasticsearchDestinationConfiguration
fn clone(&self) -> ElasticsearchDestinationConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ElasticsearchDestinationConfiguration
impl Default for ElasticsearchDestinationConfiguration
sourcefn default() -> ElasticsearchDestinationConfiguration
fn default() -> ElasticsearchDestinationConfiguration
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ElasticsearchDestinationConfiguration> for ElasticsearchDestinationConfiguration
impl PartialEq<ElasticsearchDestinationConfiguration> for ElasticsearchDestinationConfiguration
sourcefn eq(&self, other: &ElasticsearchDestinationConfiguration) -> bool
fn eq(&self, other: &ElasticsearchDestinationConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ElasticsearchDestinationConfiguration) -> bool
fn ne(&self, other: &ElasticsearchDestinationConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for ElasticsearchDestinationConfiguration
Auto Trait Implementations
impl RefUnwindSafe for ElasticsearchDestinationConfiguration
impl Send for ElasticsearchDestinationConfiguration
impl Sync for ElasticsearchDestinationConfiguration
impl Unpin for ElasticsearchDestinationConfiguration
impl UnwindSafe for ElasticsearchDestinationConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more