update_application
async
¶
update_application(
resource_group_name: ResourceGroupName,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
ops_center_enabled: Optional[OpsCenterEnabled] = None,
cwe_monitor_enabled: Optional[CWEMonitorEnabled] = None,
ops_item_sns_topic_arn: Optional[OpsItemSNSTopicArn] = None,
sns_notification_arn: Optional[SNSNotificationArn] = None,
remove_sns_topic: Optional[RemoveSNSTopic] = None,
auto_config_enabled: Optional[AutoConfigEnabled] = None,
attach_missing_permission: Optional[AttachMissingPermission] = None,
) -> UpdateApplicationResponse
Updates the application.
Parameters:
-
resource_group_name(ResourceGroupName) –The name of the resource group.
-
ops_center_enabled(Optional[OpsCenterEnabled], default:None) –When set to
true, creates opsItems for any problems detected on an application. -
cwe_monitor_enabled(Optional[CWEMonitorEnabled], default:None) –Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as
instance terminated,failed deployment, and others. -
ops_item_sns_topic_arn(Optional[OpsItemSNSTopicArn], default:None) –The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
-
sns_notification_arn(Optional[SNSNotificationArn], default:None) –The SNS topic ARN. Allows you to receive SNS notifications for updates and issues with an application.
-
remove_sns_topic(Optional[RemoveSNSTopic], default:None) –Disassociates the SNS topic from the opsItem created for detected problems.
-
auto_config_enabled(Optional[AutoConfigEnabled], default:None) –Turns auto-configuration on or off.
-
attach_missing_permission(Optional[AttachMissingPermission], default:None) –If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource does not exist in the customer account.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_insights/_services/async_application_insights.py
2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 | |