- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DisassociateDiscoveredResourceCommand
Disassociate an Application Discovery Service discovered resource from a migration task.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MigrationHubClient, DisassociateDiscoveredResourceCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
// const { MigrationHubClient, DisassociateDiscoveredResourceCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
const client = new MigrationHubClient(config);
const input = { // DisassociateDiscoveredResourceRequest
ProgressUpdateStream: "STRING_VALUE", // required
MigrationTaskName: "STRING_VALUE", // required
ConfigurationId: "STRING_VALUE", // required
DryRun: true || false,
};
const command = new DisassociateDiscoveredResourceCommand(input);
const response = await client.send(command);
// {};
DisassociateDiscoveredResourceCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ConfigurationId Required | string | undefined | ConfigurationId of the Application Discovery Service resource to be disassociated. |
MigrationTaskName Required | string | undefined | The identifier given to the MigrationTask. Do not store personal data in this field. |
ProgressUpdateStream Required | string | undefined | The name of the ProgressUpdateStream. |
DryRun | boolean | undefined | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. |
DisassociateDiscoveredResourceCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
DryRunOperation | client | Exception raised to indicate a successfully authorized action when the |
HomeRegionNotSetException | client | The home region is not set. Set the home region to continue. |
InternalServerError | server | Exception raised when an internal, configuration, or dependency error is encountered. |
InvalidInputException | client | Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type. |
ResourceNotFoundException | client | Exception raised when the request references a resource (Application Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application Discovery Service (Application Discovery Service) or in Migration Hub's repository. |
ServiceUnavailableException | server | Exception raised when there is an internal, configuration, or dependency error encountered. |
ThrottlingException | client | The request was denied due to request throttling. |
UnauthorizedOperation | client | Exception raised to indicate a request was not authorized when the |
MigrationHubServiceException | Base exception class for all service exceptions from MigrationHub service. |