Struct aws_sdk_rum::client::fluent_builders::UpdateAppMonitor
source · pub struct UpdateAppMonitor { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateAppMonitor
.
Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept.
You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource.
To create a new app monitor, use CreateAppMonitor.
After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?
Implementations§
source§impl UpdateAppMonitor
impl UpdateAppMonitor
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateAppMonitor, AwsResponseRetryClassifier>, SdkError<UpdateAppMonitorError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateAppMonitor, AwsResponseRetryClassifier>, SdkError<UpdateAppMonitorError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateAppMonitorOutput, SdkError<UpdateAppMonitorError>>
pub async fn send(
self
) -> Result<UpdateAppMonitorOutput, SdkError<UpdateAppMonitorError>>
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 domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The top-level internet domain name for which your application has administrative authority.
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The top-level internet domain name for which your application has administrative authority.
sourcepub fn app_monitor_configuration(self, input: AppMonitorConfiguration) -> Self
pub fn app_monitor_configuration(self, input: AppMonitorConfiguration) -> Self
A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration
, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services.
sourcepub fn set_app_monitor_configuration(
self,
input: Option<AppMonitorConfiguration>
) -> Self
pub fn set_app_monitor_configuration(
self,
input: Option<AppMonitorConfiguration>
) -> Self
A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration
, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services.
sourcepub fn cw_log_enabled(self, input: bool) -> Self
pub fn cw_log_enabled(self, input: bool) -> Self
Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.
sourcepub fn set_cw_log_enabled(self, input: Option<bool>) -> Self
pub fn set_cw_log_enabled(self, input: Option<bool>) -> Self
Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.
sourcepub fn custom_events(self, input: CustomEvents) -> Self
pub fn custom_events(self, input: CustomEvents) -> Self
Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED
.
For more information about custom events, see Send custom events.
sourcepub fn set_custom_events(self, input: Option<CustomEvents>) -> Self
pub fn set_custom_events(self, input: Option<CustomEvents>) -> Self
Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED
.
For more information about custom events, see Send custom events.
Trait Implementations§
source§impl Clone for UpdateAppMonitor
impl Clone for UpdateAppMonitor
source§fn clone(&self) -> UpdateAppMonitor
fn clone(&self) -> UpdateAppMonitor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more