Skip to content

delete_home_region_control

delete_home_region_control(
    control_id: ControlId,
    *,
    config_overrides: Optional[MigrationHubConfigClientConfig] = None,
) -> DeleteHomeRegionControlResult

This operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.

Parameters:

  • control_id (ControlId) –

    A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.

Raises:

Source code in docs_src/capo_migrationhub_config/_services/migration_hub_config.py
def delete_home_region_control(
    self,
    control_id: "capo_migrationhub_config.types.control_id.ControlId",
    *,
    config_overrides: Optional[MigrationHubConfigClientConfig] = None,
) -> "capo_migrationhub_config.types.delete_home_region_control_result.DeleteHomeRegionControlResult":
    """<p>This operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.</p>

    Args:
        control_id: <p>A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.</p>

    Raises:
        capo_migrationhub_config.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_migrationhub_config.errors.internal_server_error.InternalServerError: <p>Exception raised when an internal, configuration, or dependency error is encountered.</p>
        capo_migrationhub_config.errors.invalid_input_exception.InvalidInputException: <p>Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.</p>
        capo_migrationhub_config.errors.service_unavailable_exception.ServiceUnavailableException: <p>Exception raised when a request fails due to temporary unavailability of the service.</p>
        capo_migrationhub_config.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_migrationhub_config.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_migrationhub_config.types.delete_home_region_control_request.DeleteHomeRegionControlRequest]",
    ) -> OperationResponse[
        "capo_migrationhub_config.types.delete_home_region_control_result.DeleteHomeRegionControlResult"
    ]:
        import capo_migrationhub_config._operations.aws_migration_hub_multi_account_service.delete_home_region_control

        output, http_response = (
            capo_migrationhub_config._operations.aws_migration_hub_multi_account_service.delete_home_region_control.delete_home_region_control(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteHomeRegionControl")
    )
    input_: capo_migrationhub_config.types.delete_home_region_control_request.DeleteHomeRegionControlRequest = {
        "control_id": control_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output