UpdateApplication - Amazon CloudWatch Application Insights

UpdateApplication

Updates the application.

Request Syntax

{ "AttachMissingPermission": boolean, "AutoConfigEnabled": boolean, "CWEMonitorEnabled": boolean, "OpsCenterEnabled": boolean, "OpsItemSNSTopicArn": "string", "RemoveSNSTopic": boolean, "ResourceGroupName": "string", "SNSNotificationArn": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

AttachMissingPermission

If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

Type: Boolean

Required: No

AutoConfigEnabled

Turns auto-configuration on or off.

Type: Boolean

Required: No

CWEMonitorEnabled

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

Type: Boolean

Required: No

OpsCenterEnabled

When set to true, creates opsItems for any problems detected on an application.

Type: Boolean

Required: No

OpsItemSNSTopicArn

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 300.

Pattern: ^arn:aws(-\w+)*:[\w\d-]+:([\w\d-]*)?:[\w\d_-]*([:/].+)*$

Required: No

RemoveSNSTopic

Disassociates the SNS topic from the opsItem created for detected problems.

Type: Boolean

Required: No

ResourceGroupName

The name of the resource group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [a-zA-Z0-9\.\-_]*

Required: Yes

SNSNotificationArn

The SNS topic ARN. Allows you to receive SNS notifications for updates and issues with an application.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 300.

Pattern: ^arn:aws(-\w+)*:[\w\d-]+:([\w\d-]*)?:[\w\d_-]*([:/].+)*$

Required: No

Response Syntax

{ "ApplicationInfo": { "AccountId": "string", "AttachMissingPermission": boolean, "AutoConfigEnabled": boolean, "CWEMonitorEnabled": boolean, "DiscoveryType": "string", "LifeCycle": "string", "OpsCenterEnabled": boolean, "OpsItemSNSTopicArn": "string", "Remarks": "string", "ResourceGroupName": "string", "SNSNotificationArn": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ApplicationInfo

Information about the application.

Type: ApplicationInfo object

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerException

The server encountered an internal error and is unable to complete the request.

HTTP Status Code: 400

ResourceNotFoundException

The resource does not exist in the customer account.

HTTP Status Code: 400

ValidationException

The parameter is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: