create_application
async
¶
create_application(
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
resource_group_name: Optional[ResourceGroupName] = 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,
tags: Optional[TagList] = None,
auto_config_enabled: Optional[AutoConfigEnabled] = None,
auto_create: Optional[AutoCreate] = None,
grouping_type: Optional[GroupingType] = None,
attach_missing_permission: Optional[AttachMissingPermission] = None,
) -> CreateApplicationResponse
Adds an application that is created from a resource group.
Parameters:
-
resource_group_name(Optional[ResourceGroupName], default:None) –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 notification topic ARN.
-
tags(Optional[TagList], default:None) –List of tags to add to the application. tag key (
Key) and an associated tag value (Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. -
auto_config_enabled(Optional[AutoConfigEnabled], default:None) –Indicates whether Application Insights automatically configures unmonitored resources in the resource group.
-
auto_create(Optional[AutoCreate], default:None) –Configures all of the resources in the resource group by applying the recommended configurations.
-
grouping_type(Optional[GroupingType], default:None) –Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to
ACCOUNT_BASED. -
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:
-
AccessDeniedException–User does not have permissions to perform this action.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceInUseException–The resource is already created or in use.
-
ResourceNotFoundException–The resource does not exist in the customer account.
-
TagsAlreadyExistException–Tags are already registered for the specified application ARN.
-
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
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | |