Amazon CloudWatch Application Insights for .NET and SQL Server
Welcome (API Version 2018-11-25)

UpdateComponentConfiguration

Updates the monitoring configurations for the component. The configuration input parameter is an escaped JSON of the configuration and should match the schema of what is returned by DescribeComponentConfigurationRecommendation.

Request Syntax

{ "ComponentConfiguration": "string", "ComponentName": "string", "Monitor": boolean, "ResourceGroupName": "string", "Tier": "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.

ComponentConfiguration

The configuration settings of the component. The value is the escaped JSON of the configuration. For more information about the JSON format, see Working with JSON. You can send a request to DescribeComponentConfigurationRecommendation to see the recommended configuration for a component. For the complete format of the component configuration file, see Component Configuration.

Type: String

Required: No

ComponentName

The name of the component.

Type: String

Required: Yes

Monitor

Indicates whether the application component is monitored.

Type: Boolean

Required: No

ResourceGroupName

The name of the resource group.

Type: String

Required: Yes

Tier

The tier of the application component. Supported tiers include DOT_NET_WORKER, DOT_NET_WEB, SQL_SERVER, and DEFAULT.

Type: String

Required: No

Response Elements

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

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: