aws_sdk_rum/client/create_app_monitor.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateAppMonitor`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_name):<br>required: **true**<br><p>A name for the app monitor.</p><br>
7 /// - [`domain(impl Into<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_domain):<br>required: **false**<br><p>The top-level internet domain name for which your application has administrative authority.</p><br>
8 /// - [`domain_list(impl Into<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::domain_list) / [`set_domain_list(Option<Vec::<String>>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_domain_list):<br>required: **false**<br><p>List the domain names for which your application has administrative authority. The <code>CreateAppMonitor</code> requires either the domain or the domain list.</p><br>
9 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_tags):<br>required: **false**<br><p>Assigns one or more tags (key-value pairs) to the app monitor.</p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <p>You can associate as many as 50 tags with an app monitor.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p><br>
10 /// - [`app_monitor_configuration(AppMonitorConfiguration)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::app_monitor_configuration) / [`set_app_monitor_configuration(Option<AppMonitorConfiguration>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_app_monitor_configuration):<br>required: **false**<br><p>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 <code>AppMonitorConfiguration</code>, you must set up your own authorization method. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html">Authorize your application to send data to Amazon Web Services</a>.</p> <p>If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.</p><br>
11 /// - [`cw_log_enabled(bool)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::cw_log_enabled) / [`set_cw_log_enabled(Option<bool>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_cw_log_enabled):<br>required: **false**<br><p>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.</p> <p>If you omit this parameter, the default is <code>false</code>.</p><br>
12 /// - [`custom_events(CustomEvents)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::custom_events) / [`set_custom_events(Option<CustomEvents>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_custom_events):<br>required: **false**<br><p>Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are <code>DISABLED</code>.</p> <p>For more information about custom events, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html">Send custom events</a>.</p><br>
13 /// - [`deobfuscation_configuration(DeobfuscationConfiguration)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::deobfuscation_configuration) / [`set_deobfuscation_configuration(Option<DeobfuscationConfiguration>)`](crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::set_deobfuscation_configuration):<br>required: **false**<br><p>A structure that contains the configuration for how an app monitor can deobfuscate stack traces.</p><br>
14 /// - On success, responds with [`CreateAppMonitorOutput`](crate::operation::create_app_monitor::CreateAppMonitorOutput) with field(s):
15 /// - [`id(Option<String>)`](crate::operation::create_app_monitor::CreateAppMonitorOutput::id): <p>The unique ID of the new app monitor.</p>
16 /// - On failure, responds with [`SdkError<CreateAppMonitorError>`](crate::operation::create_app_monitor::CreateAppMonitorError)
17 pub fn create_app_monitor(&self) -> crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder {
18 crate::operation::create_app_monitor::builders::CreateAppMonitorFluentBuilder::new(self.handle.clone())
19 }
20}