DisassociateConfigurationItemsFromApplication - AWS Application Discovery Service

DisassociateConfigurationItemsFromApplication

Disassociates one or more configuration items from an application.

Request Syntax

{ "applicationConfigurationId": "string", "configurationIds": [ "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.

applicationConfigurationId

Configuration ID of an application from which each item is disassociated.

Type: String

Length Constraints: Maximum length of 200.

Pattern: \S+

Required: Yes

configurationIds

Configuration ID of each item to be disassociated from an application.

Type: Array of strings

Length Constraints: Maximum length of 200.

Pattern: \S*

Required: Yes

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.

AuthorizationErrorException

The user does not have permission to perform the action. Check the IAM policy associated with this user.

HTTP Status Code: 400

HomeRegionNotSetException

The home Region is not set. Set the home Region to continue.

HTTP Status Code: 400

InvalidParameterException

One or more parameters are not valid. Verify the parameters and try again.

HTTP Status Code: 400

InvalidParameterValueException

The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.

HTTP Status Code: 400

ServerInternalErrorException

The server experienced an internal error. Try again.

HTTP Status Code: 500

Examples

Disassociate configuration items from an application

The following example disassociates two Application Discovery Service discovered resources specified by their configuration ids from the application identified by the value passed to the required parameter applicationConfigurationId in the request.

Sample Request

{ "applicationConfigurationId":"d-application-0039038d504694533", "configurationIds": [ "d-server-0025db43a885966c8", "d-server-0f0a32a0db4217bd6" ] }

See Also

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