update_app_monitor
async
¶
update_app_monitor(
name: AppMonitorName,
*,
config_overrides: Optional[AsyncRUMClientConfig] = None,
domain: Optional[AppMonitorDomain] = None,
domain_list: Optional[AppMonitorDomainList] = None,
app_monitor_configuration: Optional[AppMonitorConfiguration] = None,
cw_log_enabled: Optional[bool] = None,
custom_events: Optional[CustomEvents] = None,
deobfuscation_configuration: Optional[DeobfuscationConfiguration] = None,
) -> UpdateAppMonitorResponse
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?
Parameters:
-
name(AppMonitorName) –The name of the app monitor to update.
-
domain(Optional[AppMonitorDomain], default:None) –The top-level internet domain name for which your application has administrative authority.
-
domain_list(Optional[AppMonitorDomainList], default:None) –List the domain names for which your application has administrative authority. The
UpdateAppMonitorallows either the domain or the domain list. -
app_monitor_configuration(Optional[AppMonitorConfiguration], default:None) –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. -
cw_log_enabled(Optional[bool], default:None) –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.
-
custom_events(Optional[CustomEvents], default:None) –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.
-
deobfuscation_configuration(Optional[DeobfuscationConfiguration], default:None) –A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–This operation attempted to create a resource that already exists.
-
InternalServerException–Internal service exception.
-
ResourceNotFoundException–Resource not found.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–One of the arguments for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rum/_services/async_rum.py
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 | |