Struct aws_sdk_kinesis::operation::enable_enhanced_monitoring::builders::EnableEnhancedMonitoringFluentBuilder
source · pub struct EnableEnhancedMonitoringFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to EnableEnhancedMonitoring.
Enables enhanced Kinesis data stream monitoring for shard-level metrics.
When invoking this API, it is recommended you use the StreamARN input parameter rather than the StreamName input parameter.
Implementations§
source§impl EnableEnhancedMonitoringFluentBuilder
impl EnableEnhancedMonitoringFluentBuilder
sourcepub fn as_input(&self) -> &EnableEnhancedMonitoringInputBuilder
pub fn as_input(&self) -> &EnableEnhancedMonitoringInputBuilder
Access the EnableEnhancedMonitoring as a reference.
sourcepub async fn send(
self
) -> Result<EnableEnhancedMonitoringOutput, SdkError<EnableEnhancedMonitoringError, HttpResponse>>
pub async fn send( self ) -> Result<EnableEnhancedMonitoringOutput, SdkError<EnableEnhancedMonitoringError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<EnableEnhancedMonitoringOutput, EnableEnhancedMonitoringError, Self>
pub fn customize( self ) -> CustomizableOperation<EnableEnhancedMonitoringOutput, EnableEnhancedMonitoringError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn stream_name(self, input: impl Into<String>) -> Self
pub fn stream_name(self, input: impl Into<String>) -> Self
The name of the stream for which to enable enhanced monitoring.
sourcepub fn set_stream_name(self, input: Option<String>) -> Self
pub fn set_stream_name(self, input: Option<String>) -> Self
The name of the stream for which to enable enhanced monitoring.
sourcepub fn get_stream_name(&self) -> &Option<String>
pub fn get_stream_name(&self) -> &Option<String>
The name of the stream for which to enable enhanced monitoring.
sourcepub fn shard_level_metrics(self, input: MetricsName) -> Self
pub fn shard_level_metrics(self, input: MetricsName) -> Self
Appends an item to ShardLevelMetrics.
To override the contents of this collection use set_shard_level_metrics.
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL" enables every metric.
-
IncomingBytes -
IncomingRecords -
OutgoingBytes -
OutgoingRecords -
WriteProvisionedThroughputExceeded -
ReadProvisionedThroughputExceeded -
IteratorAgeMilliseconds -
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
sourcepub fn set_shard_level_metrics(self, input: Option<Vec<MetricsName>>) -> Self
pub fn set_shard_level_metrics(self, input: Option<Vec<MetricsName>>) -> Self
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL" enables every metric.
-
IncomingBytes -
IncomingRecords -
OutgoingBytes -
OutgoingRecords -
WriteProvisionedThroughputExceeded -
ReadProvisionedThroughputExceeded -
IteratorAgeMilliseconds -
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
sourcepub fn get_shard_level_metrics(&self) -> &Option<Vec<MetricsName>>
pub fn get_shard_level_metrics(&self) -> &Option<Vec<MetricsName>>
List of shard-level metrics to enable.
The following are the valid shard-level metrics. The value "ALL" enables every metric.
-
IncomingBytes -
IncomingRecords -
OutgoingBytes -
OutgoingRecords -
WriteProvisionedThroughputExceeded -
ReadProvisionedThroughputExceeded -
IteratorAgeMilliseconds -
ALL
For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide.
sourcepub fn stream_arn(self, input: impl Into<String>) -> Self
pub fn stream_arn(self, input: impl Into<String>) -> Self
The ARN of the stream.
sourcepub fn set_stream_arn(self, input: Option<String>) -> Self
pub fn set_stream_arn(self, input: Option<String>) -> Self
The ARN of the stream.
sourcepub fn get_stream_arn(&self) -> &Option<String>
pub fn get_stream_arn(&self) -> &Option<String>
The ARN of the stream.
Trait Implementations§
source§impl Clone for EnableEnhancedMonitoringFluentBuilder
impl Clone for EnableEnhancedMonitoringFluentBuilder
source§fn clone(&self) -> EnableEnhancedMonitoringFluentBuilder
fn clone(&self) -> EnableEnhancedMonitoringFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more