Struct aws_sdk_rum::operation::put_rum_metrics_destination::builders::PutRumMetricsDestinationInputBuilder
source · #[non_exhaustive]pub struct PutRumMetricsDestinationInputBuilder { /* private fields */ }Expand description
A builder for PutRumMetricsDestinationInput.
Implementations§
source§impl PutRumMetricsDestinationInputBuilder
impl PutRumMetricsDestinationInputBuilder
sourcepub fn app_monitor_name(self, input: impl Into<String>) -> Self
pub fn app_monitor_name(self, input: impl Into<String>) -> Self
The name of the CloudWatch RUM app monitor that will send the metrics.
This field is required.sourcepub fn set_app_monitor_name(self, input: Option<String>) -> Self
pub fn set_app_monitor_name(self, input: Option<String>) -> Self
The name of the CloudWatch RUM app monitor that will send the metrics.
sourcepub fn get_app_monitor_name(&self) -> &Option<String>
pub fn get_app_monitor_name(&self) -> &Option<String>
The name of the CloudWatch RUM app monitor that will send the metrics.
sourcepub fn destination(self, input: MetricDestination) -> Self
pub fn destination(self, input: MetricDestination) -> Self
Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.
sourcepub fn set_destination(self, input: Option<MetricDestination>) -> Self
pub fn set_destination(self, input: Option<MetricDestination>) -> Self
Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.
sourcepub fn get_destination(&self) -> &Option<MetricDestination>
pub fn get_destination(&self) -> &Option<MetricDestination>
Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.
sourcepub fn destination_arn(self, input: impl Into<String>) -> Self
pub fn destination_arn(self, input: impl Into<String>) -> Self
Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
sourcepub fn set_destination_arn(self, input: Option<String>) -> Self
pub fn set_destination_arn(self, input: Option<String>) -> Self
Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
sourcepub fn get_destination_arn(&self) -> &Option<String>
pub fn get_destination_arn(&self) -> &Option<String>
Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.
sourcepub fn build(self) -> Result<PutRumMetricsDestinationInput, BuildError>
pub fn build(self) -> Result<PutRumMetricsDestinationInput, BuildError>
Consumes the builder and constructs a PutRumMetricsDestinationInput.
source§impl PutRumMetricsDestinationInputBuilder
impl PutRumMetricsDestinationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutRumMetricsDestinationOutput, SdkError<PutRumMetricsDestinationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutRumMetricsDestinationOutput, SdkError<PutRumMetricsDestinationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutRumMetricsDestinationInputBuilder
impl Clone for PutRumMetricsDestinationInputBuilder
source§fn clone(&self) -> PutRumMetricsDestinationInputBuilder
fn clone(&self) -> PutRumMetricsDestinationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutRumMetricsDestinationInputBuilder
impl Default for PutRumMetricsDestinationInputBuilder
source§fn default() -> PutRumMetricsDestinationInputBuilder
fn default() -> PutRumMetricsDestinationInputBuilder
source§impl PartialEq for PutRumMetricsDestinationInputBuilder
impl PartialEq for PutRumMetricsDestinationInputBuilder
source§fn eq(&self, other: &PutRumMetricsDestinationInputBuilder) -> bool
fn eq(&self, other: &PutRumMetricsDestinationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.